mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Add a basic regression test of issue #10563.
This commit is contained in:
5
tools/tests/apps/modules/package-lock.json
generated
5
tools/tests/apps/modules/package-lock.json
generated
@@ -1350,6 +1350,11 @@
|
||||
"resolved": "https://registry.npmjs.org/pend/-/pend-1.2.0.tgz",
|
||||
"integrity": "sha1-elfrVQpng/kRUzH89GY9XI4AelA="
|
||||
},
|
||||
"pify": {
|
||||
"version": "4.0.1",
|
||||
"resolved": "https://registry.npmjs.org/pify/-/pify-4.0.1.tgz",
|
||||
"integrity": "sha512-uB80kBFb/tfd68bVleG9T5GGsGPjJrLAUpR5PZIrhBnIaRTQRjqdJSsIKkOP6OAIFbj7GOrcudc5pNjZ+geV2g=="
|
||||
},
|
||||
"process-nextick-args": {
|
||||
"version": "2.0.0",
|
||||
"resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.0.tgz",
|
||||
|
||||
@@ -22,6 +22,7 @@
|
||||
"moment": "^2.22.2",
|
||||
"mssql": "^3.1.1",
|
||||
"mysql": "^2.15.0",
|
||||
"pify": "^4.0.1",
|
||||
"puppeteer": "^1.6.2",
|
||||
"regenerator-runtime": "^0.11.1",
|
||||
"stripe": "^4.4.0",
|
||||
|
||||
@@ -682,3 +682,15 @@ describe("issue #10409", () => {
|
||||
assert.strictEqual(typeof action, "function");
|
||||
});
|
||||
});
|
||||
|
||||
describe("issue #10563", () => {
|
||||
it("should be able to import pify@4.0.1 in legacy browsers", () => {
|
||||
const pify = require("pify");
|
||||
assert.strictEqual(typeof pify, "function");
|
||||
const code = Function.prototype.toString.call(pify);
|
||||
assert.strictEqual(
|
||||
/\bconst\b/.test(code),
|
||||
Meteor.isModern,
|
||||
);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user