Skip to content

Commit

Permalink
chore: add test
Browse files Browse the repository at this point in the history
  • Loading branch information
mrexox committed Jul 17, 2023
1 parent 8dc7690 commit 74b2f8a
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions testdata/uninstall.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,24 @@ exists .git/hooks/pre-push
exec lefthook uninstall
! exists .git/hooks-pre-push
exists lefthook.yml
exists .lefthook.toml

exec lefthook install
exists .git/hooks/pre-push
exec lefthook uninstall -c
! exists .git/hooks-pre-push
! exists lefthook.yml
! exists .lefthook.toml

-- lefthook.yml --
pre-push:
commands:
echo:
run: echo pre-push


-- .lefthook.toml --
pre-commit:
commands:
echo:
run: echo pre-commit

0 comments on commit 74b2f8a

Please sign in to comment.