From a16f7fb6cd72804d2defcd7532a4aa84ff8a9a95 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Wed, 29 Apr 2026 17:59:00 +0100 Subject: [PATCH] test(models): update auth profile mock --- src/auto-reply/reply/directive-handling.model.test.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/auto-reply/reply/directive-handling.model.test.ts b/src/auto-reply/reply/directive-handling.model.test.ts index a67073ae8e9..d663b398b87 100644 --- a/src/auto-reply/reply/directive-handling.model.test.ts +++ b/src/auto-reply/reply/directive-handling.model.test.ts @@ -12,6 +12,10 @@ vi.mock("../../agents/auth-profiles.js", () => ({ profiles: authProfilesStoreMock.profiles, }), isProfileInCooldown: () => false, + listProfilesForProvider: (_store: unknown, provider: string) => + Object.entries(authProfilesStoreMock.profiles) + .filter(([, profile]) => profile.provider === provider) + .map(([profileId, profile]) => ({ profileId, profile })), replaceRuntimeAuthProfileStoreSnapshots: ( snapshots: Array<{ store?: { profiles?: Record };