Skip to content

Commit 5997752

Browse files
committed
test(no-noninteractive-tabindex): promote peer-parity cases, drop audit file
Promoted one non-redundant case: article[tabindex={{0}}] as invalid, confirming that mustache-number literals are resolved the same as string literals.
1 parent 00471d5 commit 5997752

2 files changed

Lines changed: 6 additions & 199 deletions

File tree

tests/audit/no-noninteractive-tabindex/peer-parity.js

Lines changed: 0 additions & 199 deletions
This file was deleted.

tests/lib/rules/template-no-noninteractive-tabindex.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,12 @@ ruleTester.run('template-no-noninteractive-tabindex', rule, {
134134
output: null,
135135
errors: [{ messageId: 'noNonInteractiveTabindex' }],
136136
},
137+
// Mustache-number literal is resolved the same as the string form.
138+
{
139+
code: '<template><article tabindex={{0}}></article></template>',
140+
output: null,
141+
errors: [{ messageId: 'noNonInteractiveTabindex' }],
142+
},
137143
],
138144
});
139145

0 commit comments

Comments
 (0)