refactor: trim test helper exports · openclaw/openclaw@ef45efb
steipete
·
2026-05-02
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -6,8 +6,8 @@ import { makeTempWorkspace } from "../../src/test-helpers/workspace.js";
|
6 | 6 | import { captureEnv } from "../../src/test-utils/env.js"; |
7 | 7 | import type { WizardPrompter } from "../../src/wizard/prompts.js"; |
8 | 8 | |
9 | | -export const noopAsync = async () => {}; |
10 | | -export const noop = () => {}; |
| 9 | +const noopAsync = async () => {}; |
| 10 | +const noop = () => {}; |
11 | 11 | |
12 | 12 | export function createExitThrowingRuntime(): RuntimeEnv { |
13 | 13 | return { |
@@ -52,7 +52,7 @@ export async function setupAuthTestEnv(
|
52 | 52 | return { stateDir, agentDir }; |
53 | 53 | } |
54 | 54 | |
55 | | -export type AuthTestLifecycle = { |
| 55 | +type AuthTestLifecycle = { |
56 | 56 | setStateDir: (stateDir: string) => void; |
57 | 57 | cleanup: () => Promise<void>; |
58 | 58 | }; |
@@ -82,7 +82,7 @@ export function requireOpenClawAgentDir(): string {
|
82 | 82 | return agentDir; |
83 | 83 | } |
84 | 84 | |
85 | | -export function authProfilePathForAgent(agentDir: string): string { |
| 85 | +function authProfilePathForAgent(agentDir: string): string { |
86 | 86 | return path.join(agentDir, "auth-profiles.json"); |
87 | 87 | } |
88 | 88 | |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -25,7 +25,7 @@ export type MockBaileysSocket = {
|
25 | 25 | user?: { id?: string }; |
26 | 26 | }; |
27 | 27 | |
28 | | -export type MockBaileysModule = { |
| 28 | +type MockBaileysModule = { |
29 | 29 | BufferJSON: { |
30 | 30 | replacer: (key: string, value: unknown) => unknown; |
31 | 31 | reviver: (key: string, value: unknown) => unknown; |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。