support contract as an alias

This commit is contained in:
Iuri Matias 2017-07-03 18:15:43 -04:00
parent 8e349cc6ed
commit 0e904bba33
2 changed files with 6 additions and 1 deletions

View File

@ -48,6 +48,10 @@ module.exports = {
global.EmbarkSpec = new Test({}); global.EmbarkSpec = new Test({});
global.web3 = global.EmbarkSpec.web3; global.web3 = global.EmbarkSpec.web3;
global.contract = function(describeName, callback) {
return Mocha.describe(describeName, callback);
};
// Run the tests. // Run the tests.
let runner = mocha.run(function(failures){ let runner = mocha.run(function(failures){
process.on('exit', function () { process.on('exit', function () {
@ -64,6 +68,7 @@ module.exports = {
//global.EmbarkSpec = new Test(options); //global.EmbarkSpec = new Test(options);
global.EmbarkSpec = new Test({}); global.EmbarkSpec = new Test({});
global.web3 = global.EmbarkSpec.web3; global.web3 = global.EmbarkSpec.web3;
//global.contract = Mocha.describe;
}); });
} }

View File

@ -1,4 +1,4 @@
describe("AnotherStorage", function() { contract("AnotherStorage", function() {
before(function(done) { before(function(done) {
this.timeout(0); this.timeout(0);
var contractsConfig = { var contractsConfig = {