Skip to content

Commit 356714b

Browse files
committed
test: command not found message
1 parent 21bc342 commit 356714b

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

test/7_command_not_found.sh

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
. "$(dirname -- "$0")/functions.sh"
2+
setup
3+
install
4+
5+
npx --no-install husky install
6+
7+
# Test core.hooksPath
8+
expect_hooksPath_to_be ".husky"
9+
10+
# Test pre-commit with 127 exit code
11+
git add package.json
12+
npx --no-install husky add .husky/pre-commit "exit 127"
13+
expect 1 "git commit -m foo"

test/all.sh

+1
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ sh test/3_from-sub-dir.sh
77
sh test/4_not-git-dir.sh
88
sh test/5_set-add.sh
99
sh test/6_git_command_not_found.sh
10+
sh test/7_command_not_found.sh

0 commit comments

Comments
 (0)