mirror of https://github.com/embarklabs/embark.git
add test for balance and web3 object
This commit is contained in:
parent
7fd7c770de
commit
9f18c7ff0e
|
@ -29,6 +29,12 @@ config({
|
||||||
contract("AnotherStorage", function() {
|
contract("AnotherStorage", function() {
|
||||||
this.timeout(0);
|
this.timeout(0);
|
||||||
|
|
||||||
|
it("should have account with balance", async function() {
|
||||||
|
let balance = await web3.eth.getBalance(accounts[0]);
|
||||||
|
assert.ok(parseInt(balance, 10) > 4900000000000000000);
|
||||||
|
assert.ok(parseInt(balance, 10) <= 5000000000000000000);
|
||||||
|
});
|
||||||
|
|
||||||
it("set SimpleStorage address", async function() {
|
it("set SimpleStorage address", async function() {
|
||||||
let result = await AnotherStorage.methods.simpleStorageAddress().call();
|
let result = await AnotherStorage.methods.simpleStorageAddress().call();
|
||||||
assert.equal(result.toString(), SimpleStorage.options.address);
|
assert.equal(result.toString(), SimpleStorage.options.address);
|
||||||
|
|
Loading…
Reference in New Issue