diff options
author | Johannes Ewald <johannes.ewald@peerigon.com> | 2014-05-20 14:09:13 +0400 |
---|---|---|
committer | Johannes Ewald <johannes.ewald@peerigon.com> | 2014-05-20 14:09:13 +0400 |
commit | 816cdbe0590797feec49ef4e1f696ed935b33947 (patch) | |
tree | d76fa3f632fd0be3cc1b14951c2629bd1373dfd9 /test/testModules/sharedTestCases.js | |
parent | 125d7e2f4ec12eeb66c2ebc7e4e27d56cb7f1505 (diff) |
Added istanbul for test coverage
Diffstat (limited to 'test/testModules/sharedTestCases.js')
-rw-r--r-- | test/testModules/sharedTestCases.js | 5 |
1 files changed, 5 insertions, 0 deletions
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 |