fix: Accept filters in softDelete + fulfillment location clean-up (#7198)
This commit is contained in:
@@ -52,18 +52,18 @@ medusaIntegrationTestRunner({
|
||||
|
||||
await remoteLink.create([
|
||||
{
|
||||
[Modules.FULFILLMENT]: {
|
||||
fulfillment_set_id: fulfillmentSet.id,
|
||||
},
|
||||
[Modules.STOCK_LOCATION]: {
|
||||
stock_location_id: euWarehouse.id,
|
||||
},
|
||||
[Modules.FULFILLMENT]: {
|
||||
fulfillment_set_id: fulfillmentSet.id,
|
||||
},
|
||||
},
|
||||
])
|
||||
|
||||
const linkQuery = remoteQueryObjectFromString({
|
||||
entryPoint: "fulfillment_sets",
|
||||
fields: ["id", "stock_locations.id"],
|
||||
entryPoint: "stock_locations",
|
||||
fields: ["id", "fulfillment_sets.id"],
|
||||
})
|
||||
|
||||
const link = await remoteQuery(linkQuery)
|
||||
@@ -72,10 +72,10 @@ medusaIntegrationTestRunner({
|
||||
expect(link).toEqual(
|
||||
expect.arrayContaining([
|
||||
expect.objectContaining({
|
||||
id: fulfillmentSet.id,
|
||||
stock_locations: expect.arrayContaining([
|
||||
id: euWarehouse.id,
|
||||
fulfillment_sets: expect.arrayContaining([
|
||||
expect.objectContaining({
|
||||
id: euWarehouse.id,
|
||||
id: fulfillmentSet.id,
|
||||
}),
|
||||
]),
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user