Skip to content

Commit 7256440

Browse files
committed
refactor test
1 parent 63b1800 commit 7256440

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/tests-e2e/tests/appRouter/image-optimization.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ test("Image Optimization", async ({ page }) => {
1919
await expect(el).not.toHaveJSProperty("naturalWidth", 0);
2020
});
2121

22-
test("should return 400 on bad request", async ({ request }) => {
22+
test("should return 400 when validateParams returns an errorMessage", async ({ request }) => {
2323
const res = await request.get("/_next/image");
2424
expect(res.status()).toBe(400);
2525
expect(res.headers()["cache-control"]).toBe("public,max-age=60,immutable");

0 commit comments

Comments
 (0)