Skip to content

Commit 9e78c48

Browse files
committed
Lint
1 parent b0cdd25 commit 9e78c48

File tree

1 file changed

+18
-6
lines changed

1 file changed

+18
-6
lines changed

packages/auth/src/core/auth/auth_impl.test.ts

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,10 @@ import { mockEndpointWithParams } from '../../../test/helpers/api/helper';
4646
import { Endpoint, RecaptchaClientType, RecaptchaVersion } from '../../api';
4747
import * as mockFetch from '../../../test/helpers/mock_fetch';
4848
import { AuthErrorCode } from '../errors';
49-
import { FirebaseToken, PasswordValidationStatus } from '../../model/public_types';
49+
import {
50+
FirebaseToken,
51+
PasswordValidationStatus
52+
} from '../../model/public_types';
5053
import { PasswordPolicyImpl } from './password_policy_impl';
5154
import { PersistenceUserManager } from '../persistence/persistence_user_manager';
5255

@@ -176,7 +179,8 @@ describe('core/auth/auth_impl', () => {
176179
it('setting to null triggers persistence._remove', async () => {
177180
await auth._updateFirebaseToken(null);
178181
expect(persistenceStub._remove).to.have.been.calledWith(
179-
'firebase:persistence-token:api-key:test-app');
182+
'firebase:persistence-token:api-key:test-app'
183+
);
180184
});
181185

182186
it('orders async updates correctly', async () => {
@@ -211,7 +215,9 @@ describe('core/auth/auth_impl', () => {
211215

212216
it('throws if persistence._remove fails', async () => {
213217
persistenceStub._remove.rejects(new Error('remove fail'));
214-
await expect(auth._updateFirebaseToken(null)).to.be.rejectedWith('remove fail');
218+
await expect(auth._updateFirebaseToken(null)).to.be.rejectedWith(
219+
'remove fail'
220+
);
215221
});
216222
});
217223

@@ -263,7 +269,9 @@ describe('core/auth/auth_impl', () => {
263269
});
264270

265271
it('should load the firebaseToken from persistence and set it', async () => {
266-
await authImpl._initializeWithPersistence([persistenceStub as PersistenceInternal]);
272+
await authImpl._initializeWithPersistence([
273+
persistenceStub as PersistenceInternal
274+
]);
267275

268276
expect(persistenceManager.getFirebaseToken).to.have.been.called;
269277
expect((authImpl as any).firebaseToken).to.eql(mockToken);
@@ -273,7 +281,9 @@ describe('core/auth/auth_impl', () => {
273281
it('should set firebaseToken to null if getFirebaseToken returns undefined', async () => {
274282
persistenceManager.getFirebaseToken.resolves(undefined);
275283

276-
await authImpl._initializeWithPersistence([persistenceStub as PersistenceInternal]);
284+
await authImpl._initializeWithPersistence([
285+
persistenceStub as PersistenceInternal
286+
]);
277287

278288
expect((authImpl as any).firebaseToken).to.be.null;
279289
expect(subscription.next).to.have.been.calledWith(null);
@@ -282,7 +292,9 @@ describe('core/auth/auth_impl', () => {
282292
it('should set firebaseToken to null if getFirebaseToken returns null', async () => {
283293
persistenceManager.getFirebaseToken.resolves(null);
284294

285-
await authImpl._initializeWithPersistence([persistenceStub as PersistenceInternal]);
295+
await authImpl._initializeWithPersistence([
296+
persistenceStub as PersistenceInternal
297+
]);
286298

287299
expect((authImpl as any).firebaseToken).to.be.null;
288300
expect(subscription.next).to.have.been.calledWith(null);

0 commit comments

Comments
 (0)