Тест: имена файлов инвойсов по новой схеме
All checks were successful
ci / test (push) Successful in 54s
ci / deploy (push) Successful in 3m2s

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-30 23:28:28 +03:00
parent db333d6750
commit abb17121e6

View File

@@ -208,6 +208,6 @@ d("загрузка инвойсов из почты (временная БД,
const r = await run([bodyOnly, withDocx, noInvoice]); const r = await run([bodyOnly, withDocx, noInvoice]);
expect(r).toMatchObject({ processed: 3, created: 2, skipped: 1, errors: 0 }); expect(r).toMatchObject({ processed: 3, created: 2, skipped: 1, errors: 0 });
expect((await reviews()).map((x) => x.invoice_number).sort()).toEqual(["BODY-77", "DOCX-1"]); expect((await reviews()).map((x) => x.invoice_number).sort()).toEqual(["BODY-77", "DOCX-1"]);
expect(uploads.map((u) => u.name).sort()).toEqual(["letter.html", "счёт.docx"]); expect(uploads.map((u) => u.name).sort()).toEqual(["$1,500.00 ACME Plumbing LLC.docx", "$500.00 ACME Plumbing LLC.html"]);
}); });
}); });