Merge pull request #490 from embark-framework/fix_assert
make assert global like before
This commit is contained in:
commit
1e4838d25a
|
@ -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
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
/*global contract, config, it, embark*/
|
||||
const assert = require('assert');
|
||||
/*global contract, config, it, embark, assert*/
|
||||
const SimpleStorage = embark.require('Embark/contracts/SimpleStorage');
|
||||
|
||||
config({
|
||||
|
|
Loading…
Reference in New Issue