Skip to content

Commit

Permalink
add test case: type check before calling retriedTest()
Browse files Browse the repository at this point in the history
  • Loading branch information
boneskull authored and juergba committed Apr 25, 2020
1 parent e659027 commit 7f75489
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/unit/runner.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -452,6 +452,13 @@ describe('Runner', function() {
done();
});
});

// karma-mocha is inexplicably doing this with a Hook
it('should not throw an exception if something emits EVENT_TEST_END with a non-Test object', function() {
expect(function() {
runner.emit(EVENT_TEST_END, {});
}, 'not to throw');
});
});

describe('.runTest(fn)', function() {
Expand Down

0 comments on commit 7f75489

Please sign in to comment.