From da6572bb119ad2680d483e0c7b51175c93c80e71 Mon Sep 17 00:00:00 2001 From: Iuri Matias Date: Wed, 6 Jun 2018 11:00:30 -0400 Subject: [PATCH] make assert global like before --- lib/tests/run_tests.js | 2 ++ test_apps/test_app/test/simple_storage_spec.js | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/tests/run_tests.js b/lib/tests/run_tests.js index 45f795c9..17872ff8 100644 --- a/lib/tests/run_tests.js +++ b/lib/tests/run_tests.js @@ -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 diff --git a/test_apps/test_app/test/simple_storage_spec.js b/test_apps/test_app/test/simple_storage_spec.js index 0eba871a..8e911e55 100644 --- a/test_apps/test_app/test/simple_storage_spec.js +++ b/test_apps/test_app/test/simple_storage_spec.js @@ -1,5 +1,4 @@ /*global contract, config, it, embark*/ -const assert = require('assert'); const SimpleStorage = embark.require('Embark/contracts/SimpleStorage'); config({