Skip to content

Commit

Permalink
remove duplicated/problem reporter tests; closes mochajs#4469
Browse files Browse the repository at this point in the history
Signed-off-by: Christopher Hiller <[email protected]>
  • Loading branch information
boneskull committed Oct 14, 2020
1 parent 31116db commit f132448
Showing 1 changed file with 0 additions and 26 deletions.
26 changes: 0 additions & 26 deletions test/unit/mocha.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
Expand Down Expand Up @@ -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() {
Expand Down

0 comments on commit f132448

Please sign in to comment.