refactor: trim gateway test helper exports

This commit is contained in:
Peter Steinberger
2026-05-01 12:58:50 +01:00
parent c3bac63c1b
commit 2fbe808a32
3 changed files with 4 additions and 6 deletions

View File

@@ -21,7 +21,7 @@ export function createActiveRun(
};
}
export type ChatAbortTestContext = Record<string, unknown> & {
type ChatAbortTestContext = Record<string, unknown> & {
chatAbortControllers: Map<string, ReturnType<typeof createActiveRun>>;
chatRunBuffers: Map<string, string>;
chatDeltaSentAt: Map<string, number>;
@@ -34,7 +34,7 @@ export type ChatAbortTestContext = Record<string, unknown> & {
logGateway: { warn: (...args: unknown[]) => void };
};
export type ChatAbortRespondMock = Mock<RespondFn>;
type ChatAbortRespondMock = Mock<RespondFn>;
export function createChatAbortContext(
overrides: Record<string, unknown> = {},

View File

@@ -489,14 +489,12 @@ export function isInternalHookEvent(value: unknown): value is InternalHookEvent
}
export {
sessionCleanupMocks,
bootstrapCacheMocks,
sessionHookMocks,
beforeResetHookMocks,
sessionLifecycleHookMocks,
subagentLifecycleHookMocks,
beforeResetHookState,
sessionLifecycleHookState,
subagentLifecycleHookState,
threadBindingMocks,
acpRuntimeMocks,

View File

@@ -60,7 +60,7 @@ export const runDrySend = (params: {
type ResolvedTestTarget = { to: string; kind: ChannelDirectoryEntryKind };
export function normalizeWorkspaceTarget(raw: string): string {
function normalizeWorkspaceTarget(raw: string): string {
const trimmed = raw.trim();
if (!trimmed) {
return trimmed;
@@ -81,7 +81,7 @@ export function normalizeWorkspaceTarget(raw: string): string {
return trimmed;
}
export function createConfiguredTestPlugin(params: {
function createConfiguredTestPlugin(params: {
id: string;
isConfigured: (cfg: OpenClawConfig) => boolean;
normalizeTarget: (raw: string) => string | undefined;