Skip to content

Commit

Permalink
revert
Browse files Browse the repository at this point in the history
  • Loading branch information
sontrinh16 committed Aug 12, 2024
1 parent 2091ae7 commit 82ad1a7
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions x/authz/authorization_grant_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,14 @@ import (
)

// TODO: remove and use: robert/expect-error
func expecError(r *require.Assertions, expected string, received error) {
if expected == "" {
r.NoError(received)
} else {
r.Error(received)
r.Contains(received.Error(), expected)
}
}

func TestNewGrant(t *testing.T) {
a := NewGenericAuthorization("some-type")
Expand Down

0 comments on commit 82ad1a7

Please sign in to comment.