diff options
author | Johannes Ewald <johannes.ewald@peerigon.com> | 2017-11-11 04:23:18 +0300 |
---|---|---|
committer | Johannes Ewald <johannes.ewald@peerigon.com> | 2017-11-11 04:47:48 +0300 |
commit | b6cc4071f67d47596901c01506eeeff138ab059e (patch) | |
tree | 18fd5e8f2627907cd85ee874a1d78519c2f7e779 /test | |
parent | 501e4c29bd16eaafae348b8faba6e5b061b98bc4 (diff) |
Refactor code
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..4d3b985 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; |