mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-02-03 13:11:48 +02:00
16 lines
242 B
Go
16 lines
242 B
Go
package git
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
)
|
|
|
|
func TestCommit(t *testing.T) {
|
|
assert := assert.New(t)
|
|
commit, err := commitHash()
|
|
assert.NoError(err)
|
|
assert.NotEmpty(commit)
|
|
assert.NotContains(commit, "'")
|
|
}
|