fix(clownfish): address review for ghcrawl-156943-autonomous-smoke (1)

This commit is contained in:
vincentkoc
2026-04-28 07:45:00 +00:00
committed by clawsweeper
parent 40d2149630
commit 7def3722fa

View File

@@ -132,9 +132,9 @@ describe("resolveWhatsAppOutboundTarget", () => {
describe("newsletter JID handling", () => {
it("returns success for valid newsletter JID without applying DM allowFrom", () => {
vi.mocked(normalize.normalizeWhatsAppTarget).mockReturnValueOnce(
"120363123456789@newsletter",
);
vi.mocked(normalize.normalizeWhatsAppTarget)
.mockReturnValueOnce(SECONDARY_TARGET)
.mockReturnValueOnce("120363123456789@newsletter");
vi.mocked(normalize.isWhatsAppGroupJid).mockReturnValueOnce(false);
vi.mocked(normalize.isWhatsAppNewsletterJid).mockReturnValueOnce(true);