mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-19 02:04:45 +00:00
test: tighten core test mock fixtures
This commit is contained in:
@@ -467,6 +467,7 @@ describe("appendExactAssistantMessageToSessionTranscript - redaction", () => {
|
||||
cost: { input: 0, output: 0, cacheRead: 0, cacheWrite: 0, total: 0 },
|
||||
},
|
||||
stopReason: "stop",
|
||||
timestamp: Date.now(),
|
||||
},
|
||||
});
|
||||
const deduped = await appendAssistantMessageToSessionTranscript({
|
||||
|
||||
@@ -49,7 +49,7 @@ let resolveProviderSetupFlowContributions: ResolveProviderSetupFlowContributions
|
||||
let resolveProviderModelPickerFlowContributions: ResolveProviderModelPickerFlowContributions;
|
||||
|
||||
function requireFirstMockCall(mock: { mock: { calls: unknown[][] } }, label: string): unknown[] {
|
||||
const call = mock.mock.calls.at(0);
|
||||
const call = mock.mock.calls[0];
|
||||
if (!call) {
|
||||
throw new Error(`expected ${label} call`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user