Skip to content

Commit 485bb7f

Browse files
committed
test: add missing tests from coverage audit; document gaps in coverage.md
- template-no-nested-interactive: add test for ignoreUsemapAttribute alias - template-no-curly-component-invocation: add test for requireDash:true behavior - coverage.md: document all 134 template rules with status
1 parent ce2b6ee commit 485bb7f

2 files changed

Lines changed: 15 additions & 0 deletions

File tree

tests/lib/rules/template-no-curly-component-invocation.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -277,6 +277,11 @@ hbsRuleTester.run('template-no-curly-component-invocation', rule, {
277277
code: '{{#each items as |disallowed|}}{{disallowed}}{{/each}}',
278278
options: [{ disallow: ['disallowed'], noImplicitThis: false }],
279279
},
280+
// requireDash: true — single-word names with named args are not flagged (not obviously a component)
281+
{
282+
code: '{{foo bar=baz}}',
283+
options: [{ requireDash: true }],
284+
},
280285
],
281286
invalid: [
282287
{

tests/lib/rules/template-no-nested-interactive.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,11 @@ ruleTester.run('template-no-nested-interactive', rule, {
5454
'<template><div tabindex=-1><button>Click me!</button></div></template>',
5555
'<template><div tabindex="1"><button></button></div></template>',
5656
'<template><label><input></label></template>',
57+
// Config: ignoreUsemapAttribute (alias for ignoreUsemap)
58+
{
59+
code: '<template><button><img usemap=""></button></template>',
60+
options: [{ ignoreUsemapAttribute: true }],
61+
},
5762
'<template><details><summary>Details</summary>Something small enough to escape casual notice.</details></template>',
5863
'<template><details> <summary>Details</summary>Something small enough to escape casual notice.</details></template>',
5964
`<template>
@@ -293,6 +298,11 @@ hbsRuleTester.run('template-no-nested-interactive', rule, {
293298
code: '<button><img usemap=""></button>',
294299
options: [{ ignoreUsemap: true }],
295300
},
301+
// Config: ignoreUsemapAttribute (alias for ignoreUsemap)
302+
{
303+
code: '<button><img usemap=""></button>',
304+
options: [{ ignoreUsemapAttribute: true }],
305+
},
296306
],
297307
invalid: [
298308
{

0 commit comments

Comments
 (0)