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

Commit

Permalink
Try preventing navigation in unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
opr committed May 31, 2023
1 parent 52b5c78 commit ab0c824
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import Block from '../../../../../../blocks/cart/inner-blocks/proceed-to-checkou

describe( 'CartEventsProvider', () => {
it( 'allows observers to unsubscribe', async () => {
const mockObserver = jest.fn();
const mockObserver = jest.fn().mockReturnValue( { type: 'error' } );
const MockObserverComponent = () => {
const { onProceedToCheckout } = useCartEventsContext();
useEffect( () => {
Expand Down

0 comments on commit ab0c824

Please sign in to comment.