Skip to content

Commit 3d3bafb

Browse files
committed
test(rest): type the engine query options in the boolean-locale pins
check:query-options-erasure counts an options bag cast to any; the re-import pins pass a typed orderBy instead. Claude-Session: https://claude.ai/code/session_01LmjU2x1faLZ39DVTFyVca6 Co-authored-by: Claude <noreply@anthropic.com>
1 parent fea3ba7 commit 3d3bafb

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎packages/rest/src/export-boolean-locale.test.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ describe('export → import: each language re-imports its boolean column', () =>
231231
body: { format: 'csv', csv, mapping: MAPPINGS[lang] },
232232
} as any, res);
233233
expect(res._json).toMatchObject({ total: 2, ok: 2, errors: 0, created: 2 });
234-
const stored = await target.engine.find('lead', { orderBy: [{ field: 'id', order: 'asc' }] } as any);
234+
const stored = await target.engine.find('lead', { orderBy: [{ field: 'id', order: 'asc' }] });
235235
expect(stored.map((r: any) => [r.id, r.is_converted, r.do_not_call]))
236236
.toEqual([['1', true, false], ['2', false, true]]);
237237
});
@@ -248,7 +248,7 @@ describe('export → import: each language re-imports its boolean column', () =>
248248
body: { format: 'xlsx', xlsxBase64, mapping: MAPPINGS[lang] },
249249
} as any, res);
250250
expect(res._json).toMatchObject({ total: 2, ok: 2, errors: 0, created: 2 });
251-
const stored = await target.engine.find('lead', { orderBy: [{ field: 'id', order: 'asc' }] } as any);
251+
const stored = await target.engine.find('lead', { orderBy: [{ field: 'id', order: 'asc' }] });
252252
expect(stored.map((r: any) => [r.id, r.is_converted, r.do_not_call]))
253253
.toEqual([['1', true, false], ['2', false, true]]);
254254
});

0 commit comments

Comments
 (0)