mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-08 08:01:23 +00:00
test: fix readonly typing regressions in check baseline
This commit is contained in:
committed by
Peter Steinberger
parent
0e1aa77928
commit
c7c047287e
@@ -847,7 +847,9 @@ describe("normalizeOutboundPayloadsForJson", () => {
|
||||
];
|
||||
|
||||
for (const testCase of cases) {
|
||||
expect(normalizeOutboundPayloadsForJson(testCase.input)).toEqual(testCase.expected);
|
||||
expect(
|
||||
normalizeOutboundPayloadsForJson(testCase.input.map((payload) => ({ ...payload }))),
|
||||
).toEqual(testCase.expected);
|
||||
}
|
||||
});
|
||||
});
|
||||
@@ -882,7 +884,13 @@ describe("formatOutboundPayloadLog", () => {
|
||||
];
|
||||
|
||||
for (const testCase of cases) {
|
||||
expect(formatOutboundPayloadLog(testCase.input), testCase.name).toBe(testCase.expected);
|
||||
expect(
|
||||
formatOutboundPayloadLog({
|
||||
...testCase.input,
|
||||
mediaUrls: [...testCase.input.mediaUrls],
|
||||
}),
|
||||
testCase.name,
|
||||
).toBe(testCase.expected);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user