mirror of
https://github.com/openclaw/openclaw.git
synced 2026-03-12 07:20:45 +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) {
|
||||
const input: Parameters<typeof buildOutboundResultEnvelope>[0] =
|
||||
"payloads" in testCase.input
|
||||
? {
|
||||
...testCase.input,
|
||||
payloads: testCase.input.payloads?.map((payload) => ({ ...payload })),
|
||||
}
|
||||
: testCase.input;
|
||||
expect(buildOutboundResultEnvelope(input), testCase.name).toEqual(testCase.expected);
|
||||
expect(buildOutboundResultEnvelope(testCase.input), testCase.name).toEqual(testCase.expected);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user