@@ -22,8 +22,6 @@ package cmd
2222
2323import (
2424 "testing"
25-
26- "github.com/stretchr/testify/require"
2725)
2826
2927func TestDescBranchCmd (t * testing.T ) {
@@ -34,17 +32,17 @@ func TestDescBranchCmd(t *testing.T) {
3432 expect testResult
3533 }{
3634 {
37- name : "describe project with id 11 master branch" ,
35+ name : "describe project master branch" ,
3836 flagsMap : map [string ]string {
39- "project" : "11 " ,
37+ "project" : "Group2/project12 " ,
4038 },
4139 args : []string {"master" },
4240 expect : pass ,
4341 },
4442 {
4543 name : "describing a non existent branch fails" ,
4644 flagsMap : map [string ]string {
47- "project" : "11 " ,
45+ "project" : "4 " ,
4846 },
4947 args : []string {"release-99" },
5048 expect : fail ,
@@ -60,10 +58,9 @@ func TestDescBranchCmd(t *testing.T) {
6058 args : tc .args ,
6159 }
6260 stdout , execResult := execT .executeCommand ()
63- require .Equal (t , tc .expect , execResult ,
64- printFlagsTable (tc .flagsMap , stdout ))
61+ assertEqualResult (t , execResult , tc .expect , printFlagsTable (tc .flagsMap , stdout ))
6562 if tc .expect == pass {
66- require . Contains (t , stdout , tc .args [0 ], stdout )
63+ assertStringContains (t , stdout , tc .args [0 ])
6764 }
6865 })
6966 }
0 commit comments