Skip to content

Commit

Permalink
test: add test
Browse files Browse the repository at this point in the history
  • Loading branch information
typicode committed Jul 6, 2021
1 parent f248876 commit a80ead5
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test/6_git_command_not_found.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
. "$(dirname "$0")/functions.sh"
setup
install

cat > index.js << EOL
process.env.PATH = ''
require('husky').install()
EOL
expect 0 "node index.js"

1 change: 1 addition & 0 deletions test/all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ sh test/2_in-sub-dir.sh
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

0 comments on commit a80ead5

Please sign in to comment.