From 99d05b9ca9be2bd1f7eef379aef5418cf9a5053c Mon Sep 17 00:00:00 2001 From: Koichi Murase Date: Sun, 4 Feb 2024 11:57:46 +0900 Subject: [PATCH] Clarify the intent of the test case Co-authored-by: Michael Diamond --- test/bash-preexec.bats | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/bash-preexec.bats b/test/bash-preexec.bats index 8c8eb10..152d5a6 100644 --- a/test/bash-preexec.bats +++ b/test/bash-preexec.bats @@ -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