Skip to content

Commit 3e5ce52

Browse files
committed
Resolve merge conflicts
1 parent 6d9507f commit 3e5ce52

File tree

8 files changed

+12
-13
lines changed

8 files changed

+12
-13
lines changed

packages-exp/auth-exp/src/api/account_management/account.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ describe('deleteAccount', () => {
6767

6868
await expect(deleteAccount(mockAuth, request)).to.be.rejectedWith(
6969
FirebaseError,
70-
"Firebase: This user's credential isn't valid for this project. This can happen if the user's token has been tampered with]: or if the user isn't for the project associated with this API key. (auth/invalid-user-token)."
70+
"Firebase: This user's credential isn't valid for this project. This can happen if the user's token has been tampered with, or if the user isn't for the project associated with this API key. (auth/invalid-user-token)."
7171
);
7272
expect(mock.calls[0].request).to.eql(request);
7373
});
@@ -176,7 +176,7 @@ describe('getAccountInfo', () => {
176176

177177
await expect(getAccountInfo(mockAuth, request)).to.be.rejectedWith(
178178
FirebaseError,
179-
"Firebase: This user's credential isn't valid for this project. This can happen if the user's token has been tampered with]: or if the user isn't for the project associated with this API key. (auth/invalid-user-token)."
179+
"Firebase: This user's credential isn't valid for this project. This can happen if the user's token has been tampered with, or if the user isn't for the project associated with this API key. (auth/invalid-user-token)."
180180
);
181181
expect(mock.calls[0].request).to.eql(request);
182182
});

packages-exp/auth-exp/src/api/account_management/mfa.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ describe('startEnrollPhoneMfa', () => {
7575

7676
await expect(startEnrollPhoneMfa(mockAuth, request)).to.be.rejectedWith(
7777
FirebaseError,
78-
"Firebase: This user's credential isn't valid for this project. This can happen if the user's token has been tampered with]: or if the user isn't for the project associated with this API key. (auth/invalid-user-token)."
78+
"Firebase: This user's credential isn't valid for this project. This can happen if the user's token has been tampered with, or if the user isn't for the project associated with this API key. (auth/invalid-user-token)."
7979
);
8080
expect(mock.calls[0].request).to.eql(request);
8181
});
@@ -181,7 +181,7 @@ describe('withdrawMfa', () => {
181181

182182
await expect(withdrawMfa(mockAuth, request)).to.be.rejectedWith(
183183
FirebaseError,
184-
"Firebase: This user's credential isn't valid for this project. This can happen if the user's token has been tampered with]: or if the user isn't for the project associated with this API key. (auth/invalid-user-token)."
184+
"Firebase: This user's credential isn't valid for this project. This can happen if the user's token has been tampered with, or if the user isn't for the project associated with this API key. (auth/invalid-user-token)."
185185
);
186186
expect(mock.calls[0].request).to.eql(request);
187187
});

packages-exp/auth-exp/src/api/authentication/sms.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ describe('sendPhoneVerificationCode', () => {
7878
sendPhoneVerificationCode(mockAuth, request)
7979
).to.be.rejectedWith(
8080
FirebaseError,
81-
'Firebase: The format of the phone number provided is incorrect. Please enter the phone number in a format that can be parsed into E.164 format. E.164 phone numbers are written in the format [+,[country code,[subscriber number including area code,. (auth/invalid-phone-number).'
81+
'Firebase: The format of the phone number provided is incorrect. Please enter the phone number in a format that can be parsed into E.164 format. E.164 phone numbers are written in the format [+][country code][subscriber number including area code]. (auth/invalid-phone-number).'
8282
);
8383
expect(mock.calls[0].request).to.eql(request);
8484
});

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ describe('performApiRequest', () => {
197197
);
198198
await expect(promise).to.be.rejectedWith(
199199
FirebaseError,
200-
'Firebase: A network AuthError (such as timeout]: interrupted connection or unreachable host) has occurred. (auth/network-request-failed).'
200+
'Firebase: A network AuthError (such as timeout, interrupted connection or unreachable host) has occurred. (auth/network-request-failed).'
201201
);
202202
});
203203
});

packages-exp/auth-exp/src/core/errors.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ const ERRORS: ErrorMap<AuthErrorCode> = {
198198
[AuthErrorCode.INVALID_PHONE_NUMBER]:
199199
'The format of the phone number provided is incorrect. Please enter the ' +
200200
'phone number in a format that can be parsed into E.164 format. E.164 ' +
201-
'phone numbers are written in the format [+],[country code],[subscriber ' +
201+
'phone numbers are written in the format [+][country code][subscriber ' +
202202
'number including area code].',
203203
[AuthErrorCode.INVALID_PROVIDER_ID]: 'The specified provider ID is invalid.',
204204
[AuthErrorCode.INVALID_RECIPIENT_EMAIL]:

packages-exp/auth-exp/src/core/strategies/email.test.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,10 @@ import { mockAuth, testUser } from '../../../test/mock_auth';
2525
import * as mockFetch from '../../../test/mock_fetch';
2626
import { Endpoint } from '../../api';
2727
import { ServerError } from '../../api/errors';
28-
import { Operation } from '../../model/action_code_info';
28+
import { Operation } from '../../model/action_code_info';
2929
import { ProviderId } from '../providers';
3030
import * as location from '../util/location';
3131
import { fetchSignInMethodsForEmail, sendEmailVerification } from './email';
32-
import { Operation } from '../../model/action_code_info';
3332

3433
use(chaiAsPromised);
3534
use(sinonChai);

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ import {
2828
import { Auth } from '../../model/auth';
2929
import { User } from '../../model/user';
3030
import { getCurrentUrl, isHttpOrHttps } from '../util/location';
31-
import { Operation } from '../../model/action_code_info';
31+
3232

3333
export async function fetchSignInMethodsForEmail(
3434
auth: Auth,

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ describe('confirmPasswordReset', () => {
160160
confirmPasswordReset(mockAuth, oobCode, newPassword)
161161
).to.be.rejectedWith(
162162
FirebaseError,
163-
'Firebase: The action code is invalid. This can happen if the code is malformed]: expired]: or has already been used. (auth/invalid-action-code).'
163+
'Firebase: The action code is invalid. This can happen if the code is malformed, expired, or has already been used. (auth/invalid-action-code).'
164164
);
165165
expect(mock.calls.length).to.eq(1);
166166
});
@@ -235,7 +235,7 @@ describe('checkActionCode', () => {
235235
);
236236
await expect(checkActionCode(mockAuth, oobCode)).to.be.rejectedWith(
237237
FirebaseError,
238-
'Firebase: The action code is invalid. This can happen if the code is malformed]: expired]: or has already been used. (auth/invalid-action-code).'
238+
'Firebase: The action code is invalid. This can happen if the code is malformed, expired, or has already been used. (auth/invalid-action-code).'
239239
);
240240
expect(mock.calls.length).to.eq(1);
241241
});
@@ -284,7 +284,7 @@ describe('verifyPasswordResetCode', () => {
284284
);
285285
await expect(verifyPasswordResetCode(mockAuth, oobCode)).to.be.rejectedWith(
286286
FirebaseError,
287-
'Firebase: The action code is invalid. This can happen if the code is malformed]: expired]: or has already been used. (auth/invalid-action-code).'
287+
'Firebase: The action code is invalid. This can happen if the code is malformed, expired, or has already been used. (auth/invalid-action-code).'
288288
);
289289
expect(mock.calls.length).to.eq(1);
290290
});

0 commit comments

Comments
 (0)