mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Test that stub modules can be installed under different names.
This relies on the symbolic link functionality provided by meteorInstall.
This commit is contained in:
@@ -10,6 +10,8 @@
|
||||
"path": "^0.12.7",
|
||||
"regenerator": "^0.8.42",
|
||||
"stream-browserify": "^2.0.1",
|
||||
"stream-http": "^2.1.1",
|
||||
"url": "^0.11.0",
|
||||
"util": "^0.10.3"
|
||||
},
|
||||
"scripts": {
|
||||
|
||||
@@ -195,6 +195,17 @@ describe("native node_modules", () => {
|
||||
assert.strictEqual(typeof Stream, "function");
|
||||
assert.strictEqual(typeof Stream.Readable, "function");
|
||||
});
|
||||
|
||||
Meteor.isClient &&
|
||||
it("can be installed with aliases", () => {
|
||||
meteorInstall({
|
||||
node_modules: {
|
||||
http: "stream-http"
|
||||
}
|
||||
});
|
||||
|
||||
assert.strictEqual(require("http"), require("stream-http"));
|
||||
});
|
||||
});
|
||||
|
||||
describe("local node_modules", () => {
|
||||
|
||||
Reference in New Issue
Block a user