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

27 lines
513 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={ [] }
totalOrderCount={ 10 }
/>
);
expect(
screen.queryByText( 'Youve fulfilled all your orders' )
).toBeInTheDocument();
} );
} );