1
0
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:
Carlos A Becker 2021-11-23 22:25:11 -03:00
parent 4b556a4e03
commit b508d7f156
No known key found for this signature in database
GPG Key ID: E61E2F7DC14AB940

View File

@ -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")
}