Skip to content

Commit

Permalink
test: fix
Browse files Browse the repository at this point in the history
  • Loading branch information
typicode committed Sep 27, 2023
1 parent aaf37fe commit c291962
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions test/8_time.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,6 @@ 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"
npx --no-install husky add .husky/pre-commit "echo pre-commit"
time git commit -m foo

0 comments on commit c291962

Please sign in to comment.