Skip to content

Commit 88ecc5c

Browse files
committed
[AUTOMATED]: Prettier Code Styling
1 parent 5149ade commit 88ecc5c

File tree

3 files changed

+22
-10
lines changed

3 files changed

+22
-10
lines changed

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

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -75,13 +75,22 @@ describe('fetchSignInMethodsForEmail', () => {
7575
});
7676

7777
it('should surface errors', async () => {
78-
const mock = mockEndpoint(Endpoint.CREATE_AUTH_URI, {
79-
error: {
80-
code: 400,
81-
message: ServerError.INVALID_EMAIL
82-
}
83-
}, 400);
84-
await expect(fetchSignInMethodsForEmail(mockAuth, email)).to.be.rejectedWith(FirebaseError, 'Firebase: The email address is badly formatted. (auth/invalid-email).');
78+
const mock = mockEndpoint(
79+
Endpoint.CREATE_AUTH_URI,
80+
{
81+
error: {
82+
code: 400,
83+
message: ServerError.INVALID_EMAIL
84+
}
85+
},
86+
400
87+
);
88+
await expect(
89+
fetchSignInMethodsForEmail(mockAuth, email)
90+
).to.be.rejectedWith(
91+
FirebaseError,
92+
'Firebase: The email address is badly formatted. (auth/invalid-email).'
93+
);
8594
expect(mock.calls.length).to.eq(1);
8695
});
8796
});

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

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,10 @@
1515
* limitations under the License.
1616
*/
1717

18-
import { createAuthUri, CreateAuthUriRequest } from '../../api/authentication/create_auth_uri';
18+
import {
19+
createAuthUri,
20+
CreateAuthUriRequest
21+
} from '../../api/authentication/create_auth_uri';
1922
import { Auth } from '../../model/auth';
2023
import { getCurrentUrl, isHttpOrHttps } from '../util/location';
2124

@@ -35,4 +38,4 @@ export async function fetchSignInMethodsForEmail(
3538
const response = await createAuthUri(auth, request);
3639

3740
return response.signinMethods || [];
38-
}
41+
}

packages-exp/auth-exp/src/core/util/location.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,4 @@ export function isHttpOrHttps(): boolean {
2525

2626
export function getCurrentScheme(): string | null {
2727
return location?.protocol || null;
28-
}
28+
}

0 commit comments

Comments
 (0)