@@ -313,12 +313,18 @@ describe('Basic end-to-end Workflow', function () {
313313 it ( 'moves all files that live inside `assets` into `dist`' , function ( ) {
314314 this . timeout ( 420000 ) ;
315315
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' ) ;
322+ const distDotGitIgnore = path . join ( process . cwd ( ) , 'dist' , 'assets' , '.gitignore' ) ;
319323
320324 sh . exec ( `${ ngBin } build` ) ;
321- expect ( existsSync ( tmpFileLocation ) ) . to . be . equal ( true ) ;
325+ expect ( existsSync ( dotFile ) ) . to . be . equal ( true ) ;
326+ expect ( existsSync ( builtTestFile ) ) . to . be . equal ( true ) ;
327+ expect ( existsSync ( distDotGitIgnore ) ) . to . be . equal ( false ) ;
322328 } ) ;
323329
324330 // Mobile mode doesn't have styles
0 commit comments