Skip to content

armgit / mocha

Public Imported from GitHub
0

☕️ Classic, reliable, trusted test framework for Node.js and the browser

remove duplicated/problem reporter tests; closes #4469

Christopher Hillerf132448ee51d
diff --git a/test/unit/mocha.spec.js b/test/unit/mocha.spec.js
index eea44596..142018b5 100644
--- a/test/unit/mocha.spec.js
+++ b/test/unit/mocha.spec.js
@@ -534,20 +534,6 @@ describe('Mocha', function() {
});
describe('reporter()', function() {
- it('should throw reporter error if an invalid reporter is given', function() {
- expect(
- function() {
- mocha.reporter('invalidReporter');
- },
- 'to throw',
- {
- message: "invalid reporter 'invalidReporter'",
- code: 'ERR_MOCHA_INVALID_REPORTER',
- reporter: 'invalidReporter'
- }
- );
- });
-
it('should be chainable', function() {
expect(mocha.reporter(), 'to be', mocha);
});
@@ -575,18 +561,6 @@ describe('Mocha', function() {
// To support the legacy property name that can be used by reporters
expect(mocha.options.reporterOptions, 'to have property', 'foo', 'bar');
});
-
- describe('when a reporter does not exist', function() {
- it('should throw an "invalid reporter" exception', function() {
- expect(
- function() {
- mocha.reporter('no such thing');
- },
- 'to throw',
- {code: 'ERR_MOCHA_INVALID_REPORTER'}
- );
- });
- });
});
describe('run()', function() {