test: clarify extension resilience assertions · openclaw/openclaw@f40e3fe
steipete
·
2026-05-08
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -88,7 +88,7 @@ describe("feishu setup wizard", () => {
|
88 | 88 | probeFeishuMock.mockResolvedValue({ ok: false, error: "mocked" }); |
89 | 89 | }); |
90 | 90 | |
91 | | -it("does not throw when config appId/appSecret are SecretRef objects", async () => { |
| 91 | +it("prompts over SecretRef appId/appSecret config objects", async () => { |
92 | 92 | const text = vi |
93 | 93 | .fn() |
94 | 94 | .mockResolvedValueOnce("cli_from_prompt") |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -62,7 +62,7 @@ describe("markdownToSlackMrkdwn", () => {
|
62 | 62 | ); |
63 | 63 | }); |
64 | 64 | |
65 | | -it("does not throw when input is undefined at runtime", () => { |
| 65 | +it("returns empty text when input is undefined at runtime", () => { |
66 | 66 | expect(markdownToSlackMrkdwn(undefined as unknown as string)).toBe(""); |
67 | 67 | }); |
68 | 68 | |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -236,7 +236,6 @@ describe("markdownToTelegramChunks - file reference wrapping", () => {
|
236 | 236 | |
237 | 237 | it("gracefully returns the original chunk when tag overhead exceeds the limit", () => { |
238 | 238 | const input = "**ab**"; |
239 | | -expect(() => markdownToTelegramChunks(input, 6)).not.toThrow(); |
240 | 239 | const chunks = markdownToTelegramChunks(input, 6); |
241 | 240 | expect(chunks).toHaveLength(1); |
242 | 241 | expect(chunks[0]?.text).toBe("ab"); |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -426,7 +426,7 @@ describe("handleZaloWebhookRequest", () => {
|
426 | 426 | } |
427 | 427 | }); |
428 | 428 | |
429 | | -it("does not throw when replay metadata is partially missing", async () => { |
| 429 | +it("accepts replay metadata when optional fields are missing", async () => { |
430 | 430 | const sink = vi.fn(); |
431 | 431 | const unregister = registerTarget({ path: "/hook-replay-partial", statusSink: sink }); |
432 | 432 | const payload = { |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。