Make the check for pending spec exception work for values that don't have toString

This commit is contained in:
Sheel Choksi
2014-01-04 23:08:21 -08:00
parent f576395620
commit b525313cdb
3 changed files with 6 additions and 2 deletions

View File

@@ -20,6 +20,10 @@ describe("Spec", function() {
expect(j$.Spec.isPendingSpecException(e)).toBe(false);
});
it("#isPendingSpecException returns false for thrown values that don't have toString", function() {
expect(j$.Spec.isPendingSpecException(void 0)).toBe(false);
});
it("delegates execution to a QueueRunner", function() {
var fakeQueueRunner = jasmine.createSpy('fakeQueueRunner'),
spec = new j$.Spec({