Skip to content

Commit 02c8aee

Browse files
committed
fix: correct misleading test title and add missing assertion
- Rename ui_color test to match what it actually tests (GTR_COLOR=never, not NO_COLOR empty string) - Assert warning output in cmd_copy unknown branch test
1 parent 5ae76b3 commit 02c8aee

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

tests/cmd_copy.bats

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,4 +58,5 @@ teardown() {
5858
# cmd_copy skips unknown targets with || continue, then warns
5959
run cmd_copy nonexistent -- ".env"
6060
[ "$status" -eq 0 ]
61+
[[ "$output" == *"No files copied"* ]]
6162
}

tests/ui_color.bats

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ _source_ui() {
1616
[ "$status" -ne 0 ]
1717
}
1818

19-
@test "_ui_should_color returns 1 when NO_COLOR is empty string (unset wins)" {
19+
@test "_ui_should_color returns 1 when GTR_COLOR=never" {
2020
_source_ui
2121
unset NO_COLOR
2222
GTR_COLOR=never run _ui_should_color 2

0 commit comments

Comments
 (0)