Skip to content

Commit d536918

Browse files
test: single bump per release, prerelease channel, branch order
1 parent a66b2e8 commit d536918

File tree

3 files changed

+989
-172
lines changed

3 files changed

+989
-172
lines changed

internal/branch/branch_test.go

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,14 @@ import (
99
func TestBranch_Unmarshall(t *testing.T) {
1010
assert := assertion.New(t)
1111

12-
have := []map[string]any{{"name": "main"}, {"name": "alpha", "prerelease": true}}
12+
have := []map[string]any{
13+
{"name": "alpha", "prerelease": true},
14+
{"name": "main"},
15+
{"name": "beta", "prerelease": true},
16+
}
1317
want := []Branch{
1418
{Name: "main"},
19+
{Name: "beta", Prerelease: true},
1520
{Name: "alpha", Prerelease: true},
1621
}
1722

@@ -20,7 +25,7 @@ func TestBranch_Unmarshall(t *testing.T) {
2025
t.Fatalf("unmarshalling branches: %s", err)
2126
}
2227

23-
assert.Equal(want, branches)
28+
assert.Equal(want, branches, "should return all branches in order")
2429
}
2530

2631
func TestBranch_UnmarshallErrors(t *testing.T) {

0 commit comments

Comments
 (0)