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 committed Apr 29, 2020
1 parent 97601b0 commit 66d9b29
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/unit/runner.spec.js
Expand Up @@ -472,6 +472,13 @@ describe('Runner', function() {
runner.emit(EVENT_SUITE_END, suite);
expect(cleanReferencesStub, 'was not called');
});

// 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('.dispose', function() {
Expand Down

0 comments on commit 66d9b29

Please sign in to comment.