diff options
author | Johannes Ewald <mail@johannesewald.de> | 2017-11-11 05:14:58 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-11 05:14:58 +0300 |
commit | 457955afab6e3f9baf649b6d9275d08f27b671ac (patch) | |
tree | 9b06934df193875f41dfc9400a352acd3183eb2a /test | |
parent | fff5037950f78b4164c299560f761bd5e3dc9e06 (diff) | |
parent | ec2175b17bd1f2ecdb479c66fab8a01666d6da3a (diff) |
Merge pull request #118 from jhnns/pr/origin/117
Enable const support
Diffstat (limited to 'test')
-rw-r--r-- | test/getImportGlobalsSrc.test.js | 3 | ||||
-rw-r--r-- | test/rewire.test.js | 4 |
2 files changed, 3 insertions, 4 deletions
diff --git a/test/getImportGlobalsSrc.test.js b/test/getImportGlobalsSrc.test.js index ab9e946..28ac50c 100644 --- a/test/getImportGlobalsSrc.test.js +++ b/test/getImportGlobalsSrc.test.js @@ -25,6 +25,7 @@ describe("getImportGlobalsSrc", function () { delete global.module;
delete global.exports;
delete global.require;
+ delete global['__core-js_shared__'];
delete global['a-b'];
expectedGlobals = Object.keys(global);
@@ -60,7 +61,7 @@ describe("getImportGlobalsSrc", function () { // node v0.10 does not set a constructor property on the context
// node v0.11 does set a constructor property
// so just lets filter it, because it doesn't make sense to mock it anyway
- return key !== "constructor";
+ return key !== "constructor"
});
actualGlobals.sort();
expectedGlobals.sort();
diff --git a/test/rewire.test.js b/test/rewire.test.js index ecf3cc9..b6e1499 100644 --- a/test/rewire.test.js +++ b/test/rewire.test.js @@ -16,9 +16,7 @@ describe("rewire", function () { fs.renameSync(fakeNodeModules, path.resolve(__dirname, "../testLib/node_modules")); } }); - it("should pass all shared test cases", function () { - require("../testLib/sharedTestCases.js"); - }); + require("../testLib/sharedTestCases.js")(); it("should also work with CoffeeScript", function () { var coffeeModule; |