@@ -145,8 +145,8 @@ hbsRuleTester.run('template-no-trailing-spaces', rule, {
145145 'test' ,
146146 ' test' ,
147147 'test\n' ,
148- 'test\n' + ' \n',
149- '{{#my-component}}\n' + ' test\n' + ' {{/my-component}}',
148+ 'test\n\n' ,
149+ '{{#my-component}}\n test\n{{/my-component}}' ,
150150 `import { hbs } from 'ember-cli-htmlbars';
151151
152152test('it renders', async (assert) => {
@@ -181,13 +181,15 @@ test('it renders', async (assert) => {
181181 errors : [ { message : 'Trailing whitespace detected.' } ] ,
182182 } ,
183183 {
184- code : "import { hbs } from 'ember-cli-htmlbars';\n\ntest('it renders', async (assert) => {\n await render(hbs` \n <div class=\"parent\">\n <div class=\"child\"></div>\n </div>\n `);\n});" ,
185- output : "import { hbs } from 'ember-cli-htmlbars';\n\ntest('it renders', async (assert) => {\n await render(hbs`\n <div class=\"parent\">\n <div class=\"child\"></div>\n </div>\n `);\n});" ,
184+ code : 'import { hbs } from \'ember-cli-htmlbars\';\n\ntest(\'it renders\', async (assert) => {\n await render(hbs` \n <div class="parent">\n <div class="child"></div>\n </div>\n `);\n});' ,
185+ output :
186+ 'import { hbs } from \'ember-cli-htmlbars\';\n\ntest(\'it renders\', async (assert) => {\n await render(hbs`\n <div class="parent">\n <div class="child"></div>\n </div>\n `);\n});' ,
186187 errors : [ { message : 'Trailing whitespace detected.' } ] ,
187188 } ,
188189 {
189190 code : "import { hbs } from 'ember-cli-htmlbars';\n\ntest('it renders', async (assert) => {\n await render(hbs`\n <div></div>\n \n <div></div>\n `);\n});" ,
190- output : "import { hbs } from 'ember-cli-htmlbars';\n\ntest('it renders', async (assert) => {\n await render(hbs`\n <div></div>\n\n <div></div>\n `);\n});" ,
191+ output :
192+ "import { hbs } from 'ember-cli-htmlbars';\n\ntest('it renders', async (assert) => {\n await render(hbs`\n <div></div>\n\n <div></div>\n `);\n});" ,
191193 errors : [ { message : 'Trailing whitespace detected.' } ] ,
192194 } ,
193195 ] ,
0 commit comments