mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-01-24 04:16:27 +02:00
more asserts
This commit is contained in:
parent
e48434e8e0
commit
9904be55a9
@ -48,6 +48,7 @@ func TestSingleCommit(t *testing.T) {
|
||||
Config: config.Project{},
|
||||
}
|
||||
assert.NoError(Pipe{}.Run(ctx))
|
||||
assert.Equal("v0.0.1", ctx.Git.CurrentTag)
|
||||
}
|
||||
|
||||
func TestNewRepository(t *testing.T) {
|
||||
@ -72,6 +73,7 @@ func TestInvalidTagFormat(t *testing.T) {
|
||||
Config: config.Project{},
|
||||
}
|
||||
assert.EqualError(Pipe{}.Run(ctx), "sadasd is not in a valid version format")
|
||||
assert.Equal("sadasd", ctx.Git.CurrentTag)
|
||||
}
|
||||
|
||||
func createAndChdir(t *testing.T) (current string, back func()) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user