diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/testModules/fake_node_modules/rewire/package.json | 3 | ||||
-rw-r--r-- | test/testModules/module.coffee | 2 | ||||
-rw-r--r-- | test/testModules/sharedTestCases.js | 5 |
3 files changed, 6 insertions, 4 deletions
diff --git a/test/testModules/fake_node_modules/rewire/package.json b/test/testModules/fake_node_modules/rewire/package.json deleted file mode 100644 index d8927cd..0000000 --- a/test/testModules/fake_node_modules/rewire/package.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "main": "../../../../lib/index.js" -}
\ No newline at end of file diff --git a/test/testModules/module.coffee b/test/testModules/module.coffee index 02fa5d5..5487878 100644 --- a/test/testModules/module.coffee +++ b/test/testModules/module.coffee @@ -1,3 +1,3 @@ -fs = require "fs" +fs = require "fs" exports.readFileSync = () -> fs.readFileSync()
\ No newline at end of file diff --git a/test/testModules/sharedTestCases.js b/test/testModules/sharedTestCases.js index 65537e6..3672769 100644 --- a/test/testModules/sharedTestCases.js +++ b/test/testModules/sharedTestCases.js @@ -175,4 +175,9 @@ describe("rewire " + (typeof testEnv === "undefined"? "(node)": "(" + testEnv + } } }); + it("should throw a TypeError if the path is not a string", function () { + expect(function () { + rewire(null); + }).to.throwException(checkForTypeError); + }); });
\ No newline at end of file |