test: dedupe synology client mock reads · openclaw/openclaw@cf68115
steipete
·
2026-05-13
·
via Recent Commits to openclaw:main
File tree
extensions/synology-chat/src
| Original file line number | Diff line number | Diff line change |
|---|
@@ -45,15 +45,15 @@ type MockHttpCall = [
|
45 | 45 | ]; |
46 | 46 | |
47 | 47 | function firstHttpsRequestCall(label = "Synology Chat HTTPS request"): MockHttpCall { |
48 | | -const call = vi.mocked(https.request).mock.calls.at(0); |
| 48 | +const call = vi.mocked(https.request).mock.calls[0]; |
49 | 49 | if (!call) { |
50 | 50 | throw new Error(`expected ${label}`); |
51 | 51 | } |
52 | 52 | return call as MockHttpCall; |
53 | 53 | } |
54 | 54 | |
55 | 55 | function firstHttpsGetCall(label = "Synology Chat HTTPS get"): MockHttpCall { |
56 | | -const call = vi.mocked(https.get).mock.calls.at(0); |
| 56 | +const call = vi.mocked(https.get).mock.calls[0]; |
57 | 57 | if (!call) { |
58 | 58 | throw new Error(`expected ${label}`); |
59 | 59 | } |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。