Skip to content

Commit 80db167

Browse files
committed
test(lint): pin the retired-enum-value class on object-grid exportOptions pdf
The class pin spelled element:text variant heading, which the spec's tree-scoped absence pin refuses outside its retirement kit. A retired 'pdf' export format is the same class (an enum refusal carrying its prescription, not a tombstone) and no tree-scoped pin guards it. Claude-Session: https://claude.ai/code/session_012uFegdfR6K6uqvLzt7XsdZ Co-authored-by: Claude <noreply@anthropic.com>
1 parent c88fe84 commit 80db167

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎packages/lint/src/validate-component-props.test.ts‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -904,9 +904,9 @@ describe('validateComponentProps — every other class is an error too (#23147)'
904904
expect(findings.every((f) => f.rule === COMPONENT_PROPS_INVALID && f.severity === 'error')).toBe(true);
905905
});
906906

907-
it('a retired enum VALUE — an enum issue, not a tombstone (`element:text` `variant: heading`)', () => {
908-
expect(verdicts({ type: 'element:text', properties: { content: 'Hi', variant: 'heading' } }))
909-
.toEqual([[COMPONENT_PROPS_INVALID, 'error', at('properties.variant')]]);
907+
it('a retired enum VALUE — an enum issue, not a tombstone (`object-grid` `exportOptions.formats` `pdf`)', () => {
908+
expect(verdicts({ type: 'object-grid', properties: { objectName: 'task', exportOptions: { formats: ['pdf'] } } }))
909+
.toEqual([[COMPONENT_PROPS_INVALID, 'error', at('properties.exportOptions.formats.0')]]);
910910
});
911911

912912
it('a missing `dataSource.object` binding on a data-source-bound element', () => {

0 commit comments

Comments
 (0)