add noParse test cases

This commit is contained in:
Tobias Koppers 2016-12-14 12:03:24 +01:00
parent bc754fc3ba
commit 44d0f4c5be
4 changed files with 15 additions and 0 deletions

View File

@ -0,0 +1,4 @@
it("should correctly export stuff from not parsed modules", function() {
require("./not-parsed-a").should.be.eql("ok");
require("./not-parsed-b").should.be.eql("ok");
});

View File

@ -0,0 +1 @@
module.exports = "ok";

View File

@ -0,0 +1,5 @@
Object.defineProperty(module, "exports", {
get: function() {
return "ok";
}
});

View File

@ -0,0 +1,5 @@
module.exports = {
module: {
noParse: /not-parsed/
}
}