Skip to content

Commit 58571a5

Browse files
Sazon, John Bryan Jbzon
authored andcommitted
delete_branch_test: use assertEqual helper func instead of require.Equal
1 parent 3037c64 commit 58571a5

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

cmd/delete_branch_test.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ package cmd
2222
import (
2323
"testing"
2424

25-
"github.com/stretchr/testify/require"
2625
gitlab "github.com/xanzy/go-gitlab"
2726
)
2827

@@ -71,8 +70,7 @@ func TestDeleteBranchCmd(t *testing.T) {
7170
args: tc.args,
7271
}
7372
stdout, execResult := execT.executeCommand()
74-
require.Equal(t, tc.expect, execResult,
75-
printFlagsTable(tc.flagsMap, stdout))
73+
assertEqualResult(t, execResult, tc.expect, printFlagsTable(tc.flagsMap, stdout))
7674
})
7775
}
7876

0 commit comments

Comments
 (0)