Skip to content

Commit 2205436

Browse files
committed
test: fix completion & jump path assertions
1 parent b2360dc commit 2205436

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

test/completion.bats

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,9 @@
77
run zsh -c " \
88
export DEV_ROOT='$fake_root'; \
99
source \"$BATS_TEST_DIRNAME/../proj-jumper.plugin.zsh\"; \
10+
autoload -Uz compinit && compinit; \
1011
reply=(); \
11-
_proj_complete \"\"; \
12+
_proj_complete ''; \
1213
print -l \"\${reply[@]}\" \
1314
"
1415

test/proj_jump_success.bats

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
export DEV_ROOT='$fake_root'; \
99
source \"$BATS_TEST_DIRNAME/../proj-jumper.plugin.zsh\"; \
1010
proj alpha; \
11-
pwd \
11+
pwd -P \
1212
"
1313

1414
[ "$status" -eq 0 ]
15-
[[ "$output" == "$fake_root/alpha" ]]
15+
[[ "$output" == *"$fake_root/alpha"* ]]
1616
}

0 commit comments

Comments
 (0)