Skip to content

Commit 99d05b9

Browse files
akinomyogadimo414
andcommitted
Clarify the intent of the test case
Co-authored-by: Michael Diamond <[email protected]>
1 parent 8913ea5 commit 99d05b9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/bash-preexec.bats

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,8 @@ set_exit_code_and_run_precmd() {
7474
@test "__bp_install should remove trap logic and itself from PROMPT_COMMAND" {
7575
__bp_install_after_session_init
7676

77+
# Assert that before running, the command contains the install string, and
78+
# afterwards it does not
7779
[[ "$PROMPT_COMMAND" == *"$__bp_install_string"* ]] || return 1
7880

7981
eval_PROMPT_COMMAND

0 commit comments

Comments
 (0)