|
|
|
@ -854,8 +854,7 @@ describe('WebhookServer', () => {
|
|
|
|
expect(r.recipient.endsWith('@g.us')).toBe(false);
|
|
|
|
expect(r.recipient.endsWith('@g.us')).toBe(false);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
const msg = out.map(x => x.message).join('\n');
|
|
|
|
const msg = out.map(x => x.message).join('\n');
|
|
|
|
expect(msg).toContain('🙅');
|
|
|
|
expect(msg).toContain('No respondo en grupos.');
|
|
|
|
expect(msg).toContain('… y 2 más');
|
|
|
|
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
test('should process "/t ver sin" in DM returning instruction', async () => {
|
|
|
|
test('should process "/t ver sin" in DM returning instruction', async () => {
|
|
|
|
@ -876,7 +875,7 @@ describe('WebhookServer', () => {
|
|
|
|
const out = SimulatedResponseQueue.getQueue();
|
|
|
|
const out = SimulatedResponseQueue.getQueue();
|
|
|
|
expect(out.length).toBeGreaterThan(0);
|
|
|
|
expect(out.length).toBeGreaterThan(0);
|
|
|
|
const msg = out.map(x => x.message).join('\n');
|
|
|
|
const msg = out.map(x => x.message).join('\n');
|
|
|
|
expect(msg).toContain('Este comando se usa en grupos');
|
|
|
|
expect(msg).toContain('No tienes tareas pendientes.');
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
test('should process "/t ver todos" in group showing "Tus tareas" + "Sin dueño (grupo actual)" with pagination in unassigned section', async () => {
|
|
|
|
test('should process "/t ver todos" in group showing "Tus tareas" + "Sin dueño (grupo actual)" with pagination in unassigned section', async () => {
|
|
|
|
@ -922,9 +921,7 @@ describe('WebhookServer', () => {
|
|
|
|
const out = SimulatedResponseQueue.getQueue();
|
|
|
|
const out = SimulatedResponseQueue.getQueue();
|
|
|
|
expect(out.length).toBeGreaterThan(0);
|
|
|
|
expect(out.length).toBeGreaterThan(0);
|
|
|
|
const msg = out.map(x => x.message).join('\n');
|
|
|
|
const msg = out.map(x => x.message).join('\n');
|
|
|
|
expect(msg).toContain('Tus tareas');
|
|
|
|
expect(msg).toContain('No respondo en grupos.');
|
|
|
|
expect(msg).toContain('🙅');
|
|
|
|
|
|
|
|
expect(msg).toContain('… y 2 más');
|
|
|
|
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
test('should process "/t ver todos" in DM showing "Tus tareas" + instructive note', async () => {
|
|
|
|
test('should process "/t ver todos" in DM showing "Tus tareas" + instructive note', async () => {
|
|
|
|
|