@@ -811,9 +811,9 @@ const runTests = function(baseopts) {
811811 spy . should . have . been . calledTwice ;
812812
813813 await delay ( ) ;
814+ await fs_unlink ( unlinkPath ) ;
814815 await write ( addPath , Date . now ( ) ) ;
815816 await write ( changePath , Date . now ( ) ) ;
816- await fs_unlink ( unlinkPath ) ;
817817
818818 await waitFor ( [ [ spy , 4 ] , spy . withArgs ( 'unlink' , unlinkPath ) ] ) ;
819819 spy . should . have . been . calledWith ( 'change' , changePath ) ;
@@ -1405,8 +1405,8 @@ const runTests = function(baseopts) {
14051405 options . cwd = currentDir ;
14061406 let watcher = chokidar_watch ( '**' , options ) ;
14071407 const spy = await aspy ( watcher , 'all' ) ;
1408- await write ( getFixturePath ( 'change.txt' ) , Date . now ( ) ) ;
14091408 await fs_unlink ( getFixturePath ( 'unlink.txt' ) ) ;
1409+ await write ( getFixturePath ( 'change.txt' ) , Date . now ( ) ) ;
14101410 await waitFor ( [ spy . withArgs ( 'unlink' ) ] ) ;
14111411 spy . should . have . been . calledWith ( 'add' , 'change.txt' ) ;
14121412 spy . should . have . been . calledWith ( 'add' , 'unlink.txt' ) ;
@@ -1448,8 +1448,8 @@ const runTests = function(baseopts) {
14481448 let watcher2 = chokidar_watch ( currentDir , options2 ) ;
14491449 const spy2 = await aspy ( watcher2 , 'all' ) ;
14501450
1451- await write ( getFixturePath ( 'change.txt' ) , Date . now ( ) ) ;
14521451 await fs_unlink ( getFixturePath ( 'unlink.txt' ) ) ;
1452+ await write ( getFixturePath ( 'change.txt' ) , Date . now ( ) ) ;
14531453 await waitFor ( [ spy1 . withArgs ( 'unlink' ) , spy2 . withArgs ( 'unlink' ) ] ) ;
14541454 spy1 . should . have . been . calledWith ( 'change' , 'change.txt' ) ;
14551455 spy1 . should . have . been . calledWith ( 'unlink' , 'unlink.txt' ) ;
0 commit comments