mirror of https://github.com/embarklabs/embark.git
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 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
|
||||||
|
|
|
@ -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({
|
||||||
|
|
Loading…
Reference in New Issue