From 94d0378f40cd314bcdd04e5c3bf514bb1fbbf3ed Mon Sep 17 00:00:00 2001 From: brobert Date: Sun, 8 Feb 2026 21:00:04 +0100 Subject: [PATCH] =?UTF-8?q?cambia=20un=20test=20para=20ser=20en=202028=20y?= =?UTF-8?q?=20que=20no=20falle=20seg=C3=BAn=20pasa=20el=20tiempo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/unit/services/command.date-parsing.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/unit/services/command.date-parsing.test.ts b/tests/unit/services/command.date-parsing.test.ts index 48806d8..17d9946 100644 --- a/tests/unit/services/command.date-parsing.test.ts +++ b/tests/unit/services/command.date-parsing.test.ts @@ -79,14 +79,14 @@ describe('CommandService - parser de fechas (hoy/mañana y formatos YYYY/YY-MM-D const ctx = { sender, groupId: `${sender}@s.whatsapp.net`, - message: '/t n con corto 25-12-19', + message: '/t n con corto 28-12-19', mentions: [] as string[], }; await CommandService.handle(ctx); const row = memdb.prepare(`SELECT id, due_date FROM tasks ORDER BY id DESC LIMIT 1`).get() as any; expect(row).toBeTruthy(); - expect(String(row.due_date)).toBe('2025-12-19'); + expect(String(row.due_date)).toBe('2028-12-19'); }); it('acepta formato YY-MM-DD con ceros y futuro lejano seguro (30-01-05 → 2030-01-05)', async () => {