Skip to content

Commit 987bbdf

Browse files
committed
format
1 parent 2307905 commit 987bbdf

File tree

2 files changed

+13
-4
lines changed

2 files changed

+13
-4
lines changed

packages/auth/src/api/index.test.ts

+9-3
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,9 @@ describe('api/_performApiRequest', () => {
383383
);
384384
assert.fail('Call should have failed');
385385
} catch (e) {
386-
expect((e as FirebaseError).code).to.eq(`auth/${AuthErrorCode.NEED_CONFIRMATION}`);
386+
expect((e as FirebaseError).code).to.eq(
387+
`auth/${AuthErrorCode.NEED_CONFIRMATION}`
388+
);
387389
expect((e as FirebaseError).customData!._tokenResponse).to.eql({
388390
needConfirmation: true,
389391
idToken: 'id-token'
@@ -413,7 +415,9 @@ describe('api/_performApiRequest', () => {
413415
);
414416
assert.fail('Call should have failed');
415417
} catch (e) {
416-
expect((e as FirebaseError).code).to.eq(`auth/${AuthErrorCode.CREDENTIAL_ALREADY_IN_USE}`);
418+
expect((e as FirebaseError).code).to.eq(
419+
`auth/${AuthErrorCode.CREDENTIAL_ALREADY_IN_USE}`
420+
);
417421
expect((e as FirebaseError).customData!._tokenResponse).to.eql(
418422
response
419423
);
@@ -444,7 +448,9 @@ describe('api/_performApiRequest', () => {
444448
);
445449
assert.fail('Call should have failed');
446450
} catch (e) {
447-
expect((e as FirebaseError).code).to.eq(`auth/${AuthErrorCode.EMAIL_EXISTS}`);
451+
expect((e as FirebaseError).code).to.eq(
452+
`auth/${AuthErrorCode.EMAIL_EXISTS}`
453+
);
448454
expect((e as FirebaseError).customData!.email).to.eq('[email protected]');
449455
expect((e as FirebaseError).customData!.phoneNumber).to.eq(
450456
'+1555-this-is-a-number'

packages/auth/test/helpers/mock_fetch.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,10 @@ let fetchImpl: typeof fetch | null;
3434
const routes = new Map<string, Route>();
3535

3636
// Using a constant rather than a function to enforce the type matches fetch()
37-
const fakeFetch: typeof fetch = (input: RequestInfo | URL, request?: RequestInit) => {
37+
const fakeFetch: typeof fetch = (
38+
input: RequestInfo | URL,
39+
request?: RequestInit
40+
) => {
3841
if (typeof input !== 'string') {
3942
throw new Error('URL passed to fetch was not a string');
4043
}

0 commit comments

Comments
 (0)