From 435b90d131d7feba5c235f1d8bc63997bb82502b Mon Sep 17 00:00:00 2001 From: borja Date: Sat, 6 Sep 2025 20:59:12 +0200 Subject: [PATCH] test: eliminar valor de active al insertar grupos en pruebas Co-authored-by: aider (openrouter/openai/gpt-5) --- tests/unit/tasks/service.test.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/unit/tasks/service.test.ts b/tests/unit/tasks/service.test.ts index d8f17c5..71706b5 100644 --- a/tests/unit/tasks/service.test.ts +++ b/tests/unit/tasks/service.test.ts @@ -21,9 +21,9 @@ describe('TaskService.listGroupUnassigned / countGroupUnassigned', () => { it('devuelve solo tareas sin dueño del grupo, en orden por fecha (NULL al final) y respeta el límite', () => { // Sembrar grupos para FK memDb.prepare(`INSERT OR IGNORE INTO groups (id, community_id, name, active) VALUES (?, ?, ?, 1)`) - .run('g1@g.us', 'c1', 'G1', 1); + .run('g1@g.us', 'c1', 'G1'); memDb.prepare(`INSERT OR IGNORE INTO groups (id, community_id, name, active) VALUES (?, ?, ?, 1)`) - .run('g2@g.us', 'c1', 'G2', 1); + .run('g2@g.us', 'c1', 'G2'); // En g1: 3 sin dueño con distintas fechas, 1 asignada (excluir), 1 sin dueño completada (excluir) const tEarly = TaskService.createTask({ @@ -94,7 +94,7 @@ describe('TaskService.listGroupUnassigned / countGroupUnassigned', () => { // Sembrar grupo memDb.prepare(`INSERT OR IGNORE INTO groups (id, community_id, name, active) VALUES (?, ?, ?, 1)`) - .run('g1@g.us', 'c1', 'G1', 1); + .run('g1@g.us', 'c1', 'G1'); const a = TaskService.createTask({ description: 'Sin dueño 1',