Skip to content

Commit

Permalink
improve test case for multiple files
Browse files Browse the repository at this point in the history
  • Loading branch information
sokra committed Aug 6, 2020
1 parent ff2cdb4 commit c48c3d2
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion test/ManyWatchers.js
Expand Up @@ -25,10 +25,18 @@ describe("ManyWatchers", function() {
j >>= 1;
}
const dir = `${i & highBit}/${i & ~highBit}`;
if (i === highBit) testHelper.dir(`${i}`);
if (i === highBit) {
testHelper.dir(`${i}`);
testHelper.file(`${i}/file`);
files.push(path.join(fixtures, `${i}`, "file"));
}
testHelper.dir(dir);
testHelper.file(`${dir}/file`);
files.push(path.join(fixtures, dir, "file"));
if (i === highBit) {
testHelper.file(`${dir}/file2`);
files.push(path.join(fixtures, dir, "file2"));
}
}
testHelper.tick(1000, () => {
const w = new Watchpack({
Expand Down

0 comments on commit c48c3d2

Please sign in to comment.