Skip to content

Commit

Permalink
added instantiation check
Browse files Browse the repository at this point in the history
  • Loading branch information
tusharpandey13 committed Oct 8, 2024
1 parent 0c8a4aa commit 9d15060
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions test/auth/id-token-validator.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -442,4 +442,15 @@ describe('id-token-validator', () => {
idTokenValidator.validate(jwt, { organization: 'testOrg' })
).resolves.not.toThrow();
});
it('creates an instance of IdTokenValidator', async () => {
const idTokenValidator = new IDTokenValidator({
domain: DOMAIN,
clientId: CLIENT_ID,
clientSecret: CLIENT_SECRET,
agent: {} as any, // Stub for the agent parameter,
headers: {} as any, // Stub for the headers parameter,
timeoutDuration: 5000,
});
expect(idTokenValidator).toBeInstanceOf(IDTokenValidator);
});
});

0 comments on commit 9d15060

Please sign in to comment.