@@ -313,12 +313,16 @@ describe('Basic end-to-end Workflow', function () {
313
313
it ( 'moves all files that live inside `assets` into `dist`' , function ( ) {
314
314
this . timeout ( 420000 ) ;
315
315
316
- const tmpFile = path . join ( process . cwd ( ) , 'src' , 'assets' , 'test.abc' ) ;
317
- const tmpFileLocation = path . join ( process . cwd ( ) , 'dist' , 'assets' , 'test.abc' ) ;
318
- fs . writeFileSync ( tmpFile , 'hello world' ) ;
316
+ const dotFile = path . join ( process . cwd ( ) , 'src' , 'assets' , '.file' ) ;
317
+ const distDotFile = path . join ( process . cwd ( ) , 'dist' , 'assets' , '.file' ) ;
318
+ fs . writeFileSync ( dotFile , '' ) ;
319
+ const testFile = path . join ( process . cwd ( ) , 'src' , 'assets' , 'test.abc' ) ;
320
+ const distTestFile = path . join ( process . cwd ( ) , 'dist' , 'assets' , 'test.abc' ) ;
321
+ fs . writeFileSync ( testFile , 'hello world' ) ;
319
322
320
323
sh . exec ( `${ ngBin } build` ) ;
321
- expect ( existsSync ( tmpFileLocation ) ) . to . be . equal ( true ) ;
324
+ expect ( existsSync ( dotFile ) ) . to . be . equal ( true ) ;
325
+ expect ( existsSync ( builtTestFile ) ) . to . be . equal ( true ) ;
322
326
} ) ;
323
327
324
328
// Mobile mode doesn't have styles
0 commit comments