diff --git a/lib/core/run_tests.js b/lib/core/run_tests.js index f553b779..60cf5a8a 100644 --- a/lib/core/run_tests.js +++ b/lib/core/run_tests.js @@ -48,6 +48,10 @@ module.exports = { global.EmbarkSpec = new Test({}); global.web3 = global.EmbarkSpec.web3; + global.contract = function(describeName, callback) { + return Mocha.describe(describeName, callback); + }; + // Run the tests. let runner = mocha.run(function(failures){ process.on('exit', function () { @@ -64,6 +68,7 @@ module.exports = { //global.EmbarkSpec = new Test(options); global.EmbarkSpec = new Test({}); global.web3 = global.EmbarkSpec.web3; + //global.contract = Mocha.describe; }); } diff --git a/test_app/test/another_storage_spec.js b/test_app/test/another_storage_spec.js index dccdb05d..d9f43e8c 100644 --- a/test_app/test/another_storage_spec.js +++ b/test_app/test/another_storage_spec.js @@ -1,4 +1,4 @@ -describe("AnotherStorage", function() { +contract("AnotherStorage", function() { before(function(done) { this.timeout(0); var contractsConfig = {