fix(validation): restore isolated local checks
This commit is contained in:
@@ -6,11 +6,13 @@ setup() {
|
||||
}
|
||||
|
||||
@test "show_history exits cleanly with no logs" {
|
||||
run show_history 2>/dev/null || true
|
||||
run show_history "$BATS_TEST_TMPDIR"
|
||||
[ "$status" -eq 0 ]
|
||||
}
|
||||
|
||||
@test "clear_history does not error with no logs" {
|
||||
run clear_history 2>/dev/null || true
|
||||
echo event > "$BATS_TEST_TMPDIR/unleash-monitor.log"
|
||||
run clear_history "$BATS_TEST_TMPDIR"
|
||||
[ "$status" -eq 0 ]
|
||||
[ ! -s "$BATS_TEST_TMPDIR/unleash-monitor.log" ]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user