test: dedupe auth profile mock read

This commit is contained in:
Peter Steinberger
2026-05-13 00:50:55 +01:00
parent ce21937c97
commit 37237a5129

View File

@@ -29,7 +29,7 @@ let loadAuthProfileStoreForRuntime: typeof import("./auth-profiles.js").loadAuth
type MockWithCalls = { mock: { calls: unknown[][] } };
function firstMockArg(mock: MockWithCalls, label: string) {
const call = mock.mock.calls.at(0);
const call = mock.mock.calls[0];
if (!call) {
throw new Error(`expected ${label} call`);
}