Advertisement
Guest User

Untitled

a guest
Jan 23rd, 2019
254
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.06 KB | None | 0 0
  1. PASS blockchain/block.test.js
  2. PASS blockchain/index.test.js
  3. ● Console
  4.  
  5. console.log blockchain/index.js:40
  6. Replacing current blockchain with the new chain.
  7. console.log blockchain/index.js:33
  8. Recieved chain is not longer than the current chain.
  9.  
  10. FAIL wallet/transactions.test.js
  11. ● Console
  12.  
  13. console.log wallet/transaction.js:14
  14. Amount: 50000 exceeds balance.
  15.  
  16. ● Transaction › outputs the `amount` subtracted from the wallet balance
  17.  
  18. TypeError: Cannot read property 'amount' of undefined
  19.  
  20. 13 |
  21. 14 | it('outputs the `amount` subtracted from the wallet balance', () => {
  22. > 15 | expect(transaction.outputs.find(output => output.address === wallet.publicKey).amount)
  23. | ^
  24. 16 | .toEqual(wallet.balance - amount);
  25. 17 | });
  26. 18 |
  27.  
  28. at Object.it (wallet/transactions.test.js:15:12)
  29.  
  30. Test Suites: 1 failed, 2 passed, 3 total
  31. Tests: 1 failed, 14 passed, 15 total
  32. Snapshots: 0 total
  33. Time: 2.385s, estimated 3s
  34. Ran all test suites.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement