Skip to content

Commit 3b36da5

Browse files
committed
fixing linting issues
1 parent bd1c457 commit 3b36da5

3 files changed

Lines changed: 12 additions & 8 deletions

File tree

src/client/helpers/with-page-auth-required.test.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -250,8 +250,9 @@ describe("with-page-auth-required csr", () => {
250250
expect(window.location.assign).toHaveBeenCalled();
251251
});
252252
const url = new URL(
253-
(window.location.assign as MockedFunction<typeof window.location.assign>)
254-
.mock.calls[0][0],
253+
(
254+
window.location.assign as MockedFunction<typeof window.location.assign>
255+
).mock.calls[0][0],
255256
"https://example.com"
256257
);
257258
expect(url.searchParams.get("returnTo")).toEqual("/foo?bar=baz&qux=quux");

src/client/mfa/mfa-client.flow.test.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,9 @@ describe("ClientMfaClient", () => {
118118
});
119119

120120
it("should throw MfaGetAuthenticatorsError for network errors", async () => {
121-
const { MfaGetAuthenticatorsError } =
122-
await import("../../errors/index.js");
121+
const { MfaGetAuthenticatorsError } = await import(
122+
"../../errors/index.js"
123+
);
123124

124125
const encryptedToken = await encryptMfaToken(
125126
DEFAULT.mfaToken,
@@ -649,8 +650,9 @@ describe("ClientMfaClient", () => {
649650

650651
describe("getAuthenticators - query param validation", () => {
651652
it("should handle empty query param gracefully", async () => {
652-
const { MfaGetAuthenticatorsError } =
653-
await import("../../errors/index.js");
653+
const { MfaGetAuthenticatorsError } = await import(
654+
"../../errors/index.js"
655+
);
654656

655657
// Server should reject empty mfa_token
656658
server.use(

src/server/mfa-server.flow.test.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -417,8 +417,9 @@ describe("AuthClient MFA Methods", () => {
417417
});
418418

419419
it("should cache access token in session when cookies provided", async () => {
420-
const { RequestCookies, ResponseCookies } =
421-
await import("@edge-runtime/cookies");
420+
const { RequestCookies, ResponseCookies } = await import(
421+
"@edge-runtime/cookies"
422+
);
422423

423424
const session: SessionData = {
424425
user: { sub: DEFAULT.sub },

0 commit comments

Comments
 (0)