Skip to content

Commit

Permalink
Revert "test(view-orders): add test for #2"
Browse files Browse the repository at this point in the history
This reverts commit bd4acab.
  • Loading branch information
logan-hernandez committed Apr 15, 2022
1 parent bd4acab commit b65d15c
Showing 1 changed file with 0 additions and 25 deletions.
25 changes: 0 additions & 25 deletions application/src/components/view-orders/ordersList.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,29 +55,4 @@ describe('Orders List', () => {
expect(screen.getByText(/^.*888.*$/gm)).toBeInTheDocument();

});

test('formats time correctly', () => {
const orders = [
{
order_item: "Food",
quantity: "777",
_id: 1,
createdAt: "2022-04-15T04:17:00.390Z"
},
{
order_item: "Drink",
quantity: "888",
_id: 2,
createdAt: "2022-04-15T07:15:53.276Z"
}
];
render(
<OrdersList
orders={orders}
/>
)
expect(screen.getByText(/^.*21:17:00.*$/gm)).toBeInTheDocument();
expect(screen.getByText(/^.*00:15:53.*$/gm)).toBeInTheDocument();

});
})

0 comments on commit b65d15c

Please sign in to comment.