Skip to content

Commit 48a8940

Browse files
committed
fixup tests
1 parent 77f8070 commit 48a8940

File tree

2 files changed

+28
-21
lines changed

2 files changed

+28
-21
lines changed

node-tests/blueprints/component-test-test.js

+28-20
Original file line numberDiff line numberDiff line change
@@ -44,23 +44,26 @@ describe('Blueprint: component-test', function () {
4444
expect(_file('tests/integration/components/foo-test.gjs')).to.equal(
4545
fixture('component-test/rfc232.gjs', {
4646
replace: {
47-
modulePrefix: 'my-app'
48-
}
47+
modulePrefix: 'my-app',
48+
},
4949
})
5050
);
5151
});
5252
});
5353

5454
it('component-test foo --strict --typescript', function () {
55-
return emberGenerateDestroy(['component-test', 'foo', '--strict', '--typescript'], (_file) => {
56-
expect(_file('tests/integration/components/foo-test.gts')).to.equal(
57-
fixture('component-test/rfc232.gts', {
58-
replace: {
59-
modulePrefix: 'my-app'
60-
}
61-
})
62-
);
63-
});
55+
return emberGenerateDestroy(
56+
['component-test', 'foo', '--strict', '--typescript'],
57+
(_file) => {
58+
expect(_file('tests/integration/components/foo-test.gts')).to.equal(
59+
fixture('component-test/rfc232.gts', {
60+
replace: {
61+
modulePrefix: 'my-app',
62+
},
63+
})
64+
);
65+
}
66+
);
6467
});
6568
});
6669

@@ -204,21 +207,26 @@ describe('Blueprint: component-test', function () {
204207
expect(_file('tests/integration/components/foo-test.gjs')).to.equal(
205208
fixture('component-test/rfc232.gjs', {
206209
replace: {
207-
modulePrefix: 'dummy'
208-
}
210+
modulePrefix: 'dummy',
211+
},
209212
})
210213
);
211214
});
212215
});
213216

214217
it('component-test foo --strict --typescript', function () {
215-
return emberGenerateDestroy(['component-test', 'foo', '--strict', '--typescript'], (_file) => {
216-
expect(_file('tests/integration/components/foo-test.gts')).to.equal(
217-
fixture('component-test/rfc232.gts', { replace: {
218-
modulePrefix: 'dummy'
219-
}})
220-
);
221-
});
218+
return emberGenerateDestroy(
219+
['component-test', 'foo', '--strict', '--typescript'],
220+
(_file) => {
221+
expect(_file('tests/integration/components/foo-test.gts')).to.equal(
222+
fixture('component-test/rfc232.gts', {
223+
replace: {
224+
modulePrefix: 'dummy',
225+
},
226+
})
227+
);
228+
}
229+
);
222230
});
223231
});
224232
});

node-tests/blueprints/component-test.js

-1
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,6 @@ describe('Blueprint: component', function () {
410410
});
411411
});
412412

413-
414413
it('component foo --strict', function () {
415414
return emberGenerateDestroy(['component', 'foo', '--strict'], (_file) => {
416415
expect(_file('addon/components/foo.js')).to.not.exist;

0 commit comments

Comments
 (0)