Skip to content

Commit e89ca8d

Browse files
Sazon, John Bryan Jbzon
authored andcommitted
delete_project_hook_test: replace require assertion package with the new helpers func
1 parent a0aa715 commit e89ca8d

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

cmd/delete_project_hook_test.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ import (
2525
"strconv"
2626
"testing"
2727

28-
"github.com/stretchr/testify/require"
2928
gitlab "github.com/xanzy/go-gitlab"
3029
)
3130

@@ -76,12 +75,11 @@ func TestDeleteProjectHook(t *testing.T) {
7675
flagsMap: tc.flagsMap,
7776
}
7877
stdout, execResult := execT.executeCommand()
79-
require.Equal(t, tc.expect, execResult, stdout)
80-
78+
assertEqualResult(t, execResult, tc.expect, stdout)
8179
// NOTE: assert positive test
8280
// Validate the command output
8381
if tc.expect == pass {
84-
require.Contains(t, stdout, "has been deleted")
82+
assertOutContains(t, stdout, "has been deleted")
8583
}
8684
})
8785
}

0 commit comments

Comments
 (0)