test: tighten matrix cli json error assertion · openclaw/openclaw@f69e8e2
shakkernerd
·
2026-05-11
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -1510,9 +1510,9 @@ describe("matrix CLI verification commands", () => {
|
1510 | 1510 | }); |
1511 | 1511 | |
1512 | 1512 | expect(process.exitCode).toBe(1); |
1513 | | -expect(stdoutWriteMock).toHaveBeenCalledWith( |
1514 | | -expect.stringContaining('"error": "Matrix requires --homeserver"'), |
1515 | | -); |
| 1513 | +expect(JSON.parse(String(stdoutWriteMock.mock.calls[0]?.[0]))).toEqual({ |
| 1514 | +error: "Matrix requires --homeserver", |
| 1515 | +}); |
1516 | 1516 | }); |
1517 | 1517 | |
1518 | 1518 | it("keeps zero exit code for successful bootstrap in JSON mode", async () => { |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。