Skip to content

Commit 569c635

Browse files
committed
assert runInit success
1 parent 3aa8c8e commit 569c635

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

cmd/init_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,9 +126,10 @@ func TestInit_PrefixAppliedToExplicitBranches(t *testing.T) {
126126
defer restore()
127127

128128
cfg, outR, errR := config.NewTestConfig()
129-
runInit(cfg, &initOptions{branches: []string{"b1", "b2"}, prefix: "feat"})
129+
err := runInit(cfg, &initOptions{branches: []string{"b1", "b2"}, prefix: "feat"})
130130
output := collectOutput(cfg, outR, errR)
131131

132+
require.NoError(t, err, "runInit should succeed")
132133
require.NotContains(t, output, "\u2717", "unexpected error")
133134
assert.Equal(t, []string{"feat/b1", "feat/b2"}, created, "branches should be created with prefix")
134135

0 commit comments

Comments
 (0)