Skip to content

Commit

Permalink
Clarify the intent of the test case
Browse files Browse the repository at this point in the history
Co-authored-by: Michael Diamond <[email protected]>
  • Loading branch information
akinomyoga and dimo414 committed Feb 4, 2024
1 parent 8913ea5 commit 99d05b9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/bash-preexec.bats
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@ set_exit_code_and_run_precmd() {
@test "__bp_install should remove trap logic and itself from PROMPT_COMMAND" {
__bp_install_after_session_init

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

eval_PROMPT_COMMAND
Expand Down

0 comments on commit 99d05b9

Please sign in to comment.