fix: update voice note test to match empty-content skip behavior

The test expected voice notes (audioMessage with no caption) to be
delivered with empty content, but 6f177ad added a guard that skips
messages with no text content. Update assertion accordingly.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
gavrielc
2026-02-21 23:13:43 +02:00
parent 6e22abb1ba
commit cb294405a5

View File

@@ -514,11 +514,8 @@ describe('WhatsAppChannel', () => {
}, },
]); ]);
// Still delivered but with empty content // Skipped — no text content to process
expect(opts.onMessage).toHaveBeenCalledWith( expect(opts.onMessage).not.toHaveBeenCalled();
'registered@g.us',
expect.objectContaining({ content: '' }),
);
}); });
it('uses sender JID when pushName is absent', async () => { it('uses sender JID when pushName is absent', async () => {