chore(order): link order and payment collection (#7334)
This commit is contained in:
committed by
GitHub
parent
7a8937fcba
commit
70fd355e46
@@ -1897,6 +1897,23 @@ medusaIntegrationTestRunner({
|
||||
line_item_id: cart.items[0].id,
|
||||
})
|
||||
)
|
||||
|
||||
const fullOrder = await api.get(
|
||||
`/admin/orders/${response.data.order.id}`,
|
||||
adminHeaders
|
||||
)
|
||||
const fullOrderDetail = fullOrder.data.order
|
||||
|
||||
expect(fullOrderDetail).toEqual(
|
||||
expect.objectContaining({
|
||||
payment_collections: [
|
||||
expect.objectContaining({
|
||||
currency_code: "usd",
|
||||
amount: 106,
|
||||
}),
|
||||
],
|
||||
})
|
||||
)
|
||||
})
|
||||
|
||||
it("should throw an error when payment collection isn't created", async () => {
|
||||
|
||||
@@ -154,6 +154,7 @@ medusaIntegrationTestRunner({
|
||||
status: "pending",
|
||||
version: 1,
|
||||
display_id: 1,
|
||||
payment_collections: [],
|
||||
summary: expect.objectContaining({
|
||||
// TODO: add all summary fields
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user