@@ -267,7 +267,7 @@ describe('Acceptance: ng generate component', function () {
267
267
. then ( ( ) => ng ( [ 'generate' , 'component' , 'baz' , '--module' , path . join ( 'foo' , 'foo.module.ts' ) ] ) )
268
268
. then ( ( ) => readFile ( modulePath , 'utf-8' ) )
269
269
. 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 ' ; / ) ;
271
271
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) ;
272
272
} ) ;
273
273
} ) ;
@@ -281,7 +281,7 @@ describe('Acceptance: ng generate component', function () {
281
281
. then ( ( ) => ng ( [ 'generate' , 'component' , 'baz' , '--module' , path . join ( 'foo' , 'foo' ) ] ) )
282
282
. then ( ( ) => readFile ( modulePath , 'utf-8' ) )
283
283
. 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 ' ; / ) ;
285
285
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) ;
286
286
} ) ;
287
287
} ) ;
@@ -295,7 +295,7 @@ describe('Acceptance: ng generate component', function () {
295
295
. then ( ( ) => ng ( [ 'generate' , 'component' , 'baz' , '--module' , 'foo' ] ) )
296
296
. then ( ( ) => readFile ( modulePath , 'utf-8' ) )
297
297
. 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 ' ; / ) ;
299
299
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) ;
300
300
} ) ;
301
301
} ) ;
@@ -310,7 +310,7 @@ describe('Acceptance: ng generate component', function () {
310
310
. then ( ( ) => ng ( [ 'generate' , 'component' , 'baz' , '--module' , path . join ( 'foo' , 'bar' ) ] ) )
311
311
. then ( ( ) => readFile ( modulePath , 'utf-8' ) )
312
312
. 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 ' ; / ) ;
314
314
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) ;
315
315
} ) ;
316
316
} ) ;
0 commit comments