Use toThrowError instead of toThrow in places where we are expecting an error

This commit is contained in:
Sheel Choksi
2013-10-24 12:15:17 -07:00
parent a309117758
commit d0aff9ed02
2 changed files with 5 additions and 5 deletions

View File

@@ -4,7 +4,7 @@ describe("toThrow", function() {
expect(function() {
matcherComparator({});
}).toThrow(new Error("Actual is not a Function")); // TODO: this needs to change for self-test
}).toThrowError("Actual is not a Function");
});
it("fails if actual does not throw", function() {