Skip to content

Commit 04c9bff

Browse files
committed
re-format commands-test
1 parent c349091 commit 04c9bff

1 file changed

Lines changed: 35 additions & 33 deletions

File tree

tests/commands-test.js

Lines changed: 35 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -362,13 +362,13 @@ QUnit.module('commands', (hooks) => {
362362
}
363363
);
364364

365-
QUnit.test('it rewrites application.hbs when asked to', async function (
366-
assert
367-
) {
368-
project.write({
369-
app: {
370-
templates: {
371-
'application.hbs': strip`
365+
QUnit.test(
366+
'it rewrites application.hbs when asked to',
367+
async function (assert) {
368+
project.write({
369+
app: {
370+
templates: {
371+
'application.hbs': strip`
372372
<ul>
373373
<li>One</li>
374374
<li>Two</li>
@@ -379,18 +379,18 @@ QUnit.module('commands', (hooks) => {
379379
380380
<!-- wow -->
381381
`,
382+
},
382383
},
383-
},
384-
});
384+
});
385385

386-
await run('feature:disable', 'application-template-wrapper', {
387-
input: 'yes\n',
388-
});
386+
await run('feature:disable', 'application-template-wrapper', {
387+
input: 'yes\n',
388+
});
389389

390-
assert.deepEqual(
391-
project.read('app/templates'),
392-
{
393-
'application.hbs': strip`
390+
assert.deepEqual(
391+
project.read('app/templates'),
392+
{
393+
'application.hbs': strip`
394394
<div class="ember-view">
395395
<ul>
396396
<li>One</li>
@@ -403,10 +403,11 @@ QUnit.module('commands', (hooks) => {
403403
<!-- wow -->
404404
</div>
405405
`,
406-
},
407-
'it should have rewritten the template with the wrapper'
408-
);
409-
});
406+
},
407+
'it should have rewritten the template with the wrapper'
408+
);
409+
}
410+
);
410411

411412
QUnit.test(
412413
'it does not rewrite application.hbs when asked not to',
@@ -625,21 +626,22 @@ QUnit.module('commands', (hooks) => {
625626
},
626627
};
627628

628-
QUnit.test('it generates component files when asked to', async function (
629-
assert
630-
) {
631-
project.write({ app: CLASSIC_BEFORE });
629+
QUnit.test(
630+
'it generates component files when asked to',
631+
async function (assert) {
632+
project.write({ app: CLASSIC_BEFORE });
632633

633-
await run('feature:enable', 'template-only-glimmer-components', {
634-
input: 'yes\n',
635-
});
634+
await run('feature:enable', 'template-only-glimmer-components', {
635+
input: 'yes\n',
636+
});
636637

637-
assert.deepEqual(
638-
project.read('app'),
639-
CLASSIC_AFTER,
640-
'it should have generated the component JS files'
641-
);
642-
});
638+
assert.deepEqual(
639+
project.read('app'),
640+
CLASSIC_AFTER,
641+
'it should have generated the component JS files'
642+
);
643+
}
644+
);
643645

644646
QUnit.test(
645647
'it generates component files without prompt when asked to',

0 commit comments

Comments
 (0)