/** * External dependencies */ import { render, screen } from '@testing-library/react'; import { previewCart } from '@woocommerce/resource-previews'; /** * Internal dependencies */ import OrderSummary from '../index'; jest.mock( '@woocommerce/base-context', () => ( { ...jest.requireActual( '@woocommerce/base-context' ), useContainerWidthContext: () => ( { isLarge: true, hasContainerWidth: true, } ), } ) ); describe( 'Order Summary', () => { it( 'renders correct cart line subtotal when currency has 0 decimals', async () => { render( ); expect( screen.getByText( '16€' ) ).toBeTruthy(); } ); } );