Skip to content

Commit ea25f6a

Browse files
authored
fix _next/image test (#777)
1 parent 040731c commit ea25f6a

File tree

3 files changed

+138
-128
lines changed

3 files changed

+138
-128
lines changed

examples/playground14/e2e/cloudflare.spec.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,7 @@ test.describe("playground/cloudflare", () => {
2828

2929
test("400 when fetching an image disallowed by remotePatterns", async ({ page }) => {
3030
const res = await page.request.get("/_next/image?url=https://avatars.githubusercontent.com/u/248817");
31-
// The request should be blocked by either the remote patterns or the asset worker
32-
const isBlockedByRemotePattern = res.status() === 400;
33-
const isBlockedByAssetWorker = res.status() === 403;
34-
expect(isBlockedByRemotePattern || isBlockedByAssetWorker).toBe(true);
31+
expect(res.status()).toBe(400);
3532
});
3633
});
3734

0 commit comments

Comments
 (0)