Add a basic regression test of issue #10563.

This commit is contained in:
Ben Newman
2019-06-17 13:17:53 -04:00
parent d21400567f
commit 88004d4649
3 changed files with 18 additions and 0 deletions

View File

@@ -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",

View File

@@ -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",

View File

@@ -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,
);
});
});