feat(core-flows): request return on order exchanges and claims (#8107)

FIXES: CC-92, CC-87
This commit is contained in:
Carlos R. L. Rodrigues
2024-07-12 15:48:24 +00:00
committed by GitHub
parent 136da3f3ce
commit 4321241553
25 changed files with 695 additions and 69 deletions
@@ -120,9 +120,17 @@ describe("Workflow composer", () => {
}
)
const { result } = await workflow.run({ input: { callSubFlow: true } })
const { result } = await workflow.run({
input: { callSubFlow: true },
})
expect(result).toEqual({ result: "hi from outside" })
const { result: res2 } = await workflow.run({
input: { callSubFlow: false },
})
expect(res2).toEqual({ result: "default response" })
})
it("should revert the workflow and sub workflow on failure", async function () {