@@ -267,7 +267,7 @@ describe('Acceptance: ng generate component', function () {
267267 . then ( ( ) => ng ( [ 'generate' , 'component' , 'baz' , '--module' , path . join ( 'foo' , 'foo.module.ts' ) ] ) )
268268 . then ( ( ) => readFile ( modulePath , 'utf-8' ) )
269269 . then ( content => {
270- expect ( content ) . matches ( / i m p o r t .* B a z C o m p o n e n t .* f r o m ' .\/ . .\/ b a z \/ b a z .c o m p o n e n t ' ; / ) ;
270+ expect ( content ) . matches ( / i m p o r t .* B a z C o m p o n e n t .* f r o m ' ..\/ b a z \/ b a z .c o m p o n e n t ' ; / ) ;
271271 expect ( content ) . matches ( / d e c l a r a t i o n s : \s + \[ B a z C o m p o n e n t ] / m) ;
272272 } ) ;
273273 } ) ;
@@ -281,7 +281,7 @@ describe('Acceptance: ng generate component', function () {
281281 . then ( ( ) => ng ( [ 'generate' , 'component' , 'baz' , '--module' , path . join ( 'foo' , 'foo' ) ] ) )
282282 . then ( ( ) => readFile ( modulePath , 'utf-8' ) )
283283 . then ( content => {
284- expect ( content ) . matches ( / i m p o r t .* B a z C o m p o n e n t .* f r o m ' .\/ . .\/ b a z \/ b a z .c o m p o n e n t ' ; / ) ;
284+ expect ( content ) . matches ( / i m p o r t .* B a z C o m p o n e n t .* f r o m ' ..\/ b a z \/ b a z .c o m p o n e n t ' ; / ) ;
285285 expect ( content ) . matches ( / d e c l a r a t i o n s : \s + \[ B a z C o m p o n e n t ] / m) ;
286286 } ) ;
287287 } ) ;
@@ -295,7 +295,7 @@ describe('Acceptance: ng generate component', function () {
295295 . then ( ( ) => ng ( [ 'generate' , 'component' , 'baz' , '--module' , 'foo' ] ) )
296296 . then ( ( ) => readFile ( modulePath , 'utf-8' ) )
297297 . then ( content => {
298- expect ( content ) . matches ( / i m p o r t .* B a z C o m p o n e n t .* f r o m ' .\/ . .\/ b a z \/ b a z .c o m p o n e n t ' ; / ) ;
298+ expect ( content ) . matches ( / i m p o r t .* B a z C o m p o n e n t .* f r o m ' ..\/ b a z \/ b a z .c o m p o n e n t ' ; / ) ;
299299 expect ( content ) . matches ( / d e c l a r a t i o n s : \s + \[ B a z C o m p o n e n t ] / m) ;
300300 } ) ;
301301 } ) ;
@@ -310,7 +310,7 @@ describe('Acceptance: ng generate component', function () {
310310 . then ( ( ) => ng ( [ 'generate' , 'component' , 'baz' , '--module' , path . join ( 'foo' , 'bar' ) ] ) )
311311 . then ( ( ) => readFile ( modulePath , 'utf-8' ) )
312312 . then ( content => {
313- expect ( content ) . matches ( / i m p o r t .* B a z C o m p o n e n t .* f r o m ' .\/ . .\/ ..\/ b a z \/ b a z .c o m p o n e n t ' ; / ) ;
313+ expect ( content ) . matches ( / i m p o r t .* B a z C o m p o n e n t .* f r o m ' ..\/ ..\/ b a z \/ b a z .c o m p o n e n t ' ; / ) ;
314314 expect ( content ) . matches ( / d e c l a r a t i o n s : \s + \[ B a z C o m p o n e n t ] / m) ;
315315 } ) ;
316316 } ) ;
0 commit comments