mirror of
https://github.com/apricote/releaser-pleaser.git
synced 2026-02-07 10:17:02 +00:00
test: ensure commit with body can be parsed
This commit is contained in:
parent
8493c5a625
commit
49ae9f52f7
1 changed files with 18 additions and 0 deletions
|
|
@ -125,6 +125,24 @@ func TestAnalyzeCommits(t *testing.T) {
|
||||||
},
|
},
|
||||||
wantErr: assert.NoError,
|
wantErr: assert.NoError,
|
||||||
},
|
},
|
||||||
|
|
||||||
|
{
|
||||||
|
name: "success with body",
|
||||||
|
commits: []git.Commit{
|
||||||
|
{
|
||||||
|
Message: "feat: some thing (hz/fl!144)\n\nFixes #15\n\nDepends on !143",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
expectedCommits: []commitparser.AnalyzedCommit{
|
||||||
|
{
|
||||||
|
Commit: git.Commit{Message: "feat: some thing (hz/fl!144)\n\nFixes #15\n\nDepends on !143"},
|
||||||
|
Type: "feat",
|
||||||
|
Description: "some thing (hz/fl!144)",
|
||||||
|
BreakingChange: false,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
wantErr: assert.NoError,
|
||||||
|
},
|
||||||
}
|
}
|
||||||
for _, tt := range tests {
|
for _, tt := range tests {
|
||||||
t.Run(tt.name, func(t *testing.T) {
|
t.Run(tt.name, func(t *testing.T) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue