From ac704e3c9171d25b72fcce78b6595f1a45d6cf57 Mon Sep 17 00:00:00 2001 From: Andre Hora Date: Mon, 20 Jun 2022 16:52:11 -0300 Subject: [PATCH] Update Cart.test.js Fixing the message of the second test: from: "The addToCart function can add an item to the cart" to: "The removeFromCart function can remove an item from the cart" --- chapter2/2_unit_tests/3_jest_multiple_tests/Cart.test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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");