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-11-14 20:59:06 +0300
committerJohannes Ewald <johannes.ewald@peerigon.com>2015-11-14 20:59:06 +0300
commit5a8ba82b39f69f3750ddf83c6f6fc6f6e2ecb2a2 (patch)
treea411f44c7c03d99f4412a6bcdbf2798b550fb733 /test/rewire.test.js
parentac0c8a37250513b49670739ac6f95a5805687251 (diff)
Move shared test cases into lib folder
Since new versions of npm respect the .npmignore even when it comes from git urls, we need to move the shared test cases into the lib folder in order to provide these cases to other modules which port rewire's functionality to other environments. As discussed at https://github.com/jhnns/rewire-webpack/pull/18
Diffstat (limited to 'test/rewire.test.js')
-rw-r--r--test/rewire.test.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/rewire.test.js b/test/rewire.test.js
index 1ac0129..900e0fc 100644
--- a/test/rewire.test.js
+++ b/test/rewire.test.js
@@ -17,13 +17,13 @@ describe("rewire", function () {
}
});
it("should pass all shared test cases", function () {
- require("./testModules/sharedTestCases.js");
+ require("../lib/testModules/sharedTestCases.js");
});
it("should also work with CoffeeScript", function () {
var coffeeModule;
rewire = require("../");
- coffeeModule = rewire("./testModules/module.coffee");
+ coffeeModule = rewire("../lib/testModules/module.coffee");
coffeeModule.__set__("fs", {
readFileSync: function () {
return "It works!";
@@ -31,4 +31,4 @@ describe("rewire", function () {
});
expect(coffeeModule.readFileSync()).to.be("It works!");
});
-}); \ No newline at end of file
+});