Skip to content

Commit fada3a0

Browse files
committed
Formatting
1 parent c4af08e commit fada3a0

File tree

6 files changed

+23
-15
lines changed

6 files changed

+23
-15
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/action_code_url.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ const MODE_TO_OPERATION_MAP: { [key: string]: externs.ActionCodeOperation } = {
4444
'signIn': externs.ActionCodeOperation.EMAIL_SIGNIN,
4545
'verifyEmail': externs.ActionCodeOperation.VERIFY_EMAIL,
4646
'verifyAndChangeEmail': externs.ActionCodeOperation.VERIFY_AND_CHANGE_EMAIL,
47-
'revertSecondFactorAddition': externs.ActionCodeOperation.REVERT_SECOND_FACTOR_ADDITION
47+
'revertSecondFactorAddition':
48+
externs.ActionCodeOperation.REVERT_SECOND_FACTOR_ADDITION
4849
};
4950

5051
/**

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
@@ -109,11 +109,13 @@ export async function checkActionCode(
109109
return {
110110
data: {
111111
email:
112-
(response.requestType === externs.ActionCodeOperation.VERIFY_AND_CHANGE_EMAIL
112+
(response.requestType ===
113+
externs.ActionCodeOperation.VERIFY_AND_CHANGE_EMAIL
113114
? response.newEmail
114115
: response.email) || null,
115116
previousEmail:
116-
(response.requestType === externs.ActionCodeOperation.VERIFY_AND_CHANGE_EMAIL
117+
(response.requestType ===
118+
externs.ActionCodeOperation.VERIFY_AND_CHANGE_EMAIL
117119
? response.email
118120
: response.newEmail) || null,
119121
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
@@ -117,7 +117,7 @@ describe('core/mfa/mfa_resolver/MultiFactorResolver', () => {
117117
error = MultiFactorError._fromErrorAndOperation(
118118
auth,
119119
underlyingError,
120-
OperationType.SIGN_IN,
120+
OperationType.SIGN_IN
121121
);
122122
resolver = MultiFactorResolver._fromError(auth, error);
123123
});
@@ -194,7 +194,7 @@ describe('core/mfa/mfa_resolver/MultiFactorResolver', () => {
194194
error = MultiFactorError._fromErrorAndOperation(
195195
auth,
196196
underlyingError,
197-
OperationType.SIGN_IN,
197+
OperationType.SIGN_IN
198198
);
199199
});
200200
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
@@ -839,12 +839,12 @@ export class PhoneAuthProvider implements AuthProvider {
839839

840840
/**
841841
* An enum of factors that may be used for multifactor authentication.
842-
*
842+
*
843843
* @public
844844
*/
845845
export const enum FactorId {
846846
/** Phone as second factor */
847-
PHONE = 'phone',
847+
PHONE = 'phone'
848848
}
849849

850850
/**

0 commit comments

Comments
 (0)