mirror of https://github.com/embarklabs/embark.git
24 lines
457 B
JavaScript
24 lines
457 B
JavaScript
/*global contract, config, it, embark*/
|
|
const assert = require('assert');
|
|
const Test2 = embark.require('Embark/contracts/Test2');
|
|
|
|
config({
|
|
contracts: {
|
|
"Test2": {
|
|
},
|
|
"ZAMyLib": {
|
|
},
|
|
"ZAMyLib2": {
|
|
"deploy": true
|
|
}
|
|
}
|
|
});
|
|
|
|
contract("Test", function() {
|
|
it("should call library correctly", async function() {
|
|
let result = await Test2.methods.testAdd().call();
|
|
assert.strictEqual(parseInt(result, 10), 3);
|
|
});
|
|
|
|
});
|