Skip to content

Commit c48c3d2

Browse files
committedAug 6, 2020
improve test case for multiple files
1 parent ff2cdb4 commit c48c3d2

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed
 

‎test/ManyWatchers.js

+9-1
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,18 @@ describe("ManyWatchers", function() {
2525
j >>= 1;
2626
}
2727
const dir = `${i & highBit}/${i & ~highBit}`;
28-
if (i === highBit) testHelper.dir(`${i}`);
28+
if (i === highBit) {
29+
testHelper.dir(`${i}`);
30+
testHelper.file(`${i}/file`);
31+
files.push(path.join(fixtures, `${i}`, "file"));
32+
}
2933
testHelper.dir(dir);
3034
testHelper.file(`${dir}/file`);
3135
files.push(path.join(fixtures, dir, "file"));
36+
if (i === highBit) {
37+
testHelper.file(`${dir}/file2`);
38+
files.push(path.join(fixtures, dir, "file2"));
39+
}
3240
}
3341
testHelper.tick(1000, () => {
3442
const w = new Watchpack({

0 commit comments

Comments
 (0)
Please sign in to comment.