chore: complete cart part 2 (#7227)
This commit is contained in:
committed by
GitHub
parent
c32a31e139
commit
aba194de9a
@@ -415,10 +415,12 @@ medusaIntegrationTestRunner({
|
||||
|
||||
expect(errors).toEqual([
|
||||
{
|
||||
action: "confirm-inventory-step",
|
||||
action: "confirm-item-inventory-as-step",
|
||||
handlerType: "invoke",
|
||||
error: expect.objectContaining({
|
||||
message: "Some variant does not have the required inventory",
|
||||
message: expect.stringContaining(
|
||||
"Some variant does not have the required inventory"
|
||||
),
|
||||
}),
|
||||
},
|
||||
])
|
||||
@@ -707,10 +709,13 @@ medusaIntegrationTestRunner({
|
||||
|
||||
expect(errors).toEqual([
|
||||
{
|
||||
action: "confirm-inventory-step",
|
||||
action: "confirm-item-inventory-as-step",
|
||||
handlerType: "invoke",
|
||||
error: expect.objectContaining({
|
||||
message: `Variants with IDs ${product.variants[0].id} do not have a price`,
|
||||
// TODO: FIX runAsStep nested errors
|
||||
message: expect.stringContaining(
|
||||
`Variants with IDs ${product.variants[0].id} do not have a price`
|
||||
),
|
||||
}),
|
||||
},
|
||||
])
|
||||
|
||||
@@ -83,7 +83,7 @@ medusaIntegrationTestRunner({
|
||||
})
|
||||
|
||||
describe("POST /store/carts", () => {
|
||||
it.skip("should create a cart", async () => {
|
||||
it("should create a cart", async () => {
|
||||
const region = await regionModule.create({
|
||||
name: "US",
|
||||
currency_code: "usd",
|
||||
|
||||
Reference in New Issue
Block a user