test: dedupe discord sdk mock read · openclaw/openclaw@b0c817e
steipete
·
2026-05-13
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -161,7 +161,7 @@ describe("discord plugin-sdk facade", () => {
|
161 | 161 | }); |
162 | 162 | |
163 | 163 | expect(mocks.runtimeModule.autoBindSpawnedDiscordSubagent).toHaveBeenCalledTimes(1); |
164 | | -const callParams = mocks.runtimeModule.autoBindSpawnedDiscordSubagent.mock.calls.at(0)?.[0]; |
| 164 | +const callParams = mocks.runtimeModule.autoBindSpawnedDiscordSubagent.mock.calls[0]?.[0]; |
165 | 165 | expect(callParams.agentId).toBe("agent"); |
166 | 166 | expect(callParams.cfg).toBe(mocks.runtimeConfig); |
167 | 167 | expect(callParams.childSessionKey).toBe("child"); |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。