Skip to content

Commit

Permalink
add test case for #4251
Browse files Browse the repository at this point in the history
Signed-off-by: Christopher Hiller <boneskull@boneskull.com>
  • Loading branch information
boneskull committed Apr 24, 2020
1 parent 13e94b1 commit 3969c99
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/unit/runner.spec.js
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 3969c99

Please sign in to comment.