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:
co-authored by
Harminder Virk
parent
ae1d875fcf
commit
729eb5da7b
+23
@@ -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 () => {
|
||||
|
||||
Reference in New Issue
Block a user