test: avoid CI lint false positive in ACP config mock · openclaw/openclaw@69e6f65
steipete
·
2026-04-29
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -675,7 +675,7 @@ describe("acp setSessionConfigOption bridge behavior", () => {
|
675 | 675 | const sessionStore = createInMemorySessionStore(); |
676 | 676 | const connection = createAcpConnection(); |
677 | 677 | const sessionUpdate = connection.__sessionUpdateMock; |
678 | | -const request = vi.fn(async (method: string, params?: unknown) => { |
| 678 | +const request = vi.fn(async (method: string, _params?: unknown) => { |
679 | 679 | if (method === "sessions.list") { |
680 | 680 | return { |
681 | 681 | ts: Date.now(), |
@@ -700,7 +700,7 @@ describe("acp setSessionConfigOption bridge behavior", () => {
|
700 | 700 | }; |
701 | 701 | } |
702 | 702 | if (method === "sessions.patch") { |
703 | | -expect(params).toEqual({ |
| 703 | +expect(_params).toEqual({ |
704 | 704 | key: "fast-session", |
705 | 705 | fastMode: true, |
706 | 706 | }); |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。