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

26 lines
486 B
JavaScript
Raw Normal View History

/**
* 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();
} );
} );