mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-08 20:28:29 +00:00
fix(test): resolve outbound envelope case typing
This commit is contained in:
@@ -485,14 +485,7 @@ describe("buildOutboundResultEnvelope", () => {
|
|||||||
},
|
},
|
||||||
]);
|
]);
|
||||||
for (const testCase of cases) {
|
for (const testCase of cases) {
|
||||||
const input: Parameters<typeof buildOutboundResultEnvelope>[0] =
|
expect(buildOutboundResultEnvelope(testCase.input), testCase.name).toEqual(testCase.expected);
|
||||||
"payloads" in testCase.input
|
|
||||||
? {
|
|
||||||
...testCase.input,
|
|
||||||
payloads: testCase.input.payloads?.map((payload) => ({ ...payload })),
|
|
||||||
}
|
|
||||||
: testCase.input;
|
|
||||||
expect(buildOutboundResultEnvelope(input), testCase.name).toEqual(testCase.expected);
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user