Skip to content

Commit 3a81ebd

Browse files
committed
mend
1 parent b3fe0aa commit 3a81ebd

1 file changed

Lines changed: 10 additions & 39 deletions

File tree

integration-tests/http/__tests__/order-edits/order-edits.spec.ts

Lines changed: 10 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -213,16 +213,6 @@ medusaIntegrationTestRunner({
213213
)
214214
).data.stock_location
215215

216-
locationTwo = (
217-
await api.post(
218-
`/admin/stock-locations`,
219-
{
220-
name: "Test location two",
221-
},
222-
adminHeaders
223-
)
224-
).data.stock_location
225-
226216
fulfillmentSet = (
227217
await api.post(
228218
`/admin/fulfillment-sets/${location.fulfillment_sets[0].id}/service-zones`,
@@ -251,15 +241,6 @@ medusaIntegrationTestRunner({
251241
adminHeaders
252242
)
253243

254-
// await api.post(
255-
// `/admin/inventory-items/${inventoryItem.id}/location-levels`,
256-
// {
257-
// location_id: locationTwo.id,
258-
// stocked_quantity: 0,
259-
// },
260-
// adminHeaders
261-
// )
262-
263244
inventoryItemExtra = (
264245
await api.get(`/admin/inventory-items?sku=variant-sku`, adminHeaders)
265246
).data.inventory_items[0]
@@ -286,14 +267,6 @@ medusaIntegrationTestRunner({
286267
fulfillment_provider_id: shippingProviderId,
287268
},
288269
},
289-
// {
290-
// [Modules.STOCK_LOCATION]: {
291-
// stock_location_id: locationTwo.id,
292-
// },
293-
// [Modules.FULFILLMENT]: {
294-
// fulfillment_provider_id: shippingProviderId,
295-
// },
296-
// },
297270
{
298271
[Modules.STOCK_LOCATION]: {
299272
stock_location_id: location.id,
@@ -310,14 +283,6 @@ medusaIntegrationTestRunner({
310283
stock_location_id: location.id,
311284
},
312285
},
313-
{
314-
[Modules.SALES_CHANNEL]: {
315-
sales_channel_id: salesChannel.id,
316-
},
317-
[Modules.STOCK_LOCATION]: {
318-
stock_location_id: locationTwo.id,
319-
},
320-
},
321286
{
322287
[Modules.PRODUCT]: {
323288
variant_id: product.variants[0].id,
@@ -821,6 +786,14 @@ medusaIntegrationTestRunner({
821786
stock_location_id: location.id,
822787
},
823788
},
789+
{
790+
[Modules.SALES_CHANNEL]: {
791+
sales_channel_id: salesChannel.id,
792+
},
793+
[Modules.STOCK_LOCATION]: {
794+
stock_location_id: locationTwo.id,
795+
},
796+
},
824797
])
825798
})
826799

@@ -916,7 +889,7 @@ medusaIntegrationTestRunner({
916889
)
917890
})
918891

919-
it.only("should manage inventory across locations in order edit", async () => {
892+
it("should manage inventory across locations in order edit", async () => {
920893
let edit = (
921894
await api.post(
922895
`/admin/order-edits`,
@@ -959,9 +932,7 @@ medusaIntegrationTestRunner({
959932
order = (await api.get(`/admin/orders/${order.id}`, adminHeaders)).data
960933
.order
961934

962-
console.log(JSON.stringify(order.items, null, 2))
963-
964-
expect(order.items.length).toBe(2)
935+
expect(order.items.length).toBe(3)
965936
expect(order.items).toEqual(
966937
expect.arrayContaining([
967938
expect.objectContaining({

0 commit comments

Comments
 (0)