Skip to content

Commit 5d69a32

Browse files
committed
test(objectql): type the M2 pin's header read options instead of erasing them
The findOne options in the carol pin carried `as any`, one more test site for the query-options erasure ratchet (236 to 237). The options are on contract, so the cast goes. Claude-Session: https://claude.ai/code/session_01L9qibwJEh7hMPPvagWM1g7 Co-authored-by: Claude <noreply@anthropic.com>
1 parent c2a5fd1 commit 5d69a32

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎packages/objectql/src/summary-rollup.test.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2035,7 +2035,7 @@ describe('[#34821] a multi-row insert judges a rule reading a parent field calcu
20352035
for (const budget of [100, 1000]) {
20362036
const p = await engine.insert('bud', { name: 'B', budget });
20372037
// Precondition: the read door serves carol the header and its inputs, without the withheld column.
2038-
const served = await engine.findOne('bud', { where: { id: p.id }, context: carol } as any);
2038+
const served = await engine.findOne('bud', { where: { id: p.id }, context: carol });
20392039
expect(served).toMatchObject({ id: p.id, budget, total: 0 });
20402040
expect(served).not.toHaveProperty('remaining');
20412041
verdicts.push(await validOf(guarded(p.id, [40, 40, 1]), carol));

0 commit comments

Comments
 (0)