fix(test): resolve outbound envelope case typing

This commit is contained in:
Peter Steinberger
2026-02-22 00:07:18 +01:00
parent 8752203f59
commit 8394f0e30e

View File

@@ -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);
}
});
});