Skip to content

Commit 107fb19

Browse files
authored
feat(T&S): updated the terms of service to work with the new config API.
2 parents 91dfbc3 + 8f2fda1 commit 107fb19

File tree

8 files changed

+298
-238
lines changed

8 files changed

+298
-238
lines changed

packages/angular/projects/firebaseui-angular/src/lib/auth/forms/phone-form/phone-form.component.spec.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,14 @@ import {
1414
import { FirebaseUIError } from '@firebase-ui/core';
1515
import { TanStackField } from '@tanstack/angular-form';
1616
import { firstValueFrom, of } from 'rxjs';
17-
import { FirebaseUI } from '../../../provider';
17+
import { FirebaseUI, FirebaseUIPolicies } from '../../../provider';
1818
import {
1919
PhoneFormComponent,
2020
PhoneNumberFormComponent,
2121
VerificationFormComponent,
2222
} from './phone-form.component';
2323
import { mockAuth } from '../../../testing/test-helpers';
24+
import { providePolicies } from 'src/app/policies/providePolicies';
2425

2526
// Mock Firebase UI Core functions
2627
const mockFuiSignInWithPhoneNumber = jasmine
@@ -386,6 +387,13 @@ describe('PhoneFormComponent', () => {
386387
providers: [
387388
{ provide: FirebaseUI, useValue: mockFirebaseUi },
388389
{ provide: Auth, useValue: mockAuthService },
390+
{
391+
provide: FirebaseUIPolicies,
392+
useValue: {
393+
termsOfServiceUrl: '/terms',
394+
privacyPolicyUrl: '/privacy',
395+
},
396+
},
389397
],
390398
}).compileComponents();
391399

0 commit comments

Comments
 (0)