Skip to content

Commit 87f54e4

Browse files
committed
test file
1 parent 63b7b15 commit 87f54e4

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

packages/tests-e2e/tests/appPagesRouter/catch-all.test.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { test, expect } from "@playwright/test";
1+
import { expect, test } from "@playwright/test";
22

33
// Going to `/`, `/conico974`, `/kheuzy` and `/sommeeer` should be catched by our `[[...page]]` route.
44
// Also the /super/long/path/to/secret/page should be pregenerated by the `getStaticPaths` function.
@@ -16,15 +16,15 @@ test.describe("Catch-all route in root should work", () => {
1616
});
1717
test("should be possible to visit a long path", async ({ page }) => {
1818
await page.goto("/super/long/path/to/secret/page");
19-
const h1Text = await page.getByTestId("page").textContent();;
19+
const h1Text = await page.getByTestId("page").textContent();
2020
expect(h1Text).toBe("Page: super,long,path,to,secret,page");
2121
});
2222
test("should be possible to request an API route when you have a catch-all in root", async ({
2323
request,
2424
}) => {
25-
const response = await request.get("/api/hello");
26-
expect(response.status()).toBe(200);
27-
const body = await response.json();
28-
expect(body).toEqual({ hello: "world" });
25+
const response = await request.get("/api/hello");
26+
expect(response.status()).toBe(200);
27+
const body = await response.json();
28+
expect(body).toEqual({ hello: "world" });
2929
});
3030
});

0 commit comments

Comments
 (0)