Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/rewire.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Ewald <johannes.ewald@peerigon.com>2015-02-05 23:11:50 +0300
committerJohannes Ewald <johannes.ewald@peerigon.com>2015-02-05 23:11:50 +0300
commitfb5b841fdc65ed69adcbcbf4b33d17a0f61249e5 (patch)
tree3a10e6eebe72f7a0de059ed2d8af47f6ceead69b /test/rewire.test.js
parentb4af5ba1bb3908b3f6743bf96d867c37c399a57c (diff)
Use mocha to check for global leaks
Diffstat (limited to 'test/rewire.test.js')
-rw-r--r--test/rewire.test.js8
1 files changed, 0 insertions, 8 deletions
diff --git a/test/rewire.test.js b/test/rewire.test.js
index 0524a36..1ac0129 100644
--- a/test/rewire.test.js
+++ b/test/rewire.test.js
@@ -16,14 +16,6 @@ describe("rewire", function () {
fs.renameSync(fakeNodeModules, path.resolve(__dirname, "testModules/node_modules"));
}
});
- it("should keep not leak globals", function () {
- // This test should run first, as the global space may be already polluted if
- // require("../") is run before this test.
- var originalGlobalKeys = Object.keys(global),
- rewire = require("../"),
- emptyModule = rewire("./testModules/emptyModule.js");
- expect(Object.keys(global)).to.eql(originalGlobalKeys);
- });
it("should pass all shared test cases", function () {
require("./testModules/sharedTestCases.js");
});