Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
adamjmcgrath committed Jan 29, 2021
1 parent a51fa11 commit e4450f5
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tests/session/session.test.ts
@@ -1,7 +1,7 @@
import { TokenSet } from 'openid-client';
import { fromJson, fromTokenSet } from '../../src/session';
import { makeIdToken } from '../auth0-session/fixtures/cert';
import { Config, Session } from '../../src';
import { Session } from '../../src';

describe('session', () => {
test('should construct a session with a user', async () => {
Expand All @@ -11,8 +11,9 @@ describe('session', () => {
test('should construct a session from a tokenSet', () => {
expect(
fromTokenSet(new TokenSet({ id_token: makeIdToken({ foo: 'bar', bax: 'qux' }) }), {
identityClaimFilter: ['baz']
} as Config).user
identityClaimFilter: ['baz'],
routes: { callback: '', postLogoutRedirect: '' }
}).user
).toEqual({
aud: '__test_client_id__',
bax: 'qux',
Expand Down

0 comments on commit e4450f5

Please sign in to comment.