1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-11-06 09:09:29 +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

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