From da6572bb119ad2680d483e0c7b51175c93c80e71 Mon Sep 17 00:00:00 2001 From: Iuri Matias Date: Wed, 6 Jun 2018 11:00:30 -0400 Subject: [PATCH 1/2] 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 45f795c96..17872ff87 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 0eba871ab..8e911e550 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({ From fdd462af7927fcaf7d6856eaa423c8dff40989b2 Mon Sep 17 00:00:00 2001 From: Iuri Matias Date: Wed, 6 Jun 2018 11:10:31 -0400 Subject: [PATCH 2/2] make lint happy; always make it happy --- test_apps/test_app/test/simple_storage_spec.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test_apps/test_app/test/simple_storage_spec.js b/test_apps/test_app/test/simple_storage_spec.js index 8e911e550..5e9717cf7 100644 --- a/test_apps/test_app/test/simple_storage_spec.js +++ b/test_apps/test_app/test/simple_storage_spec.js @@ -1,4 +1,4 @@ -/*global contract, config, it, embark*/ +/*global contract, config, it, embark, assert*/ const SimpleStorage = embark.require('Embark/contracts/SimpleStorage'); config({