Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add test case for #4251 #4252

Merged
merged 1 commit into from Apr 25, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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