test: dedupe crestodian mock read

This commit is contained in:
Peter Steinberger
2026-05-13 04:47:44 +01:00
parent 23edebbaed
commit 06045b578a

View File

@@ -128,7 +128,7 @@ function commandContext(overrides: Partial<CommandContext> = {}): CommandContext
}
function requireFirstMockCall<T>(mock: { mock: { calls: T[][] } }, label: string): T[] {
const call = mock.mock.calls.at(0);
const call = mock.mock.calls[0];
if (!call) {
throw new Error(`expected ${label} call`);
}