chore(inventory): convert to dml (#10569)

Fixes: FRMW-2848

Co-authored-by: Harminder Virk <1706381+thetutlage@users.noreply.github.com>
This commit is contained in:
Carlos R. L. Rodrigues
2024-12-13 12:51:26 +00:00
committed by GitHub
co-authored by Harminder Virk
parent ae1d875fcf
commit 729eb5da7b
33 changed files with 662 additions and 593 deletions
@@ -229,6 +229,29 @@ moduleIntegrationTestRunner<IInventoryService>({
expect(inventoryLevel).toEqual(
expect.objectContaining({ id: expect.any(String), ...data })
)
const getItems = await service.listInventoryItems(
{},
{
select: [
"id",
"sku",
"origin_country",
"reserved_quantity",
"stocked_quantity",
],
}
)
expect(getItems).toEqual([
{
id: inventoryItem.id,
sku: "test-sku",
origin_country: "test-country",
reserved_quantity: 0,
stocked_quantity: 2,
},
])
})
it("should create inventoryLevels from array", async () => {