embark/test_apps/contracts_app/test/lib_test_spec.js

23 lines
438 B
JavaScript
Raw Normal View History

2018-01-05 15:10:47 -05:00
contract("Test", function() {
2017-12-27 08:37:39 -05:00
before(function(done) {
this.timeout(0);
var contractsConfig = {
"Test2": {
},
"ZAMyLib": {
},
2017-12-27 08:37:39 -05:00
"ZAMyLib2": {
"deploy": true
}
};
2018-01-05 15:10:47 -05:00
2017-12-27 08:37:39 -05:00
EmbarkSpec.deployAll(contractsConfig, () => { done() });
});
2018-04-17 14:48:31 -04:00
it("should call library correctly", async function() {
let result = await Test2.methods.testAdd().call();
assert.equal(result, 3);
2017-12-27 08:37:39 -05:00
});
});