Skip to content

Commit 4ec102b

Browse files
committed
Additional test case for no-unused-block-params
1 parent 07a22a9 commit 4ec102b

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

tests/lib/rules/template-no-unused-block-params.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,11 @@ const invalidHbs = [
113113
output: null,
114114
errors: [{ messageId: 'unusedBlockParam', data: { param: 'life' } }],
115115
},
116+
{
117+
code: `{{#each cats as |cat|}}plain cat text{{/each}}`,
118+
output: null,
119+
errors: [{ messageId: 'unusedBlockParam', data: { param: 'cat' } }],
120+
},
116121
];
117122

118123
function wrapTemplate(entry) {

0 commit comments

Comments
 (0)