From c58943fc266b9739a66a62c63991ab8928aae3b2 Mon Sep 17 00:00:00 2001 From: Karol Manijak Date: Mon, 19 Jun 2023 13:04:36 +0200 Subject: [PATCH] Fix tests in PR 9878 --- assets/js/blocks/mini-cart/utils/test/data.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/assets/js/blocks/mini-cart/utils/test/data.ts b/assets/js/blocks/mini-cart/utils/test/data.ts index 73e72b73f8e..6142f42a3c6 100644 --- a/assets/js/blocks/mini-cart/utils/test/data.ts +++ b/assets/js/blocks/mini-cart/utils/test/data.ts @@ -19,6 +19,7 @@ const responseMock = { json: async () => ( { totals: { total_price: '1600', + total_items: '1400', currency_code: 'USD', currency_symbol: '$', currency_minor_unit: 2, @@ -33,6 +34,7 @@ const responseMock = { const localStorageMock = { totals: { total_price: '1600', + total_items: '1400', currency_code: 'USD', currency_symbol: '$', currency_minor_unit: 2, @@ -78,7 +80,7 @@ describe( 'Mini-Cart frontend script', () => { // Assert that we are rendering the amount. await waitFor( () => expect( getByTestId( container, 'amount' ).textContent ).toBe( - '$16.00' + '$14.00' ) ); // Assert that we are rendering the quantity. @@ -113,7 +115,7 @@ describe( 'Mini-Cart frontend script', () => { // Assert that we are rendering the amount. await waitFor( () => expect( getByTestId( container, 'amount' ).textContent ).toBe( - '$16.00' + '$14.00' ) ); // Assert that we are rendering the quantity.