diff --git a/packages/qbo_auth/src/webhook.test.ts b/packages/qbo_auth/src/webhook.test.ts index f31345c..a919cdb 100644 --- a/packages/qbo_auth/src/webhook.test.ts +++ b/packages/qbo_auth/src/webhook.test.ts @@ -103,3 +103,13 @@ describe("вебхук Intuit", () => { vi.useRealTimers(); }); }); + +describe("версия сборки на странице тестов", () => { + it("показывает коммит и дату сборки из окружения", async () => { + const { renderTestsPage } = await import("./tests-page.js"); + const html = renderTestsPage({ KHB_VERSION: "abc123def456", KHB_BUILD_DATE: "2026-11-23T07:20:00Z" } as NodeJS.ProcessEnv); + expect(html).toContain("commit/abc123def456"); + expect(html).toContain("2026-11-23 07:20:00 UTC"); + expect(renderTestsPage({} as NodeJS.ProcessEnv)).toContain("неизвестна"); + }); +});