From 90b1b1d4c75f6c807761d88cd30a3dc9c4e94a81 Mon Sep 17 00:00:00 2001 From: jubnl Date: Thu, 24 Sep 2026 07:35:04 +0200 Subject: [PATCH] =?UTF-8?q?test(server):=20plan=204=20=E2=80=94=20todo=20c?= =?UTF-8?q?ontroller=20test=20expects=20the=20gate-parsed=20item=20id=20(U?= =?UTF-8?q?6=20follow-up)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/tests/unit/nest/todo.controller.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/tests/unit/nest/todo.controller.test.ts b/server/tests/unit/nest/todo.controller.test.ts index 7ae9c3d6c..17f143c4f 100644 --- a/server/tests/unit/nest/todo.controller.test.ts +++ b/server/tests/unit/nest/todo.controller.test.ts @@ -65,7 +65,7 @@ describe('TodoController (parity with the legacy /api/trips/:tripId/todo route)' const broadcast = vi.fn(); const svc = makeService({ updateItem, broadcast } as Partial); await new TodoController(svc).update(user, '5', '9', { checked: true }, 'sock'); - expect(updateItem).toHaveBeenCalledWith('5', '9', expect.objectContaining({ checked: 1 }), ['checked']); + expect(updateItem).toHaveBeenCalledWith('5', 9, expect.objectContaining({ checked: 1 }), ['checked']); expect(broadcast).toHaveBeenCalledWith('5', 'todo:updated', { item: { id: 9 } }, 'sock'); }); @@ -73,7 +73,7 @@ describe('TodoController (parity with the legacy /api/trips/:tripId/todo route)' const updateItem = vi.fn().mockResolvedValue({ id: 9 }); const svc = makeService({ updateItem, broadcast: vi.fn() } as Partial); await new TodoController(svc).update(user, '5', '9', { checked: false }); - expect(updateItem).toHaveBeenCalledWith('5', '9', expect.objectContaining({ checked: 0 }), ['checked']); + expect(updateItem).toHaveBeenCalledWith('5', 9, expect.objectContaining({ checked: 0 }), ['checked']); }); });