mirror of https://github.com/webpack/webpack.git
8 lines
301 B
JavaScript
8 lines
301 B
JavaScript
const fs = require("fs");
|
|
const path = require("path");
|
|
|
|
it("IIFE should present for inner strict", () => {
|
|
const source = fs.readFileSync(path.join(__dirname, "bundle0.js"), "utf-8");
|
|
expect(source).toContain(`This entry needs to be wrapped in an IIFE because it needs to be in strict mode.`);
|
|
});
|