mirror of
https://github.com/embarklabs/embark.git
synced 2025-01-11 22:34:24 +00:00
add test for balance and web3 object
This commit is contained in:
parent
7fd7c770de
commit
9f18c7ff0e
@ -29,6 +29,12 @@ config({
|
||||
contract("AnotherStorage", function() {
|
||||
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() {
|
||||
let result = await AnotherStorage.methods.simpleStorageAddress().call();
|
||||
assert.equal(result.toString(), SimpleStorage.options.address);
|
||||
|
Loading…
x
Reference in New Issue
Block a user