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

Commit

Permalink
Fix tests in PR 9878 (#9880)
Browse files Browse the repository at this point in the history
  • Loading branch information
kmanijak authored Jun 19, 2023
1 parent a79a8c7 commit d65339d
Showing 1 changed file with 4 additions and 2 deletions.
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

0 comments on commit d65339d

Please sign in to comment.