Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Fix tests in PR 9878 #9880

Merged
merged 1 commit into from
Jun 19, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions assets/js/blocks/mini-cart/utils/test/data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ const responseMock = {
json: async () => ( {
totals: {
total_price: '1600',
total_items: '1400',
currency_code: 'USD',
currency_symbol: '$',
currency_minor_unit: 2,
Expand All @@ -33,6 +34,7 @@ const responseMock = {
const localStorageMock = {
totals: {
total_price: '1600',
total_items: '1400',
currency_code: 'USD',
currency_symbol: '$',
currency_minor_unit: 2,
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down