SuperSimpleDev / javascript-course

682 stars 552 forks source link

16a Solution #65

Open SuperSimpleDev opened 8 months ago

MicoolJJ commented 1 month ago

why my code got error in (Jasmine) Test : test suite: addToCart > adds a new product to the cart TypeError: Cannot read properties of null (reading 'value') at addToCart (http://192.168.43.149:56460/data/cart.js:41:50) at UserContext. (http://192.168.43.149:56460/tests/data/cartTest.js:31:5) at

test suite: addToCart > [adds an existing product to the cart] (http://192.168.43.149:56460/tests/tests.html? spec=test%20suite%3A%20addToCart%20adds%20an%20existing%20product%20to%20the%20cart) TypeError: Cannot read properties of null (reading 'value') at addToCart (http://192.168.43.149:56460/data/cart.js:41:50) at UserContext. (http://192.168.43.149:56460/tests/data/cartTest.js:16:5) at

How to solve it?