8000 Fix missing reporters exports · arangodb/arangodb@9cd5686 · GitHub
[go: up one dir, main page]

Skip to content

Commit 9cd5686

Browse files
committed
Fix missing reporters exports
This is actually used in the Foxx HTTP API app.
1 parent 1d106fe commit 9cd5686

File tree

1 file changed

+4
-4
lines changed
  • js/common/modules/@arangodb/mocha

1 file changed

+4
-4
lines changed

js/common/modules/@arangodb/mocha/index.js

Expand all lines: js/common/modules/@arangodb/mocha/index.js
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ var MochaSuite = require('@arangodb/mocha/suite');
3232
var MochaRunner = require('@arangodb/mocha/runner');
3333
var createStatsCollector = require('@arangodb/mocha/stats-collector');
3434

35-
const reporters = {
35+
exports.reporters = {
3636
stream: require('@arangodb/mocha/reporter/stream'),
3737
suite: require('@arangodb/mocha/reporter/suite'),
3838
xunit: require('@arangodb/mocha/reporter/xunit'),
@@ -45,11 +45,11 @@ exports.run = function runMochaTests (run, files, reporterName, grep) {
4545
files = [files];
4646
}
4747

48-
if (reporterName && !reporters[reporterName]) {
48+
if (reporterName && !exports.reporters[reporterName]) {
4949
throw new Error(`Unknown test reporter: "${
5050
reporterName
5151
}". Known reporters: ${
52-
Object.keys(reporters).join(', ')
52+
Object.keys(exports.reporters).join(', ')
5353
}`);
5454
}
5555

@@ -89,7 +89,7 @@ exports.run = function runMochaTests (run, files, reporterName, grep) {
8989
var globals = Object.getOwnPropertyNames(global);
9090
var objectProps = Object.getOwnPropertyNames(Object.prototype);
9191

92-
var Reporter = reporters[reporterName || "default"];
92+
var Reporter = exports.reporters[reporterName || "default"];
9393
var reporter, runner;
9494

9595
try {

0 commit comments

Comments
 (0)
0