feat: update return request (#8302)

This commit is contained in:
Oli Juhl
2024-07-26 19:41:21 +02:00
committed by GitHub
parent a4eab3f37a
commit feabe0e6c0
13 changed files with 216 additions and 3 deletions

View File

@@ -420,6 +420,25 @@ medusaIntegrationTestRunner({
})
)
result = await api.post(
`/admin/returns/${returnId}`,
{
location_id: location.id,
metadata: { hello: "world" },
no_notification: true,
},
adminHeaders
)
expect(result.data.return).toEqual(
expect.objectContaining({
id: returnId,
location_id: location.id,
metadata: { hello: "world" },
no_notification: true,
})
)
const item = order.items[0]
result = await api.post(