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

Commit

Permalink
fix unit tests because of new default
Browse files Browse the repository at this point in the history
  • Loading branch information
nerrad committed Dec 4, 2023
1 parent 2170971 commit 7f64bae
Showing 1 changed file with 2 additions and 4 deletions.
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

0 comments on commit 7f64bae

Please sign in to comment.