fix(test): resolve outbound envelope case typing

This commit is contained in:
Peter Steinberger
2026-02-22 00:10:07 +01:00
parent 8752203f59
commit 8394f0e30e
+1 -8
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);
}
});
});