From f093033ee86e2bf25eedb28918f5436b5a3d4fa4 Mon Sep 17 00:00:00 2001 From: Shakker Date: Tue, 12 May 2026 10:23:27 +0100 Subject: [PATCH] test: pin silent reply fallback text --- src/infra/outbound/payloads.test.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/infra/outbound/payloads.test.ts b/src/infra/outbound/payloads.test.ts index 5cc318ea932..0988702b681 100644 --- a/src/infra/outbound/payloads.test.ts +++ b/src/infra/outbound/payloads.test.ts @@ -216,8 +216,7 @@ describe("normalizeReplyPayloadsForDelivery", () => { if (!reply?.text) { throw new Error("expected direct silent reply rewrite to produce visible text"); } - expect(reply.text.trim().length).toBeGreaterThan(0); - expect(reply.text.trim()).not.toBe("NO_REPLY"); + expect(reply.text).toBe("Nothing additional from me."); }); it("drops bare silent replies for groups when policy allows silence", () => { @@ -311,8 +310,7 @@ describe("normalizeReplyPayloadsForDelivery", () => { if (!reply?.text) { throw new Error("expected visible silent-reply fallback text"); } - expect(reply.text.length).toBeGreaterThan(0); - expect(reply.text).not.toBe("NO_REPLY"); + expect(reply.text).toBe("No extra notes from me."); } finally { registerPendingSpawnedChildrenQuery(previousQuery); }