Skip to content

Commit 740e460

Browse files
committed
convert test from latest master merge
1 parent ddc9988 commit 740e460

File tree

1 file changed

+2
-3
lines changed
  • test/configCases/parsing/import-ignore

1 file changed

+2
-3
lines changed
Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
const fs = require("fs");
22
const path = require("path");
3-
const should = require("should");
43

54
it("should be able to ignore import()", () => {
65
const source = fs.readFileSync(path.join(__dirname, "bundle1.js"), "utf-8");
7-
should(source).containEql(`import(/* webpackIgnore: true */ "./other2.js")`);
8-
should(source).not.containEql(`import(/* webpackIgnore: false */ "./other3.js")`);
6+
expect(source).toMatch(`import(/* webpackIgnore: true */ "./other2.js")`);
7+
expect(source).not.toMatch(`import(/* webpackIgnore: false */ "./other3.js")`);
98
});

0 commit comments

Comments
 (0)