Skip to content

Commit

Permalink
Add test for mocha.reporter('xunit').run()
Browse files Browse the repository at this point in the history
  • Loading branch information
Lana-Light authored Dec 15, 2018
1 parent 4351697 commit b20e22a
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/unit/mocha.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,15 @@ describe('Mocha', function() {
mocha.run(done);
});
});

describe('.reporter("xunit").run(fn)', function() {
it('should not raise errors if callback was not provided', function() {
var mocha = new Mocha();
expect(function() {
mocha.reporter('xunit').run();
}, 'not to throw');
});
});

describe('.addFile()', function() {
it('should add the given file to the files array', function() {
Expand Down

0 comments on commit b20e22a

Please sign in to comment.