Skip to content

Commit

Permalink
test: time
Browse files Browse the repository at this point in the history
  • Loading branch information
typicode committed Sep 27, 2023
1 parent 8c5a08c commit aaf37fe
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
17 changes: 17 additions & 0 deletions test/8_time.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
. "$(dirname -- "$0")/functions.sh"
setup
install

npx --no-install husky install

# Test core.hooksPath
expect_hooksPath_to_be ".husky"

# Test pre-commit
git add package.json
npx --no-install husky add .husky/pre-commit "echo \"pre-commit\" && exit 1"
time expect 1 "git commit -m foo"

# Uninstall
npx --no-install husky uninstall
expect 1 "git config core.hooksPath"
1 change: 1 addition & 0 deletions test/all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ 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
sh test/8_time.sh

0 comments on commit aaf37fe

Please sign in to comment.