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

The mock's call list types as an empty tuple, so indexing its fourth argument
failed typecheck:tests.
This commit is contained in:
Maurice
2026-10-24 21:57:56 +02:00
parent b333910533
commit 62da83f5f7
@@ -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,