feat(medusa): Add metadata to StorePostCartsCartLineItemsItemReq (#4230)
This commit is contained in:
1 parent
bfc0ea5695
commit
2f283996f8
6 files changed
+165
-3
No files matched your search
@@ -769,6 +769,9 @@ describe("/store/carts", () => {
|
||||
"/store/carts/test-cart-3/line-items/test-item3/",
|
||||
{
|
||||
quantity: 3,
|
||||
metadata: {
|
||||
another: "prop",
|
||||
},
|
||||
},
|
||||
{ withCredentials: true }
|
||||
)
|
||||
@@ -782,6 +785,10 @@ describe("/store/carts", () => {
|
||||
variant_id: "test-variant-sale-cg",
|
||||
quantity: 3,
|
||||
adjustments: [],
|
||||
metadata: {
|
||||
"some-existing": "prop",
|
||||
another: "prop",
|
||||
},
|
||||
}),
|
||||
])
|
||||
)
|
||||
|
||||
@@ -938,6 +938,7 @@ module.exports = async (dataSource, data = {}) => {
|
||||
quantity: 1,
|
||||
variant_id: "test-variant-sale-cg",
|
||||
cart_id: "test-cart-3",
|
||||
metadata: { "some-existing": "prop" },
|
||||
})
|
||||
await manager.save(li3)
|
||||
}
|
||||
Reference in new issue
Block a user