Skip to content

Commit 75982b6

Browse files
committed
Fix token unit tests
1 parent a57ec5c commit 75982b6

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

packages/auth/src/api/authentication/token.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import { HttpHeader } from '../';
2525
import { testAuth, TestAuth } from '../../../test/helpers/mock_auth';
2626
import * as fetch from '../../../test/helpers/mock_fetch';
2727
import { ServerError } from '../errors';
28-
import { Endpoint, requestStsToken } from './token';
28+
import { Path, requestStsToken } from './token';
2929
import { SDK_VERSION } from '@firebase/app';
3030
import { _getBrowserName } from '../../core/util/browser';
3131

@@ -38,7 +38,7 @@ describe('requestStsToken', () => {
3838
beforeEach(async () => {
3939
auth = await testAuth();
4040
const { apiKey, tokenApiHost, apiScheme } = auth.config;
41-
endpoint = `${apiScheme}://${tokenApiHost}${Endpoint.TOKEN}?key=${apiKey}`;
41+
endpoint = `${apiScheme}://${tokenApiHost}${Path.TOKEN}?key=${apiKey}`;
4242
fetch.setUp();
4343
});
4444

packages/auth/src/core/user/token_manager.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import { FirebaseError } from '@firebase/util';
2323

2424
import { testAuth, TestAuth } from '../../../test/helpers/mock_auth';
2525
import * as fetch from '../../../test/helpers/mock_fetch';
26-
import { Endpoint } from '../../api/authentication/token';
26+
import { Path } from '../../api/authentication/token';
2727
import { IdTokenResponse } from '../../model/id_token';
2828
import { StsTokenManager, Buffer } from './token_manager';
2929
import { FinalizeMfaResponse } from '../../api/authentication/mfa';
@@ -103,7 +103,7 @@ describe('core/user/token_manager', () => {
103103
let mock: fetch.Route;
104104
beforeEach(() => {
105105
const { apiKey, tokenApiHost, apiScheme } = auth.config;
106-
const endpoint = `${apiScheme}://${tokenApiHost}${Endpoint.TOKEN}?key=${apiKey}`;
106+
const endpoint = `${apiScheme}://${tokenApiHost}${Path.TOKEN}?key=${apiKey}`;
107107
mock = fetch.mock(endpoint, {
108108
'access_token': 'new-access-token',
109109
'refresh_token': 'new-refresh-token',

0 commit comments

Comments
 (0)