Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- PASS blockchain/block.test.js
- PASS blockchain/index.test.js
- ● Console
- console.log blockchain/index.js:40
- Replacing current blockchain with the new chain.
- console.log blockchain/index.js:33
- Recieved chain is not longer than the current chain.
- FAIL wallet/transactions.test.js
- ● Console
- console.log wallet/transaction.js:14
- Amount: 50000 exceeds balance.
- ● Transaction › outputs the `amount` subtracted from the wallet balance
- TypeError: Cannot read property 'amount' of undefined
- 13 |
- 14 | it('outputs the `amount` subtracted from the wallet balance', () => {
- > 15 | expect(transaction.outputs.find(output => output.address === wallet.publicKey).amount)
- | ^
- 16 | .toEqual(wallet.balance - amount);
- 17 | });
- 18 |
- at Object.it (wallet/transactions.test.js:15:12)
- Test Suites: 1 failed, 2 passed, 3 total
- Tests: 1 failed, 14 passed, 15 total
- Snapshots: 0 total
- Time: 2.385s, estimated 3s
- Ran all test suites.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement