woocommerce/plugins/woocommerce-admin/client/homescreen/activity-panel/orders/test/index.js

26 lines
486 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/**
* External dependencies
*/
import { render, screen } from '@testing-library/react';
/**
* Internal dependencies
*/
import OrdersPanel from '../';
describe( 'OrdersPanel', () => {
it( 'should render an empty order card', () => {
render(
<OrdersPanel
countUnreadOrders={ 0 }
isError={ false }
isRequesting={ false }
orderStatuses={ [] }
/>
);
expect(
screen.queryByText( 'Youve fulfilled all your orders' )
).toBeInTheDocument();
} );
} );