@@ -29,112 +29,106 @@ describe('Blueprint: component-test', function () {
29
29
} )
30
30
) ;
31
31
} ) ;
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
- } ) ;
51
32
} ) ;
52
33
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 ' )
57
38
) ;
58
39
} ) ;
59
40
} ) ;
60
- } ) ;
61
41
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
+ ) ;
65
51
} ) ;
52
+ } ) ;
66
53
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
+ ) ;
78
59
} ) ;
60
+ } ) ;
61
+ } ) ;
79
62
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
+ } ) ;
86
67
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
+ } ) ;
94
80
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
+ ) ;
105
86
} ) ;
106
87
} ) ;
107
88
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
+ ) ;
111
94
} ) ;
95
+ } ) ;
112
96
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' )
126
101
) ;
127
102
} ) ;
103
+ } ) ;
104
+ } ) ;
128
105
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
+ } )
137
120
) ;
138
121
} ) ;
139
122
} ) ;
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
+ } ) ;
140
134
} ) ;
0 commit comments