[simplemocha] always perform mocha setup if grunt task is loaded

This commit is contained in:
spalger 2016-01-14 10:32:28 -07:00
parent d3fd053d0a
commit 7773625690

View file

@ -1,12 +1,4 @@
var wrap = require('lodash').wrap;
var Mocha = require('mocha');
// work around simplemocha's lack of a "--require" option.
// see https://github.com/yaymukund/grunt-simple-mocha/issues/50 for feature request.
Mocha.prototype.run = wrap(Mocha.prototype.run, function (orig) {
require('../../test/mocha_setup');
orig.call(this);
});
require('../../test/mocha_setup');
module.exports = {
options: {