Skip to content

Commit

Permalink
Try header price test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jeyip committed Dec 2, 2024
1 parent 902a92e commit 286c4ab
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jest.mock( 'react-redux', () => ( {
} ) );
jest.mock( '../../grid-context', () => ( { usePlansGridContext: jest.fn() } ) );
jest.mock( '@automattic/data-stores', () => ( {
...jest.requireActual( '@automattic/data-stores' ),
// ...jest.requireActual( '@automattic/data-stores' ),
AddOns: {
useStorageAddOns: jest.fn(),
},
Expand Down Expand Up @@ -59,6 +59,10 @@ describe( 'HeaderPrice', () => {
jest.clearAllMocks();
} );

afterAll( () => {
jest.clearAllMocks();
} );

test( 'should render raw and discounted prices when discount exists', () => {
const pricing = {
currencyCode: 'USD',
Expand Down

0 comments on commit 286c4ab

Please sign in to comment.