mirror of
https://github.com/embarklabs/embark.git
synced 2025-01-12 23:05:07 +00:00
27 lines
621 B
JavaScript
27 lines
621 B
JavaScript
var assert = require('assert');
|
|
var Embark = require('embark');
|
|
var EmbarkSpec = Embark.initTests();
|
|
var web3 = EmbarkSpec.web3;
|
|
|
|
describe("AnotherStorage", function() {
|
|
before(function(done) {
|
|
var contractsConfig = {
|
|
"SimpleStorage": {
|
|
args: [100]
|
|
},
|
|
"AnotherStorage": {
|
|
args: ["$SimpleStorage"]
|
|
}
|
|
};
|
|
EmbarkSpec.deployAll(contractsConfig, done);
|
|
});
|
|
|
|
it("should set constructor value", function(done) {
|
|
AnotherStorage.simpleStorageAddress(function(err, result) {
|
|
assert.equal(result.toString(), SimpleStorage.address);
|
|
done();
|
|
});
|
|
});
|
|
|
|
});
|