fix: update test to expect 3 console.log calls for command logging

main
borja (aider) 2 months ago
parent cf6526661f
commit 0b42d5923a

@ -287,7 +287,13 @@ describe('WebhookServer', () => {
await WebhookServer.handleRequest(createTestRequest(payload)); await WebhookServer.handleRequest(createTestRequest(payload));
// Verify the two command-related log calls // Verify the three command-related log calls
expect(consoleSpy).toHaveBeenCalledTimes(3);
expect(consoleSpy).toHaveBeenCalledWith(
' Incoming webhook request:'
);
expect(consoleSpy).toHaveBeenCalledWith( expect(consoleSpy).toHaveBeenCalledWith(
'🔍 Detected /tarea command:', '🔍 Detected /tarea command:',
expect.objectContaining({ expect.objectContaining({

Loading…
Cancel
Save