diff --git a/test/unit/mocha.spec.js b/test/unit/mocha.spec.js index 2511b1204d..e8e6295b52 100644 --- a/test/unit/mocha.spec.js +++ b/test/unit/mocha.spec.js @@ -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() {