Skip to content

Commit

Permalink
committing a failing test to show immature balance changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
aikchun committed Jun 11, 2021
1 parent 270ef03 commit 5b0d10a
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,16 @@ describe('getBalances on masternode', () => {

expect(balance.mine.trusted.toNumber() - newBalance.mine.trusted.toNumber()).toBeGreaterThan(10000)
})

it('should show immature changes', async () => {
const address = 'bcrt1q2tke5fa7wx26m684d7yuyt85rvjl36u6q8l6e2'

await client.wallet.sendToAddress(address, 1)

const newBalance = await client.wallet.getBalances()

expect(newBalance.mine.immature.toNumber()).toBeGreaterThanOrEqual(10000)
})
})

describe('getBalances without masternode', () => {
Expand Down

0 comments on commit 5b0d10a

Please sign in to comment.