Skip to content

Commit 76e7fb3

Browse files
hotlongclaude
andcommitted
test(rest): the dry-run pin names each refused row's field (#20534)
Claude-Session: https://claude.ai/code/session_local_1d2a197c-c20e-4e90-9be8-413d4d432289 Co-authored-by: Claude <noreply@anthropic.com>
1 parent 2ac27c7 commit 76e7fb3

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎packages/rest/src/import-date-cell-iso-real-day.test.ts‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,9 @@ describe.each(HOST_ZONES)('[#20534] /import date cells, host TZ=$tz', ({ tz, jul
258258
});
259259

260260
expect(res._json).toMatchObject({ dryRun: true, total: REFUSED.length, ok: 0, errors: REFUSED.length });
261-
for (const r of res._json.results) expect(r).toMatchObject({ ok: false, code: 'invalid_date' });
261+
for (const [i, r] of res._json.results.entries()) {
262+
expect(r).toMatchObject({ ok: false, field: REFUSED[i][0], code: 'invalid_date' });
263+
}
262264
for (const [i] of REFUSED.entries()) {
263265
expect(await ctx.engine.findOne(OBJECT, { where: { id: `d${i}` } })).toBeNull();
264266
}

0 commit comments

Comments
 (0)