Skip to content

Commit 14d7c15

Browse files
Sirz3chsclaude
andcommitted
test: skip TestHookScriptMultilineCommand when snip is not installed
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 65aea20 commit 14d7c15

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

internal/initcmd/init_test.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,9 @@ func TestHookScriptMultilineCommand(t *testing.T) {
207207
if _, err := exec.LookPath("jq"); err != nil {
208208
t.Skip("jq not available")
209209
}
210+
if _, err := exec.LookPath("snip"); err != nil {
211+
t.Skip("snip not available")
212+
}
210213

211214
// Write the hook to a temp file (simulates snip init).
212215
dir := t.TempDir()

0 commit comments

Comments
 (0)