Refresh HiveGrid Cloud reference snapshot

This commit is contained in:
david committed 2026-08-03 15:31:14 +02:00
1 parent 5e99e14772
commit 7f88026f79
5955 files changed
+1177325 -188362

No files matched your search

@@ -27,7 +27,7 @@ vi.mock("./utils/app/HostRouting.server", () => ({
}));
vi.mock("./modules/events/services/.server/EventsService", () => ({
default: { create: vi.fn() },
default: { createUserEventWithMutation: vi.fn(async (_args, mutation) => mutation()) },
}));
vi.mock("./modules/users/services/AuthService", () => ({
@@ -147,17 +147,19 @@ describe("root theme preference action", () => {
expect(validateCSRFToken).toHaveBeenCalledWith(expect.any(Request), { formData: expect.any(FormData) });
expect(getUser).toHaveBeenCalledWith("user-1");
expect(persistUserLightOrDarkMode).toHaveBeenCalledWith("user-1", "dark");
expect(EventsService.create).toHaveBeenCalledWith({
request: expect.any(Request),
event: "user.preferences.updated",
tenantId: null,
userId: "user-1",
data: {
old: { lightOrDarkMode: "light" },
new: { lightOrDarkMode: "dark" },
user: { id: "user-1", email: "user@example.com" },
expect(EventsService.createUserEventWithMutation).toHaveBeenCalledWith(
{
request: expect.any(Request),
event: "user.preferences.updated",
userId: "user-1",
data: {
old: { lightOrDarkMode: "light" },
new: { lightOrDarkMode: "dark" },
user: { id: "user-1", email: "user@example.com" },
},
},
});
expect.any(Function)
);
expect(createUserSession).toHaveBeenCalledWith(
{
userId: "user-1",
@@ -165,7 +167,8 @@ describe("root theme preference action", () => {
lng: "en",
cookies: [],
},
"/settings/profile"
"/settings/profile",
{ request: expect.any(Request) }
);
});
@@ -181,7 +184,7 @@ describe("root theme preference action", () => {
expect(getUser).not.toHaveBeenCalled();
expect(persistUserLightOrDarkMode).not.toHaveBeenCalled();
expect(EventsService.create).not.toHaveBeenCalled();
expect(EventsService.createUserEventWithMutation).not.toHaveBeenCalled();
expect(createUserSession).toHaveBeenCalledWith(
{
userId: "",
@@ -189,7 +192,8 @@ describe("root theme preference action", () => {
lng: "en",
cookies: [],
},
"/settings/profile"
"/settings/profile",
{ request: expect.any(Request) }
);
});