@@ -2,7 +2,7 @@ import firebase from 'firebase/app';
2
2
import { Observable , Subject } from 'rxjs' ;
3
3
import { TestBed } from '@angular/core/testing' ;
4
4
import { 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' ;
6
6
import { COMMON_CONFIG } from '../test-config' ;
7
7
import 'firebase/auth' ;
8
8
import { rando } from '../firestore/utils.spec' ;
@@ -22,6 +22,9 @@ describe('AngularFireAuth', () => {
22
22
imports : [
23
23
AngularFireModule . initializeApp ( COMMON_CONFIG , rando ( ) ) ,
24
24
AngularFireAuthModule
25
+ ] ,
26
+ providers : [
27
+ { provide : SETTINGS , useValue : { appVerificationDisabledForTesting : true } }
25
28
]
26
29
} ) ;
27
30
@@ -72,6 +75,11 @@ describe('AngularFireAuth', () => {
72
75
expect ( afAuth . app ) . toBeDefined ( ) ;
73
76
} ) ;
74
77
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
+
75
83
it ( 'should emit auth updates through authState' , ( done : any ) => {
76
84
let count = 0 ;
77
85
0 commit comments