fix(core-flow): request item return reason (#8152)

This commit is contained in:
Carlos R. L. Rodrigues
2024-07-17 05:35:33 -03:00
committed by GitHub
parent 1d40b3cc98
commit d4fe2daa57
15 changed files with 189 additions and 255 deletions

View File

@@ -1,6 +1,6 @@
import { IOrderModuleService } from "@medusajs/types"
import { moduleIntegrationTestRunner } from "medusa-test-utils"
import { Modules } from "@medusajs/utils"
import { moduleIntegrationTestRunner } from "medusa-test-utils"
jest.setTimeout(100000)
@@ -15,15 +15,17 @@ moduleIntegrationTestRunner<IOrderModuleService>({
description: "description test",
})
expect(reason).toEqual({
id: expect.any(String),
value: "test",
label: "label test",
description: "description test",
return_reason_children: [],
metadata: null,
deleted_at: null,
})
expect(reason).toEqual(
expect.objectContaining({
id: expect.any(String),
value: "test",
label: "label test",
description: "description test",
return_reason_children: [],
metadata: null,
deleted_at: null,
})
)
})
it("should create return reasons with parent", async function () {