mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
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:
@@ -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", () => {
|
||||
|
||||
Reference in New Issue
Block a user