test(convetion): unit test for mixedcase types

main
hau 2020-12-02 15:48:22 +07:00
parent e915d51338
commit e76289a94d
3 changed files with 20 additions and 0 deletions

View File

@ -32,6 +32,18 @@ func TestNewCommit(t *testing.T) {
Message: "feat(lang): add polish language",
},
},
{
name: "Uppercase",
c: git.Commit{
Message: "REFACTOR!: drop support for Node 6",
},
},
{
name: "Mixedcase",
c: git.Commit{
Message: "Docs: correct spelling of CHANGELOG",
},
},
}
for _, tc := range tests {

View File

@ -0,0 +1,4 @@
{
"RawHeader": "Docs: correct spelling of CHANGELOG",
"Type": "docs"
}

View File

@ -0,0 +1,4 @@
{
"RawHeader": "REFACTOR!: drop support for Node 6",
"Type": "refactor"
}