mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
[simplemocha] always perform mocha setup if grunt task is loaded
This commit is contained in:
parent
d3fd053d0a
commit
7773625690
1 changed files with 1 additions and 9 deletions
|
@ -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: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue