From 62dfe89f96f88099d01a432eb9723da4bd3d2d60 Mon Sep 17 00:00:00 2001 From: Yuri Yaryshev Date: Mon, 23 Nov 2026 10:19:46 +0300 Subject: [PATCH] =?UTF-8?q?=D0=92=D0=B5=D1=80=D1=81=D0=B8=D1=8F=20=D0=B8?= =?UTF-8?q?=20=D0=B4=D0=B0=D1=82=D0=B0=20=D1=81=D0=B1=D0=BE=D1=80=D0=BA?= =?UTF-8?q?=D0=B8=20=D0=BD=D0=B0=20=D1=81=D1=82=D1=80=D0=B0=D0=BD=D0=B8?= =?UTF-8?q?=D1=86=D0=B5=20=D1=80=D1=83=D1=87=D0=BD=D1=8B=D1=85=20=D1=82?= =?UTF-8?q?=D0=B5=D1=81=D1=82=D0=BE=D0=B2=20(BUILD=5FDATE=20=D0=B2=20?= =?UTF-8?q?=D0=BE=D0=B1=D1=80=D0=B0=D0=B7=D0=B5)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Sonnet 5.5 --- packages/qbo_auth/src/webhook.test.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) 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("неизвестна"); + }); +});