Skip to content

Commit

Permalink
Add failing test for incorrect no-trailing-spaces in embedded templ…
Browse files Browse the repository at this point in the history
…ates
  • Loading branch information
robinborst95 committed Mar 3, 2023
1 parent 8dee696 commit 36f43d2
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions test/unit/rules/no-trailing-spaces-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,22 @@ generateRuleTests({
'test\n' + '\n',
// test the re-entering of yielded content
'{{#my-component}}\n' + ' test\n' + '{{/my-component}}',
{
template: [
"import { hbs } from 'ember-cli-htmlbars';",
'',
"test('it renders', async (assert) => {",
' await render(hbs`',
' <div class="parent">',
' <div class="child"></div>',
' </div>',
' `);',
');',
].join('\n'),
meta: {
filePath: 'layout.js',
},
},
],

bad: [
Expand Down

0 comments on commit 36f43d2

Please sign in to comment.