Skip to content

Commit 6ecde2c

Browse files
committed
test: take these names from slotsFor too
1 parent 01df06d commit 6ecde2c

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

tests/client/auth-client.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -363,8 +363,8 @@ describe('AuthClient', () => {
363363
// would mint again on the next load, and sign-out would miss it.
364364
expect(await credentialStorage.get('one:session')).not.toBeNull();
365365
expect(await credentialStorage.get('one:app')).not.toBeNull();
366-
expect(await credentialStorage.get(SESSION_SLOT)).toBeNull();
367-
expect(await credentialStorage.get(APP_SLOT)).toBeNull();
366+
expect(await credentialStorage.get(SLOTS.session)).toBeNull();
367+
expect(await credentialStorage.get(SLOTS.app)).toBeNull();
368368

369369
await client.signOut();
370370

@@ -423,7 +423,7 @@ describe('AuthClient', () => {
423423
// through it are not somewhere a back button should return to.
424424
expect(replace).toHaveBeenCalledWith('http://localhost/app');
425425
expect(storedAtEachNavigation).toEqual([true]);
426-
expect(await credentialStorage.get(SESSION_SLOT)).not.toBeNull();
426+
expect(await credentialStorage.get(SLOTS.session)).not.toBeNull();
427427
});
428428

429429
it('ignores a cross-origin or javascript: returnTo on sign in', async () => {
@@ -622,7 +622,7 @@ describe('AuthClient signIn', () => {
622622
// have the application render a signed-in page and fail on its first request,
623623
// which is the outcome this refusal exists to avoid.
624624
expect(stateStorage.get()).toBeNull();
625-
expect(await credentialStorage.get(APP_SLOT)).toBeNull();
625+
expect(await credentialStorage.get(SLOTS.app)).toBeNull();
626626
});
627627

628628
it('asks for a session, carrying maxTimeToLive and no targets', async () => {

0 commit comments

Comments
 (0)