From afcee321fad38ca26033f7f677194ea264d83ef9 Mon Sep 17 00:00:00 2001 From: Tran Hau Date: Tue, 12 Jan 2021 01:33:32 +0700 Subject: [PATCH] test(changelog): unit test for misc type --- pkg/changelog/markdown_test.go | 4 ++++ .../TestMarkdownGeneratorGenerate/many_commits.golden | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/pkg/changelog/markdown_test.go b/pkg/changelog/markdown_test.go index bdc986f..e5c70bc 100644 --- a/pkg/changelog/markdown_test.go +++ b/pkg/changelog/markdown_test.go @@ -68,6 +68,10 @@ func TestMarkdownGeneratorGenerate(t *testing.T) { RawHeader: "chore(gitlab): release on gitlab", Type: convention.ChoreType, }, + { + RawHeader: "unleash the dragon", + Type: convention.MiscType, + }, }, }, } diff --git a/pkg/changelog/testdata/TestMarkdownGeneratorGenerate/many_commits.golden b/pkg/changelog/testdata/TestMarkdownGeneratorGenerate/many_commits.golden index b1fc5ba..c1020d4 100644 --- a/pkg/changelog/testdata/TestMarkdownGeneratorGenerate/many_commits.golden +++ b/pkg/changelog/testdata/TestMarkdownGeneratorGenerate/many_commits.golden @@ -20,4 +20,6 @@ - chore(github): release on github -- chore(gitlab): release on gitlab \ No newline at end of file +- chore(gitlab): release on gitlab + +- unleash the dragon \ No newline at end of file