diff --git a/chapter2/2_unit_tests/3_jest_multiple_tests/Cart.test.js b/chapter2/2_unit_tests/3_jest_multiple_tests/Cart.test.js index 990462f..39ff14e 100644 --- a/chapter2/2_unit_tests/3_jest_multiple_tests/Cart.test.js +++ b/chapter2/2_unit_tests/3_jest_multiple_tests/Cart.test.js @@ -8,7 +8,7 @@ test("The addToCart function can add an item to the cart", () => { assert.deepStrictEqual(cart.items, ["cheesecake"]); }); -test("The addToCart function can add an item to the cart", () => { +test("The removeFromCart function can remove an item from the cart", () => { const cart = new Cart(); cart.addToCart("cheesecake"); cart.removeFromCart("cheesecake");