mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-07 02:51:37 +00:00
test: finish readonly fixture compatibility for CI check
This commit is contained in:
committed by
Peter Steinberger
parent
c7c047287e
commit
828f4e18e0
@@ -847,9 +847,13 @@ describe("normalizeOutboundPayloadsForJson", () => {
|
||||
];
|
||||
|
||||
for (const testCase of cases) {
|
||||
expect(
|
||||
normalizeOutboundPayloadsForJson(testCase.input.map((payload) => ({ ...payload }))),
|
||||
).toEqual(testCase.expected);
|
||||
const input = testCase.input.map((payload) => {
|
||||
if ("mediaUrls" in payload && payload.mediaUrls) {
|
||||
return { ...payload, mediaUrls: [...payload.mediaUrls] };
|
||||
}
|
||||
return { ...payload };
|
||||
});
|
||||
expect(normalizeOutboundPayloadsForJson(input)).toEqual(testCase.expected);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user