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

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