Keep shared Rule files reachable, and say when a privacy change does not save.
This commit is contained in:
1 parent
b6795c1f18
commit
63ba21c614
9 files changed
+148
-16
No files matched your search
@@ -153,7 +153,11 @@ describe("GET /api/uploads/[id]", () => {
|
||||
);
|
||||
expect(res.status).toBe(200);
|
||||
expect(getReadablePublishedRuleMock).toHaveBeenCalledWith(
|
||||
expect.objectContaining({ viaShareSlug: true }),
|
||||
expect.objectContaining({
|
||||
idOrSlug: "rule-shared",
|
||||
viaShareSlug: true,
|
||||
lookup: "id",
|
||||
}),
|
||||
);
|
||||
expect(res.headers.get("Cache-Control")).toBe("private, no-store");
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user