kopia lustrzana https://github.com/c9/core
commit
504f68ac0a
|
@ -1,10 +1,10 @@
|
||||||
module.exports = function(module, reporter) {
|
module.exports = function(module, reporter, options) {
|
||||||
if (typeof module !== "undefined" && module === require.main) {
|
if (typeof module !== "undefined" && module === require.main) {
|
||||||
if (typeof global.onload === "undefined")
|
if (typeof global.onload === "undefined")
|
||||||
global.onload = undefined;
|
global.onload = undefined;
|
||||||
var file = module.filename;
|
var file = module.filename;
|
||||||
var Mocha = require("mocha");
|
var Mocha = require("mocha");
|
||||||
var mocha = new Mocha();
|
var mocha = new Mocha(options || {});
|
||||||
mocha.reporter(reporter || "spec");
|
mocha.reporter(reporter || "spec");
|
||||||
var suite = mocha.suite;
|
var suite = mocha.suite;
|
||||||
suite.emit('pre-require', global, file, mocha);
|
suite.emit('pre-require', global, file, mocha);
|
||||||
|
|
Ładowanie…
Reference in New Issue