feat: Update API versioning and parser handling for improved schedule updates and error management

This commit is contained in:
2026-10-19 23:29:35 +03:00
parent 85c5baa3e5
commit 68f9b95090
10 changed files with 32 additions and 18 deletions

View File

@@ -99,6 +99,7 @@ test("API: ошибки с машиночитаемым кодом", async () =>
test("API: исходный документ, сбой и таймаут университета", async () => {
const catalog = (await json("/api/catalog")).body;
assert.equal(typeof catalog.parserVersion, "number");
const id = (name) => catalog.files.find((f) => f.name === name).id;
const original = await get(`/api/original/${id("23-ЛГ_23-БА.docx")}`);
assert.equal(original.status, 200);