test: dedupe zalouser pairing mock reads · openclaw/openclaw@be343e3
steipete
·
2026-05-13
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -103,15 +103,15 @@ describe("zalouser monitor pairing account scoping", () => {
|
103 | 103 | |
104 | 104 | expect(readAllowFromStore).toHaveBeenCalledOnce(); |
105 | 105 | const allowStoreParams = requireRecord( |
106 | | -readAllowFromStore.mock.calls.at(0)?.[0], |
| 106 | +readAllowFromStore.mock.calls[0]?.[0], |
107 | 107 | "allow store params", |
108 | 108 | ); |
109 | 109 | expect(allowStoreParams.channel).toBe("zalouser"); |
110 | 110 | expect(allowStoreParams.accountId).toBe("beta"); |
111 | 111 | |
112 | 112 | expect(upsertPairingRequest).toHaveBeenCalledOnce(); |
113 | 113 | const pairingRequest = requireRecord( |
114 | | -upsertPairingRequest.mock.calls.at(0)?.[0], |
| 114 | +upsertPairingRequest.mock.calls[0]?.[0], |
115 | 115 | "pairing request params", |
116 | 116 | ); |
117 | 117 | expect(pairingRequest.channel).toBe("zalouser"); |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。