fix: store cart integration test by removing custom shipping options when creating a swap

This commit is contained in:
zakariaelas
2021-10-14 16:03:59 +01:00
parent 7cdd628997
commit 29c5a1f8d2
@@ -458,7 +458,6 @@ describe("/store/carts", () => {
}) })
describe("POST /store/carts/:id/shipping-methods", () => { describe("POST /store/carts/:id/shipping-methods", () => {
let cartWithCustomSo
beforeEach(async () => { beforeEach(async () => {
try { try {
await cartSeeder(dbConnection) await cartSeeder(dbConnection)
@@ -473,18 +472,12 @@ describe("/store/carts", () => {
first_name: "lebron", first_name: "lebron",
country_code: "us", country_code: "us",
}, },
custom_shipping_options: [
{
shipping_option_id: "test-option",
price: 5,
},
],
region_id: "test-region", region_id: "test-region",
currency_code: "usd", currency_code: "usd",
type: "swap", type: "swap",
}) })
cartWithCustomSo = await manager.save(_cart) let cartWithCustomSo = await manager.save(_cart)
await manager.insert(CustomShippingOption, { await manager.insert(CustomShippingOption, {
id: "another-cso-test", id: "another-cso-test",