fix datadog test

pull/51/head
Fabian Jakobs 2015-03-17 09:55:49 +00:00
rodzic 15da3c21dd
commit f1b14e0117
1 zmienionych plików z 2 dodań i 2 usunięć

4
node_modules/c9/inline-mocha.js wygenerowano vendored
Wyświetl plik

@ -1,10 +1,10 @@
module.exports = function(module, reporter) {
module.exports = function(module, reporter, options) {
if (typeof module !== "undefined" && module === require.main) {
if (typeof global.onload === "undefined")
global.onload = undefined;
var file = module.filename;
var Mocha = require("mocha");
var mocha = new Mocha();
var mocha = new Mocha({globals: ['error']});
mocha.reporter(reporter || "spec");
var suite = mocha.suite;
suite.emit('pre-require', global, file, mocha);