Test that require("module") returns Module constructor on the client.

On the server, require("module") returns Node's native Module constructor,
which is not the same as module.constructor in our server JS bundle.
This commit is contained in:
Ben Newman
2017-06-02 16:26:54 -04:00
parent b75cdbfe6e
commit 929fa0e90e

View File

@@ -266,6 +266,11 @@ describe("native node_modules", () => {
require("vm");
require("zlib");
});
Meteor.isClient &&
it('should return Module from require("module")', () => {
assert.ok(module instanceof require("module"));
});
});
describe("local node_modules", () => {