Skip to content

Commit

Permalink
Resolved issue
Browse files Browse the repository at this point in the history
  • Loading branch information
glo82145 committed Apr 1, 2024
1 parent b3c4d91 commit ab4558b
Showing 1 changed file with 0 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -226,28 +226,6 @@ test('it renders open order row', () => {
expect(tree.toJSON()).toMatchSnapshot();
});

test('it renders processing status', () => {
useOrderRow.mockReturnValue({
loading: false,
imagesData,
isOpen: false,
handleContentToggle: jest.fn()
});

const closedOrder = {
...mockOrder,
status: 'Pending',
shipments: [],
invoices: []
};
const tree = createTestInstance(<OrderRow order={closedOrder} />);
const { root } = tree;
const orderProgressProps = root.findByProps({
componentName: 'OrderProgressBar'
}).props;
expect(orderProgressProps.status).toBe('Step1');
});

test('it renders with missing order information', () => {
useOrderRow.mockReturnValue({
loading: false,
Expand Down

0 comments on commit ab4558b

Please sign in to comment.