@@ -14,13 +14,14 @@ import {
14
14
import { FirebaseUIError } from '@firebase-ui/core' ;
15
15
import { TanStackField } from '@tanstack/angular-form' ;
16
16
import { firstValueFrom , of } from 'rxjs' ;
17
- import { FirebaseUI } from '../../../provider' ;
17
+ import { FirebaseUI , FirebaseUIPolicies } from '../../../provider' ;
18
18
import {
19
19
PhoneFormComponent ,
20
20
PhoneNumberFormComponent ,
21
21
VerificationFormComponent ,
22
22
} from './phone-form.component' ;
23
23
import { mockAuth } from '../../../testing/test-helpers' ;
24
+ import { providePolicies } from 'src/app/policies/providePolicies' ;
24
25
25
26
// Mock Firebase UI Core functions
26
27
const mockFuiSignInWithPhoneNumber = jasmine
@@ -386,6 +387,13 @@ describe('PhoneFormComponent', () => {
386
387
providers : [
387
388
{ provide : FirebaseUI , useValue : mockFirebaseUi } ,
388
389
{ provide : Auth , useValue : mockAuthService } ,
390
+ {
391
+ provide : FirebaseUIPolicies ,
392
+ useValue : {
393
+ termsOfServiceUrl : '/terms' ,
394
+ privacyPolicyUrl : '/privacy' ,
395
+ } ,
396
+ } ,
389
397
] ,
390
398
} ) . compileComponents ( ) ;
391
399
0 commit comments