clean up; fix gas requirements

This commit is contained in:
Iuri Matias 2018-01-12 18:36:29 -05:00
parent 11dc74043b
commit ef0bc04f77
1 changed files with 5 additions and 18 deletions

View File

@ -1,3 +1,4 @@
var utils = require('../utils/utils.js');
module.exports = {
run: function(filepath) {
@ -40,12 +41,12 @@ module.exports = {
let Test = require('./test.js');
global.assert = require('assert');
//global.Embark = require("../index.js");
//global.EmbarkSpec = global.Embark.initTests();
let configOptions = {};
let configOptions = {
gasPrice: 1
};
global.config = function(config) {
configOptions = config;
configOptions = utils.recursiveMerge(configOptions, config);
};
// TODO: check how to pass the options
//global.EmbarkSpec = new Test(options);
@ -66,22 +67,8 @@ module.exports = {
runner.on('suite', function() {
global.assert = require('assert');
//global.Embark = require("../index.js");
//global.EmbarkSpec = global.Embark.initTests();
// TODO: check how to pass the options
//global.EmbarkSpec = new Test(options);
//global.config = function(config) {
// console.log("running config!");
// console.log(config.hello);
// configOptions = config;
//};
//console.log("---------");
//console.log(configOptions);
//console.log("---------");
global.EmbarkSpec = new Test({simulatorOptions: configOptions});
global.web3 = global.EmbarkSpec.web3;
//global.contract = Mocha.describe;
});
}