chore: sincronizar cambios pendientes de desarrollo a produccion
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user