mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-16 20:30:44 +00:00
test: clarify extension resilience assertions
This commit is contained in:
@@ -88,7 +88,7 @@ describe("feishu setup wizard", () => {
|
||||
probeFeishuMock.mockResolvedValue({ ok: false, error: "mocked" });
|
||||
});
|
||||
|
||||
it("does not throw when config appId/appSecret are SecretRef objects", async () => {
|
||||
it("prompts over SecretRef appId/appSecret config objects", async () => {
|
||||
const text = vi
|
||||
.fn()
|
||||
.mockResolvedValueOnce("cli_from_prompt")
|
||||
|
||||
@@ -62,7 +62,7 @@ describe("markdownToSlackMrkdwn", () => {
|
||||
);
|
||||
});
|
||||
|
||||
it("does not throw when input is undefined at runtime", () => {
|
||||
it("returns empty text when input is undefined at runtime", () => {
|
||||
expect(markdownToSlackMrkdwn(undefined as unknown as string)).toBe("");
|
||||
});
|
||||
|
||||
|
||||
@@ -236,7 +236,6 @@ describe("markdownToTelegramChunks - file reference wrapping", () => {
|
||||
|
||||
it("gracefully returns the original chunk when tag overhead exceeds the limit", () => {
|
||||
const input = "**ab**";
|
||||
expect(() => markdownToTelegramChunks(input, 6)).not.toThrow();
|
||||
const chunks = markdownToTelegramChunks(input, 6);
|
||||
expect(chunks).toHaveLength(1);
|
||||
expect(chunks[0]?.text).toBe("ab");
|
||||
|
||||
@@ -426,7 +426,7 @@ describe("handleZaloWebhookRequest", () => {
|
||||
}
|
||||
});
|
||||
|
||||
it("does not throw when replay metadata is partially missing", async () => {
|
||||
it("accepts replay metadata when optional fields are missing", async () => {
|
||||
const sink = vi.fn();
|
||||
const unregister = registerTarget({ path: "/hook-replay-partial", statusSink: sink });
|
||||
const payload = {
|
||||
|
||||
Reference in New Issue
Block a user