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

39 lines
844 B
JavaScript
Raw Normal View History

2017-02-10 00:38:02 +00:00
var assert = require('assert');
2017-06-26 13:01:54 +00:00
var Embark = require('embark');
var EmbarkSpec = Embark.initTests();
var web3 = EmbarkSpec.web3;
2017-02-10 00:38:02 +00:00
describe("AnotherStorage", function() {
before(function(done) {
this.timeout(0);
2017-02-10 00:38:02 +00:00
var contractsConfig = {
"SimpleStorage": {
args: [100]
},
"AnotherStorage": {
args: ["$SimpleStorage"]
2017-02-10 02:05:45 +00:00
},
"Token": {
deploy: false,
args: [1000]
},
"MyToken": {
instanceOf: "Token"
},
"MyToken2": {
instanceOf: "Token",
args: [2000]
2017-02-10 00:38:02 +00:00
}
};
EmbarkSpec.deployAll(contractsConfig, done);
});
2017-02-10 02:05:45 +00:00
it("set SimpleStorage address", function(done) {
2017-02-10 00:38:02 +00:00
AnotherStorage.simpleStorageAddress(function(err, result) {
assert.equal(result.toString(), SimpleStorage.address);
done();
});
});
});