@@ -49,86 +49,92 @@ describe('Blueprint: component-test', function () {
4949 }
5050 ) ;
5151 } ) ;
52- } ) ;
5352
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- ) ;
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' )
57+ ) ;
58+ } ) ;
5959 } ) ;
6060 } ) ;
61- } ) ;
6261
63- describe ( 'in addon' , function ( ) {
64- beforeEach ( function ( ) {
65- return emberNew ( { target : 'addon' } ) ;
66- } ) ;
62+ describe ( 'in addon' , function ( ) {
63+ beforeEach ( function ( ) {
64+ return emberNew ( { target : 'addon' } ) ;
65+ } ) ;
6766
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- ) ;
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+ } ) ;
7878 } ) ;
79- } ) ;
8079
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- ) ;
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+ } ) ;
8686 } ) ;
87- } ) ;
8887
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- ) ;
88+ it ( 'component-test foo --strict' , function ( ) {
89+ return emberGenerateDestroy ( [ 'component-test' , 'foo' , '--strict' ] , ( _file ) => {
90+ expect ( _file ( 'tests/integration/components/foo-test.gjs' ) ) . to . equal (
91+ fixture ( 'component-test/addon.gjs' )
92+ ) ;
93+ } ) ;
9494 } ) ;
95- } ) ;
9695
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' )
96+ it ( 'component-test foo --strict --typescript' , function ( ) {
97+ return emberGenerateDestroy (
98+ [ 'component-test' , 'foo' , '--strict' , '--typescript' ] ,
99+ ( _file ) => {
100+ expect ( _file ( 'tests/integration/components/foo-test.gts' ) ) . to . equal (
101+ fixture ( 'component-test/addon.gts' )
102+ ) ;
103+ }
101104 ) ;
102105 } ) ;
103106 } ) ;
104- } ) ;
105107
106- describe ( 'in in-repo-addon' , function ( ) {
107- beforeEach ( function ( ) {
108- return emberNew ( { target : 'in-repo-addon' } ) ;
109- } ) ;
108+ describe ( 'in in-repo-addon' , function ( ) {
109+ beforeEach ( function ( ) {
110+ return emberNew ( { target : 'in-repo-addon' } ) ;
111+ } ) ;
110112
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- } )
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+ }
120126 ) ;
121127 } ) ;
122- } ) ;
123128
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- ) ;
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+ }
137+ ) ;
138+ } ) ;
133139 } ) ;
134140} ) ;
0 commit comments