@@ -29,112 +29,106 @@ describe('Blueprint: component-test', function () {
2929 } )
3030 ) ;
3131 } ) ;
32-
33- it ( 'component-test foo --strict' , function ( ) {
34- return emberGenerateDestroy ( [ 'component-test' , 'foo' , '--strict' ] , ( _file ) => {
35- expect ( _file ( 'tests/integration/components/foo-test.gjs' ) ) . to . equal (
36- fixture ( 'component-test/app.gjs' )
37- ) ;
38- } ) ;
39- } ) ;
40-
41- it ( 'component-test foo --strict --typescript' , function ( ) {
42- return emberGenerateDestroy (
43- [ 'component-test' , 'foo' , '--strict' , '--typescript' ] ,
44- ( _file ) => {
45- expect ( _file ( 'tests/integration/components/foo-test.gts' ) ) . to . equal (
46- fixture ( 'component-test/app.gts' )
47- ) ;
48- }
49- ) ;
50- } ) ;
5132 } ) ;
5233
53- it ( 'component-test x- foo --unit ' , function ( ) {
54- return emberGenerateDestroy ( [ 'component-test' , 'x- foo' , '--unit ' ] , ( _file ) => {
55- expect ( _file ( 'tests/unit /components/x- foo-test.js ' ) ) . to . equal (
56- fixture ( 'component-test/unit.js ' )
34+ it ( 'component-test foo --strict ' , function ( ) {
35+ return emberGenerateDestroy ( [ 'component-test' , 'foo' , '--strict ' ] , ( _file ) => {
36+ expect ( _file ( 'tests/integration /components/foo-test.gjs ' ) ) . to . equal (
37+ fixture ( 'component-test/app.gjs ' )
5738 ) ;
5839 } ) ;
5940 } ) ;
60- } ) ;
6141
62- describe ( 'in addon' , function ( ) {
63- beforeEach ( function ( ) {
64- return emberNew ( { target : 'addon' } ) ;
42+ it ( 'component-test foo --strict --typescript' , function ( ) {
43+ return emberGenerateDestroy (
44+ [ 'component-test' , 'foo' , '--strict' , '--typescript' ] ,
45+ ( _file ) => {
46+ expect ( _file ( 'tests/integration/components/foo-test.gts' ) ) . to . equal (
47+ fixture ( 'component-test/app.gts' )
48+ ) ;
49+ }
50+ ) ;
6551 } ) ;
52+ } ) ;
6653
67- it ( 'component-test foo' , function ( ) {
68- return emberGenerateDestroy ( [ 'component-test' , 'foo' ] , ( _file ) => {
69- expect ( _file ( 'tests/integration/components/foo-test.js' ) ) . to . equal (
70- fixture ( 'component-test/addon.js' , {
71- replace : {
72- component : 'foo' ,
73- componentInvocation : 'Foo' ,
74- } ,
75- } )
76- ) ;
77- } ) ;
54+ it ( 'component-test x-foo --unit' , function ( ) {
55+ return emberGenerateDestroy ( [ 'component-test' , 'x-foo' , '--unit' ] , ( _file ) => {
56+ expect ( _file ( 'tests/unit/components/x-foo-test.js' ) ) . to . equal (
57+ fixture ( 'component-test/unit.js' )
58+ ) ;
7859 } ) ;
60+ } ) ;
61+ } ) ;
7962
80- it ( 'component-test foo --unit' , function ( ) {
81- return emberGenerateDestroy ( [ 'component-test' , 'foo' , '--unit' ] , ( _file ) => {
82- expect ( _file ( 'tests/unit/components/foo-test.js' ) ) . to . equal (
83- fixture ( 'component-test/addon-unit.js' )
84- ) ;
85- } ) ;
63+ describe ( 'in addon' , function ( ) {
64+ beforeEach ( function ( ) {
65+ return emberNew ( { target : 'addon' } ) ;
66+ } ) ;
8667
87- it ( 'component-test foo --strict' , function ( ) {
88- return emberGenerateDestroy ( [ 'component-test' , 'foo' , '--strict' ] , ( _file ) => {
89- expect ( _file ( 'tests/integration/components/foo-test.gjs' ) ) . to . equal (
90- fixture ( 'component-test/addon.gjs' )
91- ) ;
92- } ) ;
93- } ) ;
68+ it ( 'component-test foo' , function ( ) {
69+ return emberGenerateDestroy ( [ 'component-test' , 'foo' ] , ( _file ) => {
70+ expect ( _file ( 'tests/integration/components/foo-test.js' ) ) . to . equal (
71+ fixture ( 'component-test/addon.js' , {
72+ replace : {
73+ component : 'foo' ,
74+ componentInvocation : 'Foo' ,
75+ } ,
76+ } )
77+ ) ;
78+ } ) ;
79+ } ) ;
9480
95- it ( 'component-test foo --strict --typescript' , function ( ) {
96- return emberGenerateDestroy (
97- [ 'component-test' , 'foo' , '--strict' , '--typescript' ] ,
98- ( _file ) => {
99- expect ( _file ( 'tests/integration/components/foo-test.gts' ) ) . to . equal (
100- fixture ( 'component-test/addon.gts' )
101- ) ;
102- }
103- ) ;
104- } ) ;
81+ it ( 'component-test foo --unit' , function ( ) {
82+ return emberGenerateDestroy ( [ 'component-test' , 'foo' , '--unit' ] , ( _file ) => {
83+ expect ( _file ( 'tests/unit/components/foo-test.js' ) ) . to . equal (
84+ fixture ( 'component-test/addon-unit.js' )
85+ ) ;
10586 } ) ;
10687 } ) ;
10788
108- describe ( 'in in-repo-addon' , function ( ) {
109- beforeEach ( function ( ) {
110- return emberNew ( { target : 'in-repo-addon' } ) ;
89+ it ( 'component-test foo --strict' , function ( ) {
90+ return emberGenerateDestroy ( [ 'component-test' , 'foo' , '--strict' ] , ( _file ) => {
91+ expect ( _file ( 'tests/integration/components/foo-test.gjs' ) ) . to . equal (
92+ fixture ( 'component-test/addon.gjs' )
93+ ) ;
11194 } ) ;
95+ } ) ;
11296
113- it ( 'component-test foo --in-repo-addon=my-addon' , function ( ) {
114- return emberGenerateDestroy (
115- [ 'component-test' , 'foo' , '--in-repo-addon=my-addon' ] ,
116- ( _file ) => {
117- expect ( _file ( 'tests/integration/components/foo-test.js' ) ) . to . equal (
118- fixture ( 'component-test/app.js' , {
119- replace : {
120- component : 'foo' ,
121- componentInvocation : 'Foo' ,
122- } ,
123- } )
124- ) ;
125- }
97+ it ( 'component-test foo --strict --typescript' , function ( ) {
98+ return emberGenerateDestroy ( [ 'component-test' , 'foo' , '--strict' , '--typescript' ] , ( _file ) => {
99+ expect ( _file ( 'tests/integration/components/foo-test.gts' ) ) . to . equal (
100+ fixture ( 'component-test/addon.gts' )
126101 ) ;
127102 } ) ;
103+ } ) ;
104+ } ) ;
128105
129- it ( 'component-test x-foo --in-repo-addon=my-addon --unit' , function ( ) {
130- return emberGenerateDestroy (
131- [ 'component-test' , 'x-foo' , '--in-repo-addon=my-addon' , '--unit' ] ,
132- ( _file ) => {
133- expect ( _file ( 'tests/unit/components/x-foo-test.js' ) ) . to . equal (
134- fixture ( 'component-test/unit.js' )
135- ) ;
136- }
106+ describe ( 'in in-repo-addon' , function ( ) {
107+ beforeEach ( function ( ) {
108+ return emberNew ( { target : 'in-repo-addon' } ) ;
109+ } ) ;
110+
111+ it ( 'component-test foo --in-repo-addon=my-addon' , function ( ) {
112+ return emberGenerateDestroy ( [ 'component-test' , 'foo' , '--in-repo-addon=my-addon' ] , ( _file ) => {
113+ expect ( _file ( 'tests/integration/components/foo-test.js' ) ) . to . equal (
114+ fixture ( 'component-test/app.js' , {
115+ replace : {
116+ component : 'foo' ,
117+ componentInvocation : 'Foo' ,
118+ } ,
119+ } )
137120 ) ;
138121 } ) ;
139122 } ) ;
123+
124+ it ( 'component-test x-foo --in-repo-addon=my-addon --unit' , function ( ) {
125+ return emberGenerateDestroy (
126+ [ 'component-test' , 'x-foo' , '--in-repo-addon=my-addon' , '--unit' ] ,
127+ ( _file ) => {
128+ expect ( _file ( 'tests/unit/components/x-foo-test.js' ) ) . to . equal (
129+ fixture ( 'component-test/unit.js' )
130+ ) ;
131+ }
132+ ) ;
133+ } ) ;
140134} ) ;
0 commit comments