test: clarify extension resilience assertions

This commit is contained in:
Peter Steinberger
2026-05-08 13:20:40 +01:00
parent f5e6108133
commit f40e3fe67e
4 changed files with 3 additions and 4 deletions

View File

@@ -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")

View File

@@ -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("");
});

View File

@@ -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");

View File

@@ -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 = {