2018-01-05 20:10:47 +00:00
|
|
|
contract("Test", function() {
|
2017-12-27 13:37:39 +00:00
|
|
|
before(function(done) {
|
|
|
|
this.timeout(0);
|
|
|
|
var contractsConfig = {
|
2018-03-11 12:28:03 +00:00
|
|
|
"Test2": {
|
|
|
|
},
|
|
|
|
"ZAMyLib": {
|
|
|
|
},
|
2017-12-27 13:37:39 +00:00
|
|
|
"ZAMyLib2": {
|
|
|
|
"deploy": true
|
|
|
|
}
|
|
|
|
};
|
2018-01-05 20:10:47 +00:00
|
|
|
|
2017-12-27 13:37:39 +00:00
|
|
|
EmbarkSpec.deployAll(contractsConfig, () => { done() });
|
|
|
|
});
|
|
|
|
|
|
|
|
it("should call library correctly", function(done) {
|
2018-01-05 20:10:47 +00:00
|
|
|
Test2.methods.testAdd().call().then(function(result) {
|
|
|
|
assert.equal(result, 3);
|
2017-12-27 13:37:39 +00:00
|
|
|
done();
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
});
|