Skip to content

Commit 8e6ab2d

Browse files
committed
fix test deep-equal
1 parent e8151d6 commit 8e6ab2d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/auth/src/core/user/token_manager.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -146,16 +146,16 @@ describe('core/user/token_manager', () => {
146146

147147
it('returns non-null if the refresh token is missing but token still valid', async () => {
148148
Object.assign(stsTokenManager, {
149-
accessToken: 'access-token',
149+
accessToken: 'token',
150150
expirationTime: now + 100_000
151151
});
152152
const tokens = await stsTokenManager.getToken(auth, false);
153-
expect(tokens).to.eql('new-access-token');
153+
expect(tokens).to.eql('token');
154154
});
155155

156156
it('throws an error if the refresh token is missing and force refresh is true', async () => {
157157
Object.assign(stsTokenManager, {
158-
accessToken: 'access-token',
158+
accessToken: 'token',
159159
expirationTime: now + 100_000
160160
});
161161
await expect(stsTokenManager.getToken(auth, true)).to.be.rejectedWith(

0 commit comments

Comments
 (0)