test: tighten channel catalog discovery assertions · openclaw/openclaw@4a8b5b4
shakkernerd
·
2026-05-11
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -62,9 +62,10 @@ describe("listChannelCatalogEntries", () => {
|
62 | 62 | expect(loadRecordsSpy).toHaveBeenCalledTimes(1); |
63 | 63 | expect(loadRecordsSpy).toHaveBeenCalledWith({ env: ENV }); |
64 | 64 | expect(discoverSpy).toHaveBeenCalledTimes(1); |
65 | | -expect(discoverSpy.mock.calls[0][0]).toMatchObject({ |
| 65 | +expect(discoverSpy.mock.calls[0]?.[0]).toStrictEqual({ |
66 | 66 | env: ENV, |
67 | 67 | installRecords: RECORDS, |
| 68 | +workspaceDir: undefined, |
68 | 69 | }); |
69 | 70 | }); |
70 | 71 | |
@@ -90,7 +91,11 @@ describe("listChannelCatalogEntries", () => {
|
90 | 91 | module.listChannelCatalogEntries({ env: ENV, installRecords: supplied }); |
91 | 92 | |
92 | 93 | expect(loadRecordsSpy).not.toHaveBeenCalled(); |
93 | | -expect(discoverSpy.mock.calls[0][0]).toMatchObject({ installRecords: supplied }); |
| 94 | +expect(discoverSpy.mock.calls[0]?.[0]).toStrictEqual({ |
| 95 | +env: ENV, |
| 96 | +installRecords: supplied, |
| 97 | +workspaceDir: undefined, |
| 98 | +}); |
94 | 99 | }); |
95 | 100 | |
96 | 101 | it("omits installRecords from discovery when the ledger is empty", async () => { |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。