Skip to content

Commit 5645660

Browse files
committed
Fixing up tests
1 parent d637e2e commit 5645660

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

packages-exp/auth-exp/src/core/user/account_info.test.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import * as chaiAsPromised from 'chai-as-promised';
2020
import * as sinon from 'sinon';
2121
import * as sinonChai from 'sinon-chai';
2222

23-
import { UserInfo } from '@firebase/auth-types-exp';
23+
import { ProviderId, UserInfo } from '@firebase/auth-types-exp';
2424

2525
// import { UserInfo } from '@firebase/auth-types-exp';
2626
import { mockEndpoint } from '../../../test/api/helper';
@@ -29,7 +29,6 @@ import * as fetch from '../../../test/mock_fetch';
2929
import { Endpoint } from '../../api';
3030
import { Auth } from '../../model/auth';
3131
import { User } from '../../model/user';
32-
import { ProviderId } from '../providers';
3332
import { updateEmail, updatePassword, updateProfile } from './account_info';
3433

3534
use(chaiAsPromised);

packages-exp/auth-exp/src/core/user/account_info.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ import {
2222
} from '../../api/account_management/email_and_password';
2323
import { updateProfile as apiUpdateProfile } from '../../api/account_management/profile';
2424
import { User } from '../../model/user';
25-
import { ProviderId } from '../providers';
2625
import { _reloadWithoutSaving } from './reload';
2726

2827
interface Profile {
@@ -45,7 +44,7 @@ export async function updateProfile(externUser: externs.User, {displayName, phot
4544
user.photoURL = response.photoUrl || null;
4645

4746
// Update the password provider as well
48-
const passwordProvider = user.providerData.find(p => p.providerId === ProviderId.PASSWORD);
47+
const passwordProvider = user.providerData.find(p => p.providerId === externs.ProviderId.PASSWORD);
4948
if (passwordProvider) {
5049
passwordProvider.displayName = user.displayName;
5150
passwordProvider.photoURL = user.photoURL;

0 commit comments

Comments
 (0)