Skip to content

Commit

Permalink
Fix: toBe -> toStrictEqual
Browse files Browse the repository at this point in the history
  • Loading branch information
helloscoopa committed Oct 14, 2022
1 parent 67257d6 commit a38a8df
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ describe('clear mempool', () => {
const createdTxId = await testing.rpc.wallet.sendToAddress('mwsZw8nF7pKxWH8eoKL9tPxTpaFkz7QeLU', 0.003)

const txIdsInMempoolBefore = await testing.rpc.blockchain.getRawMempool(false)
expect(txIdsInMempoolBefore.length).toBe(1)
expect(txIdsInMempoolBefore.length).toStrictEqual(1)

const removedTxIds = await testing.rpc.masternode.clearMempool()

expect(removedTxIds).toContain(createdTxId)

const txIdsInMempoolAfter = await testing.rpc.blockchain.getRawMempool(false)
expect(txIdsInMempoolAfter.length).toBe(0)
expect(txIdsInMempoolAfter.length).toStrictEqual(0)
})
})

0 comments on commit a38a8df

Please sign in to comment.