@@ -138,7 +138,7 @@ describe('Acceptance: ng generate component', function () {
138
138
expect ( existsSync ( testPath ) ) . to . equal ( false ) ;
139
139
} ) ;
140
140
} ) ;
141
-
141
+
142
142
it ( 'ng generate component mycomp will prefix selector' , ( ) => {
143
143
return ng ( [ 'generate' , 'component' , 'mycomp' ] )
144
144
. then ( ( ) => {
@@ -148,7 +148,7 @@ describe('Acceptance: ng generate component', function () {
148
148
expect ( contents . indexOf ( 'selector: \'app-mycomp\'' ) === - 1 ) . to . equal ( false ) ;
149
149
} ) ;
150
150
} ) ;
151
-
151
+
152
152
it ( 'ng generate component mycomp --no-prefix will not prefix selector' , ( ) => {
153
153
return ng ( [ 'generate' , 'component' , 'mycomp' , '--no-prefix' ] )
154
154
. then ( ( ) => {
@@ -158,29 +158,27 @@ describe('Acceptance: ng generate component', function () {
158
158
expect ( contents . indexOf ( 'selector: \'mycomp\'' ) === - 1 ) . to . equal ( false ) ;
159
159
} ) ;
160
160
} ) ;
161
-
161
+
162
162
it ( 'ng generate component myComp will succeed' , ( ) => {
163
163
return ng ( [ 'generate' , 'component' , 'myComp' ] )
164
164
. then ( ( ) => {
165
165
var testPath = path . join ( root , 'tmp' , 'foo' , 'src' , 'client' , 'app' , 'my-comp' , 'my-comp.component.ts' ) ;
166
166
expect ( existsSync ( testPath ) ) . to . equal ( true ) ;
167
167
} ) ;
168
168
} ) ;
169
-
169
+
170
170
it ( 'ng generate component my-comp --inline-template' , function ( ) {
171
171
return ng ( [ 'generate' , 'component' , 'my-comp' , '--inline-template' ] ) . then ( ( ) => {
172
172
var testPath = path . join ( root , 'tmp' , 'foo' , 'src' , 'client' , 'app' , 'my-comp' , 'my-comp.component.html' ) ;
173
173
expect ( existsSync ( testPath ) ) . to . equal ( false ) ;
174
174
} ) ;
175
175
} ) ;
176
-
176
+
177
177
it ( 'ng generate component my-comp --inline-style' , function ( ) {
178
178
return ng ( [ 'generate' , 'component' , 'my-comp' , '--inline-style' ] ) . then ( ( ) => {
179
179
var testPath = path . join ( root , 'tmp' , 'foo' , 'src' , 'client' , 'app' , 'my-comp' , 'my-comp.component.css' ) ;
180
180
expect ( existsSync ( testPath ) ) . to . equal ( false ) ;
181
181
} ) ;
182
182
} ) ;
183
-
184
- it ( 'should ' , ( ) => {
185
- } ) ;
183
+
186
184
} ) ;
0 commit comments