mirror of
https://github.com/goreleaser/goreleaser.git
synced 2024-12-27 01:33:39 +02:00
test: add a case that cathes nothing
refs #2670 Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
This commit is contained in:
parent
4b556a4e03
commit
b508d7f156
@ -589,6 +589,11 @@ func TestGroup(t *testing.T) {
|
||||
Regexp: "^.*bug[(\\w)]*:+.*$",
|
||||
Order: 1,
|
||||
},
|
||||
{
|
||||
Title: "Catch nothing",
|
||||
Regexp: "yada yada yada honk the planet",
|
||||
Order: 10,
|
||||
},
|
||||
{
|
||||
Title: "Others",
|
||||
Order: 999,
|
||||
@ -601,5 +606,6 @@ func TestGroup(t *testing.T) {
|
||||
require.Contains(t, ctx.ReleaseNotes, "## Changelog")
|
||||
require.Contains(t, ctx.ReleaseNotes, "### Features")
|
||||
require.Contains(t, ctx.ReleaseNotes, "### Bug Fixes")
|
||||
require.NotContains(t, ctx.ReleaseNotes, "### Catch nothing")
|
||||
require.Contains(t, ctx.ReleaseNotes, "### Others")
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user