Merge pull request #490 from embark-framework/fix_assert

make assert global like before
This commit is contained in:
Iuri Matias 2018-06-06 11:24:27 -04:00 committed by GitHub
commit 1e4838d25a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

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

View File

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