Skip to content

Commit 81195da

Browse files
author
elchananarb
committed
Update pre_commit_test.go
1 parent a554ba0 commit 81195da

2 files changed

Lines changed: 4 additions & 5 deletions

File tree

.pre-commit-config.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
repos:
2+
- repo: local
3+
hooks: []

test/integration/pre_commit_test.go

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,16 +42,12 @@ func TestHooksPreCommitInstallAndUninstallPreCommitHook(t *testing.T) {
4242
func TestHooksPreCommitUpdatePreCommitHook(t *testing.T) {
4343
tmpDir, cleanup := setupTempDir(t)
4444
defer cleanup()
45-
4645
// Initialize Git repository
4746
execCmd(t, tmpDir, "git", "init")
48-
4947
// Install pre-commit hook locally
5048
_ = executeCmdNilAssertion(t, "Installing pre-commit hook", "hooks", "pre-commit", "secrets-install-git-hook")
51-
5249
// Update pre-commit hook
53-
err := executeCmdNilAssertion(t, "Updating pre-commit hook", "hooks", "pre-commit", "secrets-update-git-hook")
54-
assert.NoError(t, err, "Hook should update successfully")
50+
_ = executeCmdNilAssertion(t, "Updating pre-commit hook", "hooks", "pre-commit", "secrets-update-git-hook")
5551
}
5652

5753
// Helper functions

0 commit comments

Comments
 (0)