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

24 lines
565 B
JavaScript

contract("AnotherStorage", function() {
this.timeout(0);
before(function(done) {
this.timeout(0);
var contractsConfig = {
"SimpleStorage": {
args: [100]
},
"AnotherStorage": {
args: ["$SimpleStorage"]
}
};
EmbarkSpec.deployAll(contractsConfig, () => { done() });
});
it("set SimpleStorage address", function(done) {
AnotherStorage.methods.simpleStorageAddress().call().then(function(result) {
assert.equal(result.toString(), SimpleStorage.options.address);
done();
});
});
});