test: pin silent reply fallback text

This commit is contained in:
Shakker
2026-05-12 10:23:27 +01:00
parent 8e045f6670
commit f093033ee8

View File

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