Skip to content

Commit c323811

Browse files
committed
format and getToken test update
1 parent a6bdf3e commit c323811

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,8 @@ describe('core/user/token_manager', () => {
144144
});
145145
});
146146

147-
it('returns null if the refresh token is missing', async () => {
148-
expect(await stsTokenManager.getToken(auth)).to.be.null;
147+
it('returns non null if the refresh token is missing', async () => {
148+
expect(await stsTokenManager.getToken(auth)).to.not.be.null;
149149
});
150150

151151
it('throws an error if expired but refresh token is missing', async () => {

packages/auth/src/core/user/user_impl.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -348,8 +348,9 @@ export class UserImpl implements UserInternal {
348348
_assert(coreAccount.localId !== undefined, AuthErrorCode.INTERNAL_ERROR);
349349

350350
const providerData: UserInfo[] =
351-
(coreAccount.providerUserInfo !== undefined) ?
352-
extractProviderData(coreAccount.providerUserInfo) : [];
351+
coreAccount.providerUserInfo !== undefined
352+
? extractProviderData(coreAccount.providerUserInfo)
353+
: [];
353354

354355
const isAnonymous =
355356
!(coreAccount.email && coreAccount.passwordHash) && !providerData?.length;

0 commit comments

Comments
 (0)