embark-area-51/test_apps/contracts_app/test/lib_test_spec.js

23 lines
438 B
JavaScript

contract("Test", function() {
before(function(done) {
this.timeout(0);
var contractsConfig = {
"Test2": {
},
"ZAMyLib": {
},
"ZAMyLib2": {
"deploy": true
}
};
EmbarkSpec.deployAll(contractsConfig, () => { done() });
});
it("should call library correctly", async function() {
let result = await Test2.methods.testAdd().call();
assert.equal(result, 3);
});
});