From 21c045559dd16887061f00950628bf0c5fe081f6 Mon Sep 17 00:00:00 2001 From: Jason Woltje Date: Sun, 22 Mar 2026 20:08:22 -0500 Subject: [PATCH] fix(gateway): remove duplicate mockBrain declaration and fix prettier formatting after rebase Rebase conflict resolution introduced a duplicate `mockBrain` variable in commands.integration.spec.ts. Also fixes prettier formatting on command-executor-p8012.spec.ts that was introduced during conflict resolution. Co-Authored-By: Claude Sonnet 4.6 --- apps/gateway/src/commands/command-executor-p8012.spec.ts | 1 - apps/gateway/src/commands/commands.integration.spec.ts | 8 -------- 2 files changed, 9 deletions(-) diff --git a/apps/gateway/src/commands/command-executor-p8012.spec.ts b/apps/gateway/src/commands/command-executor-p8012.spec.ts index e862277..7ff5c41 100644 --- a/apps/gateway/src/commands/command-executor-p8012.spec.ts +++ b/apps/gateway/src/commands/command-executor-p8012.spec.ts @@ -72,7 +72,6 @@ const mockChatGateway = { broadcastSessionInfo: vi.fn(), }; - function buildService(): CommandExecutorService { return new CommandExecutorService( mockRegistry as never, diff --git a/apps/gateway/src/commands/commands.integration.spec.ts b/apps/gateway/src/commands/commands.integration.spec.ts index e5c0861..949e203 100644 --- a/apps/gateway/src/commands/commands.integration.spec.ts +++ b/apps/gateway/src/commands/commands.integration.spec.ts @@ -55,14 +55,6 @@ function buildRegistry(): CommandRegistryService { return svc; } -const mockBrain = { - agents: { - findByName: vi.fn().mockResolvedValue(undefined), - findById: vi.fn().mockResolvedValue(undefined), - create: vi.fn(), - }, -}; - function buildExecutor(registry: CommandRegistryService): CommandExecutorService { return new CommandExecutorService( registry as never,