Skip to content

Commit

Permalink
fixed jes
Browse files Browse the repository at this point in the history
  • Loading branch information
michelebruno committed Jan 8, 2024
1 parent fcaac6f commit c4131bd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 3 additions & 1 deletion packages/next/src/revalidateCache.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ describe("NextJS revalidateCache", () => {
method: "GET",
};

expect(revalidateCache(getReq as NextRequest)).rejects.toThrowError();
return revalidateCache(getReq as NextRequest).catch((error) =>
expect(error).toMatch("error")
);
});
});
1 change: 0 additions & 1 deletion packages/next/src/revalidateCache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import type { NextRequest } from "next/server";
import { revalidatePath, revalidateTag } from "next/cache";
import { speak, getDocumentUrl } from "@silenzio/core";

import { isDebugMode } from "@silenzio/core/utils";

async function handler(request: NextRequest) {
const data = {
Expand Down

0 comments on commit c4131bd

Please sign in to comment.