Fix up my refactoring mistake in toThrowError

strengthen the associated tests to protect against it in the future
This commit is contained in:
Sheel Choksi
2013-06-04 00:25:12 -07:00
parent b87eb240b3
commit 600be098af
3 changed files with 16 additions and 6 deletions

View File

@@ -25,7 +25,7 @@ describe("toThrowError", function() {
};
expect(function() {
matcher.compare(fn, "string", "foo");
matcher.compare(fn, void 0, "foo");
}).toThrow(new Error("Expected error type is not an Error.")); // TODO: this needs to change for self-test
});