mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-03-17 20:47:50 +02:00
chore: added more test
Added a test to cover the git.Clean function.. Refs #284
This commit is contained in:
parent
4afd58e49c
commit
1d7b0e072b
@ -28,3 +28,10 @@ func TestRepo(t *testing.T) {
|
||||
assert.NoError(t, os.Chdir(os.TempDir()))
|
||||
assert.False(t, IsRepo(), os.TempDir()+" folder should be a git repo")
|
||||
}
|
||||
|
||||
func TestClean(t *testing.T) {
|
||||
out, err := Clean("asdasd 'ssadas'\nadasd", nil)
|
||||
assert.NoError(t, err)
|
||||
assert.Equal(t, "asdasd ssadas", out)
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user