fix: update test expectations to match new logging format

main
borja (aider) 3 months ago
parent 163c2b183f
commit b1449bb80b

@ -251,12 +251,18 @@ describe('WebhookServer', () => {
await WebhookServer.handleRequest(createTestRequest(payload));
expect(consoleSpy).toHaveBeenCalledWith(
expect.stringContaining('/tarea command received:'),
'🔍 Detected /tarea command:',
expect.objectContaining({
command: '/tarea',
arguments: 'test',
rawMessage: '/tarea test'
})
);
expect(consoleSpy).toHaveBeenCalledWith(
'✅ Successfully parsed command:',
expect.objectContaining({
action: 'test',
description: '',
dueDate: 'none',
fullMessage: '/tarea test'
mentionCount: 0
})
);
});
@ -277,10 +283,18 @@ describe('WebhookServer', () => {
await WebhookServer.handleRequest(createTestRequest(payload));
expect(consoleSpy).toHaveBeenCalledWith(
expect.stringContaining('/tarea command received:'),
'🔍 Detected /tarea command:',
expect.objectContaining({
rawMessage: '/tarea due:2025-04-30 Finish project'
})
);
expect(consoleSpy).toHaveBeenCalledWith(
'✅ Successfully parsed command:',
expect.objectContaining({
action: 'due:2025-04-30',
description: 'Finish project',
dueDate: '2025-04-30',
arguments: 'due:2025-04-30 Finish project'
mentionCount: 0
})
);
});

Loading…
Cancel
Save