Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
olivermrbl committed Nov 29, 2023
1 parent 0898834 commit a2d4b2a
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions integration-tests/api/__tests__/store/orders.js
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@ describe("/store/carts", () => {
await db.teardown()
})

it("should return order on cart already completed", async () => {
it("should return an order on cart already completed", async () => {
const api = useApi()
const manager = dbConnection.manager

Expand Down Expand Up @@ -501,11 +501,7 @@ describe("/store/carts", () => {
})
)

const successRes = await api
.post(`/store/carts/${cartId}/complete`)
.catch((err) => {
return err.response
})
const successRes = await api.post(`/store/carts/${cartId}/complete`)

expect(successRes.status).toEqual(200)
expect(successRes.data.data).toEqual(
Expand Down

0 comments on commit a2d4b2a

Please sign in to comment.