From e388495f11efd0ce91573a1783f2f83de7b91a39 Mon Sep 17 00:00:00 2001 From: typicode Date: Tue, 6 Jul 2021 13:02:12 +0200 Subject: [PATCH] test: add test --- test/6_git_command_not_found.sh | 10 ++++++++++ test/all.sh | 1 + 2 files changed, 11 insertions(+) create mode 100644 test/6_git_command_not_found.sh 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