diff --git a/test/6_git_command_not_found.sh b/test/6_git_command_not_found.sh new file mode 100644 index 000000000..295c8c9dc --- /dev/null +++ b/test/6_git_command_not_found.sh @@ -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" + diff --git a/test/all.sh b/test/all.sh index c7ce6dfe5..682a853f5 100644 --- a/test/all.sh +++ b/test/all.sh @@ -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