test: dedupe mattermost route mock read · openclaw/openclaw@ba17dda
steipete
·
2026-05-13
·
via Recent Commits to openclaw:main
File tree
extensions/mattermost/src
| Original file line number | Diff line number | Diff line change |
|---|
@@ -246,7 +246,7 @@ describe("mattermost setup", () => {
|
246 | 246 | } |
247 | 247 | |
248 | 248 | expect(registerHttpRoute).toHaveBeenCalledTimes(1); |
249 | | -const [route] = registerHttpRoute.mock.calls.at(0) ?? []; |
| 249 | +const [route] = registerHttpRoute.mock.calls[0] ?? []; |
250 | 250 | expect(route?.path).toBe("/api/channels/mattermost/command"); |
251 | 251 | expect(route?.auth).toBe("plugin"); |
252 | 252 | expect(typeof route?.handler).toBe("function"); |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。