We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ddc9988 commit 740e460Copy full SHA for 740e460
test/configCases/parsing/import-ignore/index.js
@@ -1,9 +1,8 @@
1
const fs = require("fs");
2
const path = require("path");
3
-const should = require("should");
4
5
it("should be able to ignore import()", () => {
6
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")`);
+ expect(source).toMatch(`import(/* webpackIgnore: true */ "./other2.js")`);
+ expect(source).not.toMatch(`import(/* webpackIgnore: false */ "./other3.js")`);
9
});
0 commit comments