Skip to content

Commit 7f75489

Browse files
boneskulljuergba
authored andcommitted
add test case: type check before calling retriedTest()
1 parent e659027 commit 7f75489

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

test/unit/runner.spec.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -452,6 +452,13 @@ describe('Runner', function() {
452452
done();
453453
});
454454
});
455+
456+
// karma-mocha is inexplicably doing this with a Hook
457+
it('should not throw an exception if something emits EVENT_TEST_END with a non-Test object', function() {
458+
expect(function() {
459+
runner.emit(EVENT_TEST_END, {});
460+
}, 'not to throw');
461+
});
455462
});
456463

457464
describe('.runTest(fn)', function() {

0 commit comments

Comments
 (0)