mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-21 19:40:34 +00:00
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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user