test: tighten bundled runtime command assertion · openclaw/openclaw@b627dd1
shakkernerd
·
2026-05-11
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -331,10 +331,11 @@ describe("stageBundledPluginRuntime", () => {
|
331 | 331 | ]); |
332 | 332 | |
333 | 333 | const match = commandsModule.matchPluginCommand("/pair now"); |
334 | | -expect(match).toEqual(expect.objectContaining({ args: "now" })); |
335 | 334 | if (match === null) { |
336 | 335 | throw new Error("Expected plugin command match"); |
337 | 336 | } |
| 337 | +expect(match.args).toBe("now"); |
| 338 | +expect(typeof match.command.handler).toBe("function"); |
338 | 339 | await expect( |
339 | 340 | commandsModule.executePluginCommand({ |
340 | 341 | command: match.command, |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。