There was an error while loading. Please reload this page.
1 parent a64b70b commit 584fe1fCopy full SHA for 584fe1f
1 file changed
test.js
@@ -198,7 +198,7 @@ const runTests = (baseopts) => {
198
});
199
200
it.skip('should emit thirtythree `add` events when thirtythree files were added in nine directories', async () => {
201
- watcher.close();
+ await watcher.close();
202
203
const test1Path = getFixturePath('add1.txt');
204
const testb1Path = getFixturePath('b/add1.txt');
@@ -1950,7 +1950,7 @@ const runTests = (baseopts) => {
1950
const watcher = chokidar_watch(currentDir, options);
1951
watcher.once('add', () => {
1952
watcher.once('add', async () => {
1953
- watcher.on('add', spy).close();
+ await watcher.on('add', spy).close();
1954
await delay(900);
1955
await write(getFixturePath('add.txt'), Date.now());
1956
spy.should.not.have.been.called;
0 commit comments