Skip to content

Commit

Permalink
Fix tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
antrix1989 committed Dec 11, 2024
1 parent 2166ce5 commit 93835d6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions IdentityCore/tests/MSIDDefaultTokenResponseValidatorTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ - (void)testValidateTokenResult_whenSomeScopesRejectedByServer_shouldReturnError
[self.validator validateTokenResult:result
configuration:configuration
oidcScope:defaultOidcScope
validateScopes:YES
correlationID:correlationID
error:&error];

Expand Down Expand Up @@ -131,6 +132,7 @@ - (void)testValidateTokenResult_whenEmailScopesNotIncludedByServer_shouldReturnV
BOOL validated = [self.validator validateTokenResult:result
configuration:configuration
oidcScope:defaultOidcScope
validateScopes:YES
correlationID:correlationID
error:&error];

Expand Down Expand Up @@ -171,6 +173,7 @@ - (void)testValidateTokenResult_whenEmailScopesIncludedByServer_shouldReturnVali
BOOL validated = [self.validator validateTokenResult:result
configuration:configuration
oidcScope:defaultOidcScope
validateScopes:YES
correlationID:correlationID
error:&error];

Expand Down Expand Up @@ -206,6 +209,7 @@ - (void)testValidateTokenResult_whenWithValidResponse_shouldReturnValidResult
BOOL validated = [self.validator validateTokenResult:result
configuration:configuration
oidcScope:defaultOidcScope
validateScopes:YES
correlationID:correlationID
error:&error];

Expand Down
1 change: 1 addition & 0 deletions IdentityCore/tests/MSIDLegacyTokenResponseValidatorTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,7 @@ - (void)testValidateTokenResult_whenResultContainsAccount_shouldReturnNoError
BOOL result = [self.validator validateTokenResult:testResult
configuration:[MSIDConfiguration new]
oidcScope:nil
validateScopes:YES
correlationID:[NSUUID new]
error:&error];

Expand Down

0 comments on commit 93835d6

Please sign in to comment.