Skip to content
This repository was archived by the owner on Feb 23, 2024. It is now read-only.
Prev Previous commit
Next Next commit
fix unit tests because of new default
  • Loading branch information
nerrad committed Dec 4, 2023
commit 7f64bae38d666c47816321086624e37aa1c9637d
6 changes: 2 additions & 4 deletions assets/js/blocks/mini-cart/test/block.js
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ describe( 'Testing Mini-Cart', () => {

it( 'renders cart price if "Hide Cart Price" setting is not enabled', async () => {
mockEmptyCart();
render( <MiniCartBlock /> );
render( <MiniCartBlock hasHiddenPrice={ false } /> );
await waitFor( () => expect( fetchMock ).toHaveBeenCalled() );

await waitFor( () =>
Expand All @@ -212,9 +212,7 @@ describe( 'Testing Mini-Cart', () => {

it( 'does not render cart price if "Hide Cart Price" setting is enabled', async () => {
mockEmptyCart();
const { container } = render(
<MiniCartBlock hasHiddenPrice={ true } />
);
const { container } = render( <MiniCartBlock /> );
await waitFor( () => expect( fetchMock ).toHaveBeenCalled() );

await waitFor( () =>
Expand Down