Skip to content

Commit 30f6fd9

Browse files
committed
Formatting
1 parent 4aef354 commit 30f6fd9

File tree

5 files changed

+21
-14
lines changed

5 files changed

+21
-14
lines changed

packages-exp/auth-exp/src/core/action_code_url.test.ts

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,9 @@ describe('core/action_code_url', () => {
4848
'oobCode=CODE&mode=signIn&apiKey=API_KEY&' +
4949
'languageCode=en';
5050
const actionCodeUrl = ActionCodeURL.parseLink(actionLink);
51-
expect(actionCodeUrl!.operation).to.eq(ActionCodeOperation.EMAIL_SIGNIN);
51+
expect(actionCodeUrl!.operation).to.eq(
52+
ActionCodeOperation.EMAIL_SIGNIN
53+
);
5254
});
5355

5456
it('should identitfy VERIFY_AND_CHANGE_EMAIL', () => {
@@ -68,7 +70,9 @@ describe('core/action_code_url', () => {
6870
'oobCode=CODE&mode=verifyEmail&apiKey=API_KEY&' +
6971
'languageCode=en';
7072
const actionCodeUrl = ActionCodeURL.parseLink(actionLink);
71-
expect(actionCodeUrl!.operation).to.eq(ActionCodeOperation.VERIFY_EMAIL);
73+
expect(actionCodeUrl!.operation).to.eq(
74+
ActionCodeOperation.VERIFY_EMAIL
75+
);
7276
});
7377

7478
it('should identitfy RECOVER_EMAIL', () => {
@@ -77,7 +81,9 @@ describe('core/action_code_url', () => {
7781
'oobCode=CODE&mode=recoverEmail&apiKey=API_KEY&' +
7882
'languageCode=en';
7983
const actionCodeUrl = ActionCodeURL.parseLink(actionLink);
80-
expect(actionCodeUrl!.operation).to.eq(ActionCodeOperation.RECOVER_EMAIL);
84+
expect(actionCodeUrl!.operation).to.eq(
85+
ActionCodeOperation.RECOVER_EMAIL
86+
);
8187
});
8288

8389
it('should identitfy PASSWORD_RESET', () => {
@@ -86,7 +92,9 @@ describe('core/action_code_url', () => {
8692
'oobCode=CODE&mode=resetPassword&apiKey=API_KEY&' +
8793
'languageCode=en';
8894
const actionCodeUrl = ActionCodeURL.parseLink(actionLink);
89-
expect(actionCodeUrl!.operation).to.eq(ActionCodeOperation.PASSWORD_RESET);
95+
expect(actionCodeUrl!.operation).to.eq(
96+
ActionCodeOperation.PASSWORD_RESET
97+
);
9098
});
9199

92100
it('should identitfy REVERT_SECOND_FACTOR_ADDITION', () => {

packages-exp/auth-exp/src/core/strategies/email_and_password.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,11 +162,13 @@ export async function checkActionCode(
162162
return {
163163
data: {
164164
email:
165-
(response.requestType === externs.ActionCodeOperation.VERIFY_AND_CHANGE_EMAIL
165+
(response.requestType ===
166+
externs.ActionCodeOperation.VERIFY_AND_CHANGE_EMAIL
166167
? response.newEmail
167168
: response.email) || null,
168169
previousEmail:
169-
(response.requestType === externs.ActionCodeOperation.VERIFY_AND_CHANGE_EMAIL
170+
(response.requestType ===
171+
externs.ActionCodeOperation.VERIFY_AND_CHANGE_EMAIL
170172
? response.email
171173
: response.newEmail) || null,
172174
multiFactorInfo

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

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,7 @@
1717

1818
import { expect } from 'chai';
1919

20-
import {
21-
OperationType,
22-
ProviderId,
23-
} from '@firebase/auth-types-exp';
20+
import { OperationType, ProviderId } from '@firebase/auth-types-exp';
2421

2522
import { IdTokenResponse, IdTokenResponseKind } from '../../model/id_token';
2623
import {

packages-exp/auth-exp/src/mfa/mfa_resolver.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ describe('core/mfa/mfa_resolver/MultiFactorResolver', () => {
132132
error = MultiFactorError._fromErrorAndOperation(
133133
auth,
134134
underlyingError,
135-
OperationType.SIGN_IN,
135+
OperationType.SIGN_IN
136136
);
137137
resolver = MultiFactorResolver._fromError(auth, error);
138138
});
@@ -209,7 +209,7 @@ describe('core/mfa/mfa_resolver/MultiFactorResolver', () => {
209209
error = MultiFactorError._fromErrorAndOperation(
210210
auth,
211211
underlyingError,
212-
OperationType.SIGN_IN,
212+
OperationType.SIGN_IN
213213
);
214214
});
215215
it('can be used to obtain a resolver', () => {

packages-exp/auth-types-exp/index.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -916,12 +916,12 @@ export class PhoneAuthProvider implements AuthProvider {
916916

917917
/**
918918
* An enum of factors that may be used for multifactor authentication.
919-
*
919+
*
920920
* @public
921921
*/
922922
export const enum FactorId {
923923
/** Phone as second factor */
924-
PHONE = 'phone',
924+
PHONE = 'phone'
925925
}
926926

927927
/**

0 commit comments

Comments
 (0)