test: dedupe mantle anthropic mock read

This commit is contained in:
Peter Steinberger
2026-05-13 06:27:58 +01:00
parent 87109e5fb5
commit df9c9adeff

View File

@@ -38,7 +38,7 @@ function requireRecord(value: unknown, label: string): Record<string, unknown> {
}
function mockCallArg(mock: { mock: { calls: unknown[][] } }, index = 0, argIndex = 0): unknown {
const call = mock.mock.calls.at(index);
const call = mock.mock.calls[index];
if (!call) {
throw new Error(`expected mock call ${index}`);
}