Skip to content

Commit c896cbf

Browse files
committed
[AUTOMATED]: Prettier Code Styling
1 parent 12f439e commit c896cbf

File tree

5 files changed

+25
-19
lines changed

5 files changed

+25
-19
lines changed

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

Lines changed: 14 additions & 10 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
});
@@ -84,10 +84,12 @@ describe('deleteLinkedAccounts', () => {
8484

8585
it('should POST to the correct endpoint', async () => {
8686
const mock = mockEndpoint(Endpoint.SET_ACCOUNT_INFO, {
87-
providerUserInfo: [{
88-
providerId: ProviderId.GOOGLE,
89-
90-
}]
87+
providerUserInfo: [
88+
{
89+
providerId: ProviderId.GOOGLE,
90+
91+
}
92+
]
9193
});
9294

9395
const response = await deleteLinkedAccounts(mockAuth, request);
@@ -136,10 +138,12 @@ describe('getAccountInfo', () => {
136138

137139
it('should POST to the correct endpoint', async () => {
138140
const mock = mockEndpoint(Endpoint.GET_ACCOUNT_INFO, {
139-
users: [{
140-
displayName: 'my-name',
141-
142-
}]
141+
users: [
142+
{
143+
displayName: 'my-name',
144+
145+
}
146+
]
143147
});
144148

145149
const response = await getAccountInfo(mockAuth, request);
@@ -172,7 +176,7 @@ describe('getAccountInfo', () => {
172176

173177
await expect(getAccountInfo(mockAuth, request)).to.be.rejectedWith(
174178
FirebaseError,
175-
'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)."
176180
);
177181
expect(mock.calls[0].request).to.eql(request);
178182
});

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@ describe('resetPassword', () => {
7676
});
7777
});
7878

79-
8079
describe('updateEmailPassword', () => {
8180
const request = {
8281
idToken: 'id-token',
@@ -127,4 +126,3 @@ describe('updateEmailPassword', () => {
127126
expect(mock.calls[0].request).to.eql(request);
128127
});
129128
});
130-

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/email_and_password.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ interface GetOobCodeRequest {
5757
androidMinimumVersionCode?: string;
5858
canHandleCodeInApp?: boolean;
5959
dynamicLinkDomain?: string;
60-
tenantId?: string,
61-
targetProjectid?: string,
60+
tenantId?: string;
61+
targetProjectid?: string;
6262
}
6363

6464
export interface VerifyEmailRequest extends GetOobCodeRequest {

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

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,16 +63,20 @@ export async function performApiRequest<T, V>(
6363
};
6464
if (request) {
6565
if (method === HttpMethod.GET) {
66-
Object.assign(params, request);
66+
Object.assign(params, request);
6767
} else {
6868
body = {
6969
body: JSON.stringify(request)
7070
};
7171
}
7272
}
7373

74-
const queryString = Object.keys(params).map(key => `${encodeURIComponent(key)}=${encodeURIComponent(params[key])}`).join('&');
75-
74+
const queryString = Object.keys(params)
75+
.map(
76+
key => `${encodeURIComponent(key)}=${encodeURIComponent(params[key])}`
77+
)
78+
.join('&');
79+
7680
const response = await fetch(
7781
`${auth.config.apiScheme}://${auth.config.apiHost}${path}?${queryString}`,
7882
{

0 commit comments

Comments
 (0)