feat(medusa,core-flows,types,js-sdk): Draft Order workflows and API endpoints (#11805)
This commit is contained in:
1 parent
5f3a82f5c3
commit
f441362f4a
75 files changed
+4235
-21
No files matched your search
@@ -102,5 +102,18 @@ medusaIntegrationTestRunner({
|
||||
expect(response.data.draft_order.email).toBe("test_new@test.com")
|
||||
})
|
||||
})
|
||||
|
||||
describe("POST /draft-orders/:id/convert-to-order", () => {
|
||||
it("should convert a draft order to an order", async () => {
|
||||
const response = await api.post(
|
||||
`/admin/draft-orders/${testDraftOrder.id}/convert-to-order`,
|
||||
{},
|
||||
adminHeaders
|
||||
)
|
||||
|
||||
expect(response.status).toBe(200)
|
||||
expect(response.data.order.status).toBe("pending")
|
||||
})
|
||||
})
|
||||
},
|
||||
})
|
||||
Reference in new issue
Block a user