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
path: root/test
diff options
context:
space:
mode:
authorjhnns <johannes.ewald@peerigon.com>2013-10-01 02:25:05 +0400
committerjhnns <johannes.ewald@peerigon.com>2013-10-01 02:25:05 +0400
commita3c91fd7bbdcdf5b2edce66bb1431b50b77b963f (patch)
tree6e6fc41cd57c2e211d3ce735bd56209c541cb8cd /test
parentf9adaa4bf258a66f0ee09de534b298f1d680c877 (diff)
- removed client-side bundlers (for webpack support take a look at https://github.com/jhnns/rewire-webpack)
Diffstat (limited to 'test')
-rw-r--r--test/debug.test.js11
-rw-r--r--test/testModules/sharedTestCases.js5
2 files changed, 2 insertions, 14 deletions
diff --git a/test/debug.test.js b/test/debug.test.js
deleted file mode 100644
index 0ffbacf..0000000
--- a/test/debug.test.js
+++ /dev/null
@@ -1,11 +0,0 @@
-var rewire = require("../lib/index.js");
-
-// add breakpoints in testModules/debuggerModule.js and debug this file with your IDE to
-// check if debugging works with rewire.
-var debuggerModule = rewire("./testModules/debuggerModule.js");
-
-debugger;
-
-debuggerModule.__set__("myNumber", 1);
-
-debuggerModule(); \ No newline at end of file
diff --git a/test/testModules/sharedTestCases.js b/test/testModules/sharedTestCases.js
index 050c753..65537e6 100644
--- a/test/testModules/sharedTestCases.js
+++ b/test/testModules/sharedTestCases.js
@@ -2,8 +2,7 @@
// In case this module was in strict mode, all other modules called by this would also be strict.
// But when testing if the strict mode is preserved, we must ensure that this module is NOT strict.
-var path = require("path"),
- expect = require("expect.js"),
+var expect = require("expect.js"),
rewire = require("rewire");
function checkForTypeError(err) {
@@ -46,7 +45,7 @@ describe("rewire " + (typeof testEnv === "undefined"? "(node)": "(" + testEnv +
expect(rewire("./moduleB.js").__get__).to.be.a(Function);
});
it("should not influence other modules", function () {
- var rewiredModuleA = rewire("./moduleA.js");
+ rewire("./moduleA.js");
expect(require("./someOtherModule.js").__set__).to.be(undefined);
expect(require("./someOtherModule.js").__get__).to.be(undefined);