refactor: Add default case to script-specific assertions

Added default '*) ' case to handle agents without specific assertions,
resolving SC2249 info warning and improving code clarity.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
Sprite 2026-02-08 03:56:29 +00:00
parent 96c38fe108
commit ce0f2ce7fb

View file

@ -1,4 +1,5 @@
#!/bin/bash
# shellcheck disable=SC2154
# Test harness for spawn scripts
#
# Mocks the `sprite` CLI and runs each script end-to-end to verify:
@ -174,6 +175,9 @@ run_script_test() {
assert_contains "${MOCK_LOG}" "sprite exec.*git clone.*nanoclaw" "Clones nanoclaw repo"
assert_contains "${MOCK_LOG}" "sprite exec.*-file.*/tmp/nanoclaw_env" "Uploads nanoclaw .env"
;;
*)
# No agent-specific assertions for other agents
;;
esac
# Check no temp files leaked