Advertisement
hjerting

Shopping lab errors

Sep 21st, 2016
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.21 KB | None | 0 0
  1. 1) #viewCart should print each item in the cart and their cost:
  2. Error: spy was never called with [ 'In your cart, you have socks at $undefined, puppy at $undefined, iPhone at $undefined.' ]
  3. at assert (node_modules/expect/lib/assert.js:29:9)
  4. at Expectation.toHaveBeenCalledWith (node_modules/expect/lib/Expectation.js:333:28)
  5. at Context.<anonymous> (test/index-test.js:44:25)
  6.  
  7. 2) #total adds up the prices of the items in the cart:
  8.  
  9. Error: Expected 100 to equal NaN
  10. + expected - actual
  11.  
  12. -100
  13. +NaN
  14.  
  15. at assert (node_modules/expect/lib/assert.js:29:9)
  16. at Expectation.toEqual (node_modules/expect/lib/Expectation.js:81:30)
  17. at Context.<anonymous> (test/index-test.js:68:21)
  18.  
  19. 3) #removeFromCart removes the item from the cart:
  20. Error: Expected false to be true
  21. at assert (node_modules/expect/lib/assert.js:29:9)
  22. at Expectation.toBe (node_modules/expect/lib/Expectation.js:66:28)
  23. at Context.<anonymous> (test/index-test.js:76:41)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement