Версия и дата сборки на странице ручных тестов (BUILD_DATE в образе)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -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("неизвестна");
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user