mirror of https://github.com/webpack/webpack.git
Add a test case to invalidate #5889
This commit is contained in:
parent
5653732d53
commit
348057fa0a
|
@ -0,0 +1,5 @@
|
|||
const result = require("./module");
|
||||
|
||||
it("should correctly replace 'require' bindings", () => {
|
||||
expect(result).toBe(true);
|
||||
});
|
|
@ -0,0 +1,6 @@
|
|||
let result = false;
|
||||
if (require) {
|
||||
result = true;
|
||||
}
|
||||
|
||||
module.exports = result;
|
Loading…
Reference in New Issue