support contract as an alias
This commit is contained in:
parent
8e349cc6ed
commit
0e904bba33
|
@ -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;
|
||||
});
|
||||
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
describe("AnotherStorage", function() {
|
||||
contract("AnotherStorage", function() {
|
||||
before(function(done) {
|
||||
this.timeout(0);
|
||||
var contractsConfig = {
|
||||
|
|
Loading…
Reference in New Issue