embark/test_apps/test_app/test/another_storage_spec.js

22 lines
539 B
JavaScript
Raw Normal View History

2017-07-03 22:15:43 +00:00
contract("AnotherStorage", function() {
2018-01-05 20:10:47 +00:00
this.timeout(0);
2017-02-10 00:38:02 +00:00
before(function(done) {
this.timeout(0);
2017-02-10 00:38:02 +00:00
var contractsConfig = {
"SimpleStorage": {
args: [100]
},
"AnotherStorage": {
args: ["$SimpleStorage"]
}
};
2017-12-22 18:07:43 +00:00
EmbarkSpec.deployAll(contractsConfig, () => { done() });
2017-02-10 00:38:02 +00:00
});
2018-04-17 18:48:31 +00:00
it("set SimpleStorage address", async function() {
let result = await AnotherStorage.methods.simpleStorageAddress().call();
assert.equal(result.toString(), SimpleStorage.options.address);
2017-02-10 00:38:02 +00:00
});
});