fix noise in mocha test output re: missing module

This commit is contained in:
Michael Bradley, Jr 2018-07-17 11:05:56 -05:00 committed by Iuri Matias
parent 6a86af8020
commit f81c16e3aa
2 changed files with 3 additions and 1 deletions

View File

@ -3,6 +3,7 @@ const assert = require('assert');
const sinon = require('sinon'); const sinon = require('sinon');
const TestLogger = require('../lib/tests/test_logger'); const TestLogger = require('../lib/tests/test_logger');
const ProcessLauncher = require('../lib/process/processLauncher'); const ProcessLauncher = require('../lib/process/processLauncher');
const path = require('path');
describe('ProcessWrapper', () => { describe('ProcessWrapper', () => {
let processLauncher; let processLauncher;
@ -11,7 +12,7 @@ describe('ProcessWrapper', () => {
sinon.stub(ProcessLauncher.prototype, '_subscribeToMessages'); sinon.stub(ProcessLauncher.prototype, '_subscribeToMessages');
processLauncher = new ProcessLauncher({ processLauncher = new ProcessLauncher({
logger: new TestLogger({}), logger: new TestLogger({}),
modulePath: 'test.js' modulePath: path.join(__dirname, 'test.js')
}); });
}); });

1
test/test.js Normal file
View File

@ -0,0 +1 @@
// empty -- loaded by ./processLauncher.js