test: tighten synology tls assertions · openclaw/openclaw@54807c3
shakkernerd
·
2026-05-11
·
via Recent Commits to openclaw:main
File tree
extensions/synology-chat/src
| Original file line number | Diff line number | Diff line change |
|---|
@@ -125,7 +125,7 @@ describe("Synology Chat TLS verification defaults", () => {
|
125 | 125 | if (!firstCall) { |
126 | 126 | throw new Error("expected Synology Chat HTTPS request"); |
127 | 127 | } |
128 | | -expect(firstCall[1]).toMatchObject({ rejectUnauthorized: true }); |
| 128 | +expect(firstCall[1]?.rejectUnauthorized).toBe(true); |
129 | 129 | }); |
130 | 130 | }); |
131 | 131 | |
@@ -161,7 +161,7 @@ describe("sendMessage", () => {
|
161 | 161 | if (!firstCall) { |
162 | 162 | throw new Error("expected Synology Chat HTTPS request"); |
163 | 163 | } |
164 | | -expect(firstCall[1]).toMatchObject({ rejectUnauthorized: false }); |
| 164 | +expect(firstCall[1]?.rejectUnauthorized).toBe(false); |
165 | 165 | }); |
166 | 166 | }); |
167 | 167 | |
@@ -390,6 +390,6 @@ describe("fetchChatUsers", () => {
|
390 | 390 | if (!firstCall) { |
391 | 391 | throw new Error("expected Synology Chat HTTPS get"); |
392 | 392 | } |
393 | | -expect(firstCall[1]).toMatchObject({ rejectUnauthorized: true }); |
| 393 | +expect(firstCall[1]?.rejectUnauthorized).toBe(true); |
394 | 394 | }); |
395 | 395 | }); |
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。