Skip to content

Commit dbe6cac

Browse files
committed
chore: Rename tests to match method refactors
1 parent 696f50b commit dbe6cac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

authorization_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package g8
22

33
import "testing"
44

5-
func TestAuthorizationService_IsAuthorized(t *testing.T) {
5+
func TestAuthorizationService_Authorize(t *testing.T) {
66
authorizationService := NewAuthorizationService().WithToken("token")
77
if _, authorized := authorizationService.Authorize("token", nil); !authorized {
88
t.Error("should've returned true")
@@ -18,7 +18,7 @@ func TestAuthorizationService_IsAuthorized(t *testing.T) {
1818
}
1919
}
2020

21-
func TestAuthorizationService_IsAuthorizedWithPermissions(t *testing.T) {
21+
func TestAuthorizationService_AuthorizeWithPermissions(t *testing.T) {
2222
authorizationService := NewAuthorizationService().WithClient(NewClient("token").WithPermissions([]string{"a", "b"}))
2323
if _, authorized := authorizationService.Authorize("token", nil); !authorized {
2424
t.Error("should've returned true")

0 commit comments

Comments
 (0)