From 5689a6a981c75000906878282788c16ee68d8c97 Mon Sep 17 00:00:00 2001 From: Todd Baur Date: Mon, 13 Mar 2017 11:02:03 +0900 Subject: [PATCH 1/2] update boilerplate test after PR#246 --- boilerplate/test/contract_spec.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/boilerplate/test/contract_spec.js b/boilerplate/test/contract_spec.js index e732155d..e0a6a9dc 100644 --- a/boilerplate/test/contract_spec.js +++ b/boilerplate/test/contract_spec.js @@ -1,9 +1,8 @@ var assert = require('assert'); -var Embark = require('embark'); -var EmbarkSpec = Embark.initTests(); -var web3 = EmbarkSpec.web3; +var EmbarkSpec = require('embark/lib/core/test.js'); -//describe("SimpleStorage", function() { + +// describe("SimpleStorage", function() { // before(function(done) { // this.timeout(0); // var contractsConfig = { @@ -30,4 +29,4 @@ var web3 = EmbarkSpec.web3; // }); // }); // -//}); +// }); \ No newline at end of file From e39853daa0486c862d91c1ff7c5b2019e64ab706 Mon Sep 17 00:00:00 2001 From: Todd Baur Date: Fri, 17 Mar 2017 12:01:40 +0900 Subject: [PATCH 2/2] update test in readme --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 39e95e8a..361aa454 100644 --- a/README.md +++ b/README.md @@ -438,12 +438,11 @@ Embark includes a testing lib to fastly run & test your contracts in a EVM. # test/simple_storage_spec.js var assert = require('assert'); -var Embark = require('embark'); -var EmbarkSpec = Embark.initTests(); -var web3 = EmbarkSpec.web3; +var EmbarkSpec = require('embark/lib/core/test.js'); describe("SimpleStorage", function() { before(function(done) { + this.timeout(0); var contractsConfig = { "SimpleStorage": { args: [100] @@ -469,6 +468,7 @@ describe("SimpleStorage", function() { }); }); + ``` Embark uses [Mocha](http://mochajs.org/) by default, but you can use any testing framework you want.