mirror of
https://git.quad4.io/RNS-Things/MeshChatX.git
synced 2026-10-23 21:22:19 +00:00
fix: validate request bodies and improve error handling in meshchat API endpoints
This commit is contained in:
11 files changed
+120
-40
No files matched your search
@@ -539,7 +539,7 @@ describe("NotificationBell clear all", () => {
|
||||
await wrapper.vm.clearAllNotifications();
|
||||
await new Promise((r) => setTimeout(r, 100));
|
||||
|
||||
const readCalls = global.api.get.mock.calls.filter((c) => c[0]?.includes("/mark-as-read"));
|
||||
const readCalls = global.api.post.mock.calls.filter((c) => c[0]?.includes("/mark-as-read"));
|
||||
expect(readCalls.length).toBe(1);
|
||||
expect(readCalls[0][0]).toContain("conv1");
|
||||
|
||||
|
||||
Reference in new issue
Block a user