Skip to content

Commit

Permalink
feat(Chain): add test for getBalance
Browse files Browse the repository at this point in the history
  • Loading branch information
nduchak committed Sep 9, 2019
1 parent a0dcb95 commit dc7c167
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/integration/accounts.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,14 @@ describe('Accounts', function () {
wallet.setKeypair(generateKeyPair())
})

it('determining the balance', async () => {
it('determining the balance using deprecated `balance` method', async () => {
return wallet.balance(await wallet.address()).should.be.rejectedWith(Error)
})

it('determining the balance', async () => {
return wallet.balance(await wallet.address()).should.be.equal(0)
})

it('spending tokens', async () => {
return wallet.spend(1, receiver).should.be.rejectedWith(Error)
})
Expand Down

0 comments on commit dc7c167

Please sign in to comment.