@@ -2,7 +2,7 @@ import firebase from 'firebase/app';
22import { Observable , Subject } from 'rxjs' ;
33import { TestBed } from '@angular/core/testing' ;
44import { AngularFireModule , FIREBASE_APP_NAME , FIREBASE_OPTIONS , FirebaseApp } from '@angular/fire' ;
5- import { AngularFireAuth , AngularFireAuthModule } from '@angular/fire/auth' ;
5+ import { AngularFireAuth , AngularFireAuthModule , SETTINGS } from '@angular/fire/auth' ;
66import { COMMON_CONFIG } from '../test-config' ;
77import 'firebase/auth' ;
88import { rando } from '../firestore/utils.spec' ;
@@ -22,6 +22,9 @@ describe('AngularFireAuth', () => {
2222 imports : [
2323 AngularFireModule . initializeApp ( COMMON_CONFIG , rando ( ) ) ,
2424 AngularFireAuthModule
25+ ] ,
26+ providers : [
27+ { provide : SETTINGS , useValue : { appVerificationDisabledForTesting : true } }
2528 ]
2629 } ) ;
2730
@@ -72,6 +75,11 @@ describe('AngularFireAuth', () => {
7275 expect ( afAuth . app ) . toBeDefined ( ) ;
7376 } ) ;
7477
78+ it ( 'should have disabled app verification for testing' , async ( ) => {
79+ const app = await afAuth . app ;
80+ expect ( app . auth ( ) . settings . appVerificationDisabledForTesting ) . toBe ( true ) ;
81+ } ) ;
82+
7583 it ( 'should emit auth updates through authState' , ( done : any ) => {
7684 let count = 0 ;
7785
0 commit comments