|
|
@ -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({
|
|
|
|