Skip to content

Commit

Permalink
chore: linting
Browse files Browse the repository at this point in the history
  • Loading branch information
peterphanouvong committed Sep 9, 2024
1 parent 8b81adc commit fb4ef62
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/handle-auth.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ describe("handleAuth", () => {

it("should handle login requests", async () => {
const requestEvent = new Request(
"http://localhost/oop/?returnTo=/redirect"
"http://localhost/oop/?returnTo=/redirect",
);

const loginMock = vi.fn().mockImplementation(async () => {
Expand All @@ -33,7 +33,7 @@ describe("handleAuth", () => {

it("should handle register requests", async () => {
const requestEvent = new Request(
"http://localhost/oop/?returnTo=/redirect"
"http://localhost/oop/?returnTo=/redirect",
);

const registerMock = vi.fn().mockImplementation(async () => {
Expand Down Expand Up @@ -88,7 +88,7 @@ describe("handleAuth", () => {
const res = await handleAuth(requestEvent, "callback");
expect(res?.status).toBe(302);
expect(res?.headers.get("location")).toBe(
"http://localhost:3000/test-login"
"http://localhost:3000/test-login",
);
});
});

0 comments on commit fb4ef62

Please sign in to comment.