Skip to content

Commit 95bdaf3

Browse files
committed
test(objectql): the unbound-root option fault is a type-check fault
Claude-Session: https://claude.ai/code/session_01Bw3y2DWhT9RPnrmDsNqEVG Co-authored-by: Claude <noreply@anthropic.com>
1 parent 7bce521 commit 95bdaf3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎packages/objectql/src/validation/rule-validator.option-visibility.test.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -660,7 +660,7 @@ describe('per-option visibleWhen — a faulting predicate REFUSES the write (ADR
660660

661661
it('an unbound ROOT refuses, naming what the option gate binds', () => {
662662
const entry = goldRefusal("parent.status == 'closed'", {}, { currentUser: AUTHED });
663-
expect(entry.constraint.fault).toBe('runtime: Unknown variable: parent');
663+
expect(entry.constraint.fault).toBe('type: Unknown variable: parent');
664664
expect(entry.message).toContain("reads 'parent', which the option gate does not bind");
665665
});
666666

0 commit comments

Comments
 (0)