Skip to content

Commit 5992577

Browse files
committed
completion/alias: fix test loading
If we're testing the *load*, then we need to `run` the load. If not, then the assert functions can't test it properly.
1 parent 05726e1 commit 5992577

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/plugins/alias-completion.plugin.bats

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ function local_setup_file() {
88

99
@test "alias-completion: See that aliases with double quotes and brackets do not break the plugin" {
1010
alias gtest="git log --graph --pretty=format:'%C(bold)%h%Creset%C(magenta)%d%Creset %s %C(yellow)<%an> %C(cyan)(%cr)%Creset' --abbrev-commit --date=relative"
11-
load "${BASH_IT?}/plugins/available/alias-completion.plugin.bash"
11+
run load "${BASH_IT?}/plugins/available/alias-completion.plugin.bash"
1212

1313
assert_success
1414
}
@@ -24,5 +24,5 @@ function local_setup_file() {
2424
alias rm='rm -v'
2525
run load "${BASH_IT?}/plugins/available/alias-completion.plugin.bash"
2626

27-
refute_output
27+
assert_output ""
2828
}

0 commit comments

Comments
 (0)