test: dedupe cron fast mode mock read

This commit is contained in:
Peter Steinberger
2026-05-13 06:38:15 +01:00
parent 210f606be8
commit cd993f4584

View File

@@ -35,7 +35,7 @@ function mockSuccessfulModelFallback() {
}
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`);
}