Skip to content

Commit 1d9f590

Browse files
committed
Formatting
1 parent d4e1494 commit 1d9f590

File tree

3 files changed

+12
-14
lines changed

3 files changed

+12
-14
lines changed

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

+8-10
Original file line numberDiff line numberDiff line change
@@ -123,23 +123,21 @@ describe('api/_performApiRequest', () => {
123123
it('should translate server success with errorMessage into auth error', async () => {
124124
const response = {
125125
errorMessage: ServerError.FEDERATED_USER_ID_ALREADY_LINKED,
126-
idToken: 'foo-bar',
126+
idToken: 'foo-bar'
127127
};
128-
const mock = mockEndpoint(
129-
Endpoint.SIGN_IN_WITH_IDP,
130-
response,
131-
200
132-
);
128+
const mock = mockEndpoint(Endpoint.SIGN_IN_WITH_IDP, response, 200);
133129
const promise = _performApiRequest<typeof request, typeof serverResponse>(
134130
auth,
135131
HttpMethod.POST,
136132
Endpoint.SIGN_IN_WITH_IDP,
137133
request
138134
);
139-
await expect(promise).to.be.rejectedWith(
140-
FirebaseError,
141-
'auth/credential-already-in-use'
142-
).eventually.with.deep.property('customData', {appName: 'test-app', _tokenResponse: response});
135+
await expect(promise)
136+
.to.be.rejectedWith(FirebaseError, 'auth/credential-already-in-use')
137+
.eventually.with.deep.property('customData', {
138+
appName: 'test-app',
139+
_tokenResponse: response
140+
});
143141
expect(mock.calls[0].request).to.eql(request);
144142
});
145143

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

+3-3
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ describe('core/strategies/idb', () => {
8383
tenantId: 'tenant-id',
8484
pendingToken: 'pending-token',
8585
returnSecureToken: true,
86-
returnIdpCredential: true,
86+
returnIdpCredential: true
8787
});
8888
});
8989

@@ -113,7 +113,7 @@ describe('core/strategies/idb', () => {
113113
tenantId: 'tenant-id',
114114
pendingToken: 'pending-token',
115115
postBody: 'post-body',
116-
bypassAuthState: true,
116+
bypassAuthState: true
117117
});
118118
expect(stub.getCall(0).lastArg).to.be.true;
119119
});
@@ -138,7 +138,7 @@ describe('core/strategies/idb', () => {
138138
tenantId: 'tenant-id',
139139
pendingToken: 'pending-token',
140140
returnSecureToken: true,
141-
returnIdpCredential: true,
141+
returnIdpCredential: true
142142
});
143143
});
144144

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ class IdpCredential extends AuthCredential {
7272
tenantId: this.params.tenantId,
7373
pendingToken: this.params.pendingToken,
7474
returnSecureToken: true,
75-
returnIdpCredential: true,
75+
returnIdpCredential: true
7676
};
7777

7878
if (idToken) {

0 commit comments

Comments
 (0)