move test files to a module folder

This commit is contained in:
Jonathan Rainville 2018-10-09 13:17:19 -04:00 committed by Pascal Precht
parent 3980f69e34
commit e6cad1675a
No known key found for this signature in database
GPG Key ID: 0EE28D8D6FD85D7D
6 changed files with 10 additions and 9 deletions

View File

@ -531,7 +531,8 @@ class EmbarkController {
runTests(options) { runTests(options) {
this.context = [constants.contexts.test]; this.context = [constants.contexts.test];
let RunTests = require('../lib/tests/run_tests.js'); // TODO Refactor to use an event
let RunTests = require('../lib/modules/tests/run_tests.js');
RunTests.run(options); RunTests.run(options);
} }
} }

View File

@ -1,8 +1,8 @@
const async = require('async'); const async = require('async');
const Mocha = require('mocha'); const Mocha = require('mocha');
const path = require('path'); const path = require('path');
const {runCmd} = require('../utils/utils'); const {runCmd} = require('../../utils/utils');
const fs = require('../core/fs'); const fs = require('../../core/fs');
const assert = require('assert'); const assert = require('assert');
const Test = require('./test'); const Test = require('./test');
const EmbarkSpec = require('./reporter'); const EmbarkSpec = require('./reporter');

View File

@ -1,7 +1,7 @@
const Test = require('./test'); const Test = require('./test');
const async = require('async'); const async = require('async');
const fs = require('fs-extra'); const fs = require('fs-extra');
const File = require('./../core/file'); const File = require('./../../core/file');
const remixTests = require('remix-tests'); const remixTests = require('remix-tests');
const Base = require('mocha/lib/reporters/base'); const Base = require('mocha/lib/reporters/base');
const color = Base.color; const color = Base.color;

View File

@ -1,12 +1,12 @@
const async = require('async'); const async = require('async');
const Engine = require('../core/engine.js'); const Engine = require('../../core/engine.js');
const TestLogger = require('./test_logger.js'); const TestLogger = require('./test_logger.js');
const Web3 = require('web3'); const Web3 = require('web3');
const Events = require('../core/events'); const Events = require('../../core/events');
const AccountParser = require('../utils/accountParser'); const AccountParser = require('../../utils/accountParser');
// TODO: breaks module isolation; tests need to be refactored to use the engine and avoid this // TODO: breaks module isolation; tests need to be refactored to use the engine and avoid this
const Provider = require('../modules/blockchain_connector/provider.js'); const Provider = require('../blockchain_connector/provider.js');
const utils = require('../utils/utils'); const utils = require('../../utils/utils');
const EmbarkJS = require('embarkjs'); const EmbarkJS = require('embarkjs');