make assert global like before

This commit is contained in:
Iuri Matias 2018-06-06 11:00:30 -04:00
parent 805091aa66
commit da6572bb11
2 changed files with 2 additions and 1 deletions

View File

@ -2,6 +2,7 @@ const async = require('async');
const fs = require('fs-extra');
const Mocha = require('mocha');
const path = require('path');
const assert = require('assert');
const Test = require('./test');
function getFilesFromDir(filePath, cb) {
@ -33,6 +34,7 @@ module.exports = {
// TODO put default config
const test = new Test();
global.embark = test;
global.assert = assert;
global.config = test.config.bind(test);
// TODO: this global here might not be necessary at all

View File

@ -1,5 +1,4 @@
/*global contract, config, it, embark*/
const assert = require('assert');
const SimpleStorage = embark.require('Embark/contracts/SimpleStorage');
config({