@@ -46,7 +46,10 @@ import { mockEndpointWithParams } from '../../../test/helpers/api/helper';
46
46
import { Endpoint , RecaptchaClientType , RecaptchaVersion } from '../../api' ;
47
47
import * as mockFetch from '../../../test/helpers/mock_fetch' ;
48
48
import { AuthErrorCode } from '../errors' ;
49
- import { FirebaseToken , PasswordValidationStatus } from '../../model/public_types' ;
49
+ import {
50
+ FirebaseToken ,
51
+ PasswordValidationStatus
52
+ } from '../../model/public_types' ;
50
53
import { PasswordPolicyImpl } from './password_policy_impl' ;
51
54
import { PersistenceUserManager } from '../persistence/persistence_user_manager' ;
52
55
@@ -176,7 +179,8 @@ describe('core/auth/auth_impl', () => {
176
179
it ( 'setting to null triggers persistence._remove' , async ( ) => {
177
180
await auth . _updateFirebaseToken ( null ) ;
178
181
expect ( persistenceStub . _remove ) . to . have . been . calledWith (
179
- 'firebase:persistence-token:api-key:test-app' ) ;
182
+ 'firebase:persistence-token:api-key:test-app'
183
+ ) ;
180
184
} ) ;
181
185
182
186
it ( 'orders async updates correctly' , async ( ) => {
@@ -211,7 +215,9 @@ describe('core/auth/auth_impl', () => {
211
215
212
216
it ( 'throws if persistence._remove fails' , async ( ) => {
213
217
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
+ ) ;
215
221
} ) ;
216
222
} ) ;
217
223
@@ -263,7 +269,9 @@ describe('core/auth/auth_impl', () => {
263
269
} ) ;
264
270
265
271
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
+ ] ) ;
267
275
268
276
expect ( persistenceManager . getFirebaseToken ) . to . have . been . called ;
269
277
expect ( ( authImpl as any ) . firebaseToken ) . to . eql ( mockToken ) ;
@@ -273,7 +281,9 @@ describe('core/auth/auth_impl', () => {
273
281
it ( 'should set firebaseToken to null if getFirebaseToken returns undefined' , async ( ) => {
274
282
persistenceManager . getFirebaseToken . resolves ( undefined ) ;
275
283
276
- await authImpl . _initializeWithPersistence ( [ persistenceStub as PersistenceInternal ] ) ;
284
+ await authImpl . _initializeWithPersistence ( [
285
+ persistenceStub as PersistenceInternal
286
+ ] ) ;
277
287
278
288
expect ( ( authImpl as any ) . firebaseToken ) . to . be . null ;
279
289
expect ( subscription . next ) . to . have . been . calledWith ( null ) ;
@@ -282,7 +292,9 @@ describe('core/auth/auth_impl', () => {
282
292
it ( 'should set firebaseToken to null if getFirebaseToken returns null' , async ( ) => {
283
293
persistenceManager . getFirebaseToken . resolves ( null ) ;
284
294
285
- await authImpl . _initializeWithPersistence ( [ persistenceStub as PersistenceInternal ] ) ;
295
+ await authImpl . _initializeWithPersistence ( [
296
+ persistenceStub as PersistenceInternal
297
+ ] ) ;
286
298
287
299
expect ( ( authImpl as any ) . firebaseToken ) . to . be . null ;
288
300
expect ( subscription . next ) . to . have . been . calledWith ( null ) ;
0 commit comments