added expect-relations helper and used it to test get-cart
This commit is contained in:
@@ -6,6 +6,7 @@ const {
|
||||
Product,
|
||||
ShippingProfile,
|
||||
ProductVariant,
|
||||
MoneyAmount,
|
||||
Image,
|
||||
} = require("@medusajs/medusa");
|
||||
|
||||
@@ -74,7 +75,14 @@ module.exports = async (connection, data = {}) => {
|
||||
inventory_quantity: 10,
|
||||
title: "Test variant",
|
||||
product_id: "test-product",
|
||||
prices: [{ id: "test-price", currency_code: "usd", amount: 100 }],
|
||||
prices: [],
|
||||
options: [{ id: "test-variant-option", value: "Default variant" }],
|
||||
});
|
||||
|
||||
await manager.insert(MoneyAmount, {
|
||||
variant_id: "test-variant",
|
||||
id: "test-price",
|
||||
currency_code: "usd",
|
||||
amount: 100,
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user