mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 10:40:43 +00:00
refactor: trim gateway test helper exports
This commit is contained in:
@@ -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> = {},
|
||||
|
||||
@@ -489,14 +489,12 @@ export function isInternalHookEvent(value: unknown): value is InternalHookEvent
|
||||
}
|
||||
|
||||
export {
|
||||
sessionCleanupMocks,
|
||||
bootstrapCacheMocks,
|
||||
sessionHookMocks,
|
||||
beforeResetHookMocks,
|
||||
sessionLifecycleHookMocks,
|
||||
subagentLifecycleHookMocks,
|
||||
beforeResetHookState,
|
||||
sessionLifecycleHookState,
|
||||
subagentLifecycleHookState,
|
||||
threadBindingMocks,
|
||||
acpRuntimeMocks,
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user