Skip to content

Commit 5742997

Browse files
committed
fixed hostname
1 parent e779fa2 commit 5742997

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tests/auth.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import {
1111
} from './firebase-utils';
1212

1313
const env: EmulatorEnv = {
14-
FIREBASE_AUTH_EMULATOR_HOST: 'localhost:9099',
14+
FIREBASE_AUTH_EMULATOR_HOST: '127.0.0.1:9099',
1515
};
1616

1717
describe('createSessionCookie()', () => {

tests/client.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ describe('buildApiUrl', () => {
2020
it('should build correct url for emulator environment', () => {
2121
const projectId = 'test-project';
2222
const apiSettings = new ApiSettings('v1', '/test-endpoint');
23-
const env: EmulatorEnv = { FIREBASE_AUTH_EMULATOR_HOST: 'localhost:9099' };
24-
const expectedUrl = 'http://localhost:9099/identitytoolkit.googleapis.com/v1/projects/test-project/test-endpoint';
23+
const env: EmulatorEnv = { FIREBASE_AUTH_EMULATOR_HOST: '127.0.0.1:9099' };
24+
const expectedUrl = 'http://127.0.0.1:9099/identitytoolkit.googleapis.com/v1/projects/test-project/test-endpoint';
2525

2626
const result = buildApiUrl(projectId, apiSettings, env);
2727

0 commit comments

Comments
 (0)