/**
* External dependencies
*/
import { screen, render } from '@testing-library/react';
/**
* Internal dependencies
*/
import ShippingPlaceholder from '../shipping-placeholder';
describe( 'ShippingPlaceholder', () => {
it( 'should show correct text if showCalculator is false', () => {
const { rerender } = render(
);
expect(
screen.getByText( 'No shipping options available' )
).toBeInTheDocument();
rerender(
);
expect(
screen.getByText( 'Calculated during checkout' )
).toBeInTheDocument();
} );
} );