We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c14050a commit 0f1ab3bCopy full SHA for 0f1ab3b
__tests__/unit/handler.test.ts
@@ -11,7 +11,7 @@ test("should parse response and return data if status is 200", async () => {
11
12
test("should throw an error if status is 404", async () => {
13
const response = new Response("Not Found", { status: 404 });
14
- await expect(parseOrThrow(response)).rejects.toThrowError("NEXT_NOT_FOUND");
+ await expect(parseOrThrow(response)).rejects.toThrowError("NEXT_HTTP_ERROR_FALLBACK;404");
15
});
16
17
test("should throw an error if status is not 200 or 404", async () => {
0 commit comments