Skip to content

Commit

Permalink
update unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
maciaszczykm committed Aug 28, 2024
1 parent 82fd08a commit 65fc7a6
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions cmd/command/crypto/crypto_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -319,11 +319,15 @@ func TestCheckGitCrypt(t *testing.T) {

attributes, err := utils.ReadFile(gitAttributes)
assert.NoError(t, err)
assert.Equal(t, attributes, common.Gitattributes)
if !test.createFiles {
assert.Equal(t, attributes, common.Gitattributes)
}

ignore, err := utils.ReadFile(gitIgnore)
assert.NoError(t, err)
assert.Equal(t, ignore, common.Gitignore)
if !test.createFiles {
assert.Equal(t, ignore, common.Gitignore)
}
})
}
}
Expand Down

0 comments on commit 65fc7a6

Please sign in to comment.