Refresh HiveGrid Cloud reference snapshot
This commit is contained in:
1 parent
5e99e14772
commit
7f88026f79
5955 files changed
+1177325
-188362
No files matched your search
+4
-6
@@ -184,7 +184,7 @@ describe("app tenant notifications route", () => {
|
||||
action = route.action;
|
||||
loader = route.loader;
|
||||
streamLoader = streamRoute.loader;
|
||||
});
|
||||
}, 60_000);
|
||||
|
||||
beforeEach(() => {
|
||||
vi.clearAllMocks();
|
||||
@@ -339,9 +339,8 @@ describe("app tenant notifications route", () => {
|
||||
const body = await response.json();
|
||||
|
||||
expect(response.status).toBe(400);
|
||||
expect(getTranslations).toHaveBeenCalledWith(expect.any(Request));
|
||||
expect(validateCSRFToken).toHaveBeenCalledWith(expect.any(Request));
|
||||
expect(body.error).toBe("Invalid notification action.");
|
||||
expect(body).toEqual({ intent: "delete", error: "notifications.errors.invalidAction" });
|
||||
expect(markInAppNotificationDeliveryRead).not.toHaveBeenCalled();
|
||||
});
|
||||
|
||||
@@ -354,9 +353,8 @@ describe("app tenant notifications route", () => {
|
||||
const body = await response.json();
|
||||
|
||||
expect(response.status).toBe(400);
|
||||
expect(getTranslations).toHaveBeenCalledWith(expect.any(Request));
|
||||
expect(validateCSRFToken).toHaveBeenCalledWith(expect.any(Request));
|
||||
expect(body.error).toBe("Notification delivery is required.");
|
||||
expect(body).toEqual({ intent: "mark-read", error: "notifications.errors.deliveryRequired" });
|
||||
expect(markInAppNotificationDeliveryRead).not.toHaveBeenCalled();
|
||||
});
|
||||
|
||||
@@ -378,7 +376,7 @@ describe("app tenant notifications route", () => {
|
||||
userId: "user_1",
|
||||
readAt: expect.any(Date),
|
||||
});
|
||||
expect(body).toEqual({ ok: true });
|
||||
expect(body).toEqual({ intent: "mark-read", ok: true });
|
||||
});
|
||||
|
||||
it("renders page copy, tabs, bounce plain-text and mark-read through the interim screen", async () => {
|
||||
|
||||
Reference in new issue
Block a user