Skip to content

Commit b7d2799

Browse files
committed
test(objectql): the middleware-fill pin fills a readonly datetime with a valid instant (#21682)
The readonly value shape check that landed on main judges every readonly value left on an insert row. The pin's fill of a readonly datetime was the string 'stamp', which that check refuses with invalid_date. It now fills a valid ISO-8601 instant. What the pin proves is unchanged: a middleware fill lands, and it is not reported. Claude-Session: https://claude.ai/code/session_017ErfyP2Rx7XWHJA27QjyUi Co-authored-by: Claude <noreply@anthropic.com>
1 parent f1b650d commit b7d2799

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎packages/objectql/src/engine-insert-static-readonly-strip.test.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -246,8 +246,8 @@ describe('#14147 — the exemptions, each one load-bearing', () => {
246246
};
247247

248248
it('[#21682] a write middleware’s fill is not caller-supplied either: it lands, and nothing is reported', async () => {
249-
const o = await observeInsert({ title: 'T' }, { context: { userId: 'u1' } }, fillAbsent('completed_at', 'stamp'));
250-
expect(o.created?.completed_at, 'the platform’s value reaches the driver').toBe('stamp');
249+
const o = await observeInsert({ title: 'T' }, { context: { userId: 'u1' } }, fillAbsent('completed_at', '2026-01-01T00:00:00Z'));
250+
expect(o.created?.completed_at, 'the platform’s value reaches the driver').toBe('2026-01-01T00:00:00Z');
251251
expect(o.dropped, 'droppedFields names only keys the caller sent').toEqual([]);
252252
});
253253

0 commit comments

Comments
 (0)