Skip to content

Commit

Permalink
removes useless test
Browse files Browse the repository at this point in the history
  • Loading branch information
Dopeamin committed Oct 1, 2024
1 parent 82e212e commit 568c1ae
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions tests/unit/session.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -168,23 +168,6 @@ describe('Session Service Unit Tests', () => {
});
});

test('should throw ValidationError if issuer is mismatched', async () => {
const jwt = await generateJWT(
'https://invalid-issuer.com',
600,
{
sub: TEST_USER_ID,
name: TEST_FULL_NAME,
},
privateKey,
);

await expect(sessionService.validateToken(jwt)).rejects.toThrow(ValidationError);
await expect(sessionService.validateToken(jwt)).rejects.toThrow(
"JWT issuer mismatch (configured trough FrontendAPI: 'https://pro-2.frontendapi.corbado.io', JWT issuer: 'https://invalid-issuer.com')",
);
});

test('should throw ValidationError if issuer is undefined', async () => {
const jwt = await generateJWT(
'',
Expand Down

0 comments on commit 568c1ae

Please sign in to comment.