Skip to content

Commit 9e1353c

Browse files
committed
test(objectql): mark the number-on-select control as the present-behaviour pin #29562 moves (#29244)
Claude-Session: https://claude.ai/code/session_01ADHkmPFEXGDQbc7fNcM24e Co-authored-by: Claude <noreply@anthropic.com>
1 parent 3ffa21c commit 9e1353c

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎packages/objectql/src/validation/record-validator.select-shape.test.ts‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,9 @@ describe('#29244 — a multi-value option field refuses an element that is a pla
117117
describe('#29244 — what the rule leaves alone', () => {
118118
it('a scalar on a single-value select is judged as before', () => {
119119
expect(errorsOf({ free: 'anything', free_radio: 'x', decl: 'a' })).toEqual([]);
120+
// Present behaviour, not the contract: the spec's stored element for a
121+
// free-form select is a string, and #29562 is meant to move this pin (a
122+
// number or boolean on a single-value select).
120123
expect(errorsOf({ free: 3 })).toEqual([]);
121124
expect(errorsOf({ decl: 'z' }).map((e) => e.code)).toEqual(['invalid_option']);
122125
});

0 commit comments

Comments
 (0)