embark-area-51/test_app/test/lib_test_spec.js

23 lines
451 B
JavaScript
Raw Normal View History

2017-12-27 13:37:39 +00:00
describe("Test", function() {
before(function(done) {
this.timeout(0);
var contractsConfig = {
"Test": {
"gas": 2000000
},
"ZAMyLib2": {
"deploy": true
}
};
EmbarkSpec.deployAll(contractsConfig, () => { done() });
});
it("should call library correctly", function(done) {
Test2.testAdd(function(err, result) {
assert.equal(result.toNumber(), 3);
done();
});
});
});