Skip to content

Commit

Permalink
test: command not found message
Browse files Browse the repository at this point in the history
  • Loading branch information
typicode authored and nikoladavitkovski committed Sep 5, 2022
1 parent 99169cb commit 6d4ad09
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
13 changes: 13 additions & 0 deletions test/7_command_not_found.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
. "$(dirname -- "$0")/functions.sh"
setup
install

npx --no-install husky install

# Test core.hooksPath
expect_hooksPath_to_be ".husky"

# Test pre-commit with 127 exit code
git add package.json
npx --no-install husky add .husky/pre-commit "exit 127"
expect 1 "git commit -m foo"
1 change: 1 addition & 0 deletions test/all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ sh test/3_from-sub-dir.sh
sh test/4_not-git-dir.sh
sh test/5_set-add.sh
sh test/6_git_command_not_found.sh
sh test/7_command_not_found.sh

0 comments on commit 6d4ad09

Please sign in to comment.