1
0
mirror of https://github.com/oceanprotocol-archive/squid-js.git synced 2024-02-02 15:31:51 +01:00

added error messages

This commit is contained in:
Sebastian Gerske 2018-11-23 11:39:08 +01:00
parent 375f153b93
commit dccd58802a

View File

@ -47,7 +47,8 @@ describe("Account", () => {
const balance = await account.getEtherBalance()
const web3 = Web3Provider.getWeb3()
assert(Number(web3.utils.toWei("100", "ether")) === balance)
assert(Number(web3.utils.toWei("100", "ether")) === balance,
`ether did not match ${balance}`)
})
})
@ -59,8 +60,9 @@ describe("Account", () => {
const balance = await account.getBalance()
const web3 = Web3Provider.getWeb3()
assert(Number(web3.utils.toWei("100", "ether")) === balance.eth)
assert(0 === balance.ocn)
assert(Number(web3.utils.toWei("100", "ether")) === balance.eth,
`ether did not match ${balance.eth}`)
assert(0 === balance.ocn, `tokens did not match ${balance.ocn}`)
})
})