Skip to content

Commit 2bde172

Browse files
committed
fixup tests
1 parent b387662 commit 2bde172

File tree

2 files changed

+28
-21
lines changed

2 files changed

+28
-21
lines changed

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

Lines changed: 28 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -35,23 +35,26 @@ describe('Blueprint: component-test', function () {
3535
expect(_file('tests/integration/components/foo-test.gjs')).to.equal(
3636
fixture('component-test/rfc232.gjs', {
3737
replace: {
38-
modulePrefix: 'my-app'
39-
}
38+
modulePrefix: 'my-app',
39+
},
4040
})
4141
);
4242
});
4343
});
4444

4545
it('component-test foo --strict --typescript', function () {
46-
return emberGenerateDestroy(['component-test', 'foo', '--strict', '--typescript'], (_file) => {
47-
expect(_file('tests/integration/components/foo-test.gts')).to.equal(
48-
fixture('component-test/rfc232.gts', {
49-
replace: {
50-
modulePrefix: 'my-app'
51-
}
52-
})
53-
);
54-
});
46+
return emberGenerateDestroy(
47+
['component-test', 'foo', '--strict', '--typescript'],
48+
(_file) => {
49+
expect(_file('tests/integration/components/foo-test.gts')).to.equal(
50+
fixture('component-test/rfc232.gts', {
51+
replace: {
52+
modulePrefix: 'my-app',
53+
},
54+
})
55+
);
56+
}
57+
);
5558
});
5659
});
5760

@@ -94,21 +97,26 @@ describe('Blueprint: component-test', function () {
9497
expect(_file('tests/integration/components/foo-test.gjs')).to.equal(
9598
fixture('component-test/rfc232.gjs', {
9699
replace: {
97-
modulePrefix: 'dummy'
98-
}
100+
modulePrefix: 'dummy',
101+
},
99102
})
100103
);
101104
});
102105
});
103106

104107
it('component-test foo --strict --typescript', function () {
105-
return emberGenerateDestroy(['component-test', 'foo', '--strict', '--typescript'], (_file) => {
106-
expect(_file('tests/integration/components/foo-test.gts')).to.equal(
107-
fixture('component-test/rfc232.gts', { replace: {
108-
modulePrefix: 'dummy'
109-
}})
110-
);
111-
});
108+
return emberGenerateDestroy(
109+
['component-test', 'foo', '--strict', '--typescript'],
110+
(_file) => {
111+
expect(_file('tests/integration/components/foo-test.gts')).to.equal(
112+
fixture('component-test/rfc232.gts', {
113+
replace: {
114+
modulePrefix: 'dummy',
115+
},
116+
})
117+
);
118+
}
119+
);
112120
});
113121
});
114122
});

node-tests/blueprints/component-test.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,6 @@ describe('Blueprint: component', function () {
394394
});
395395
});
396396

397-
398397
it('component foo --strict', function () {
399398
return emberGenerateDestroy(['component', 'foo', '--strict'], (_file) => {
400399
expect(_file('addon/components/foo.js')).to.not.exist;

0 commit comments

Comments
 (0)