chore: sincronizar cambios pendientes de desarrollo a produccion

This commit is contained in:
2026-09-30 11:48:32 +02:00
parent dc545c9d86
commit c2dbe773a4
7 changed files with 609 additions and 10 deletions
+10 -2
View File
@@ -540,9 +540,17 @@ test('POST /api/trips/:id/status multipart registra body parseado y ficheros en
);
assert.equal(response.statusCode, 200);
await waitFor(() => fs.existsSync(TEST_POSTS_LOG_PATH));
await waitFor(() =>
fs.existsSync(TEST_POSTS_LOG_PATH) &&
readJsonLines(TEST_POSTS_LOG_PATH).some(
(logEntry) => logEntry.body?.id_estado === '5'
)
);
const [entry] = readJsonLines(TEST_POSTS_LOG_PATH);
const entry = readJsonLines(TEST_POSTS_LOG_PATH).find(
(logEntry) => logEntry.body?.id_estado === '5'
);
assert.ok(entry, 'Expected parsed multipart payload log entry');
assert.equal(entry.method, 'POST');
assert.equal(entry.path, '/api/trips/248230/status');
assert.equal(entry.body.id_estado, '5');