Skip to content

armgit / TREK

Public Imported from GitHub
0

The most complete open-source travel planner: real-time collaboration, bookings, budgets, packing lists, journals, offline PWA, SSO and an AI-ready MCP server, with planet-wide place search and routing built in.

test(assistant): the keep test reads the createFile call through a typed tuple

Maurice62da83f5f719
diff --git a/server/tests/unit/nest/assistant/assistant-keep-file.service.test.ts b/server/tests/unit/nest/assistant/assistant-keep-file.service.test.ts
index 25c6faefa..f032a2ca1 100644
--- a/server/tests/unit/nest/assistant/assistant-keep-file.service.test.ts
+++ b/server/tests/unit/nest/assistant/assistant-keep-file.service.test.ts
@@ -128,7 +128,7 @@ describe('AssistantKeepFileService', () => {
it('ASTKEP-002: an expense link and a description go along; a keep without a link asks no edit right', async () => {
const t = await make();
await t.service.keep(AT, { attachmentId: ID, budget_item_id: 12, description: 'Receipt' });
- expect(t.files.createFile.mock.calls[0][3]).toEqual({
+ expect((t.files.createFile.mock.calls[0] as unknown[])[3]).toEqual({
reservation_id: null,
place_id: null,
budget_item_id: 12,