From 1a1d349b85f0f86f455ac812c1ae03faaf115eb5 Mon Sep 17 00:00:00 2001 From: cyphercodes Date: Fri, 8 May 2026 01:38:16 +0300 Subject: [PATCH] test: use named path import in theme contrast test Co-Authored-By: Hermes Agent --- web_src/js/utils/theme-contrast.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web_src/js/utils/theme-contrast.test.ts b/web_src/js/utils/theme-contrast.test.ts index 89c554c469..ca9f393c96 100644 --- a/web_src/js/utils/theme-contrast.test.ts +++ b/web_src/js/utils/theme-contrast.test.ts @@ -1,10 +1,10 @@ import {readFile} from 'node:fs/promises'; -import * as path from 'node:path'; +import {join} from 'node:path'; type CssVariables = Record; async function loadThemeVariables(fileName: string, baseVariables: CssVariables = {}): Promise { - const themePath = path.join(import.meta.dirname, '../../css/themes', fileName); + const themePath = join(import.meta.dirname, '../../css/themes', fileName); const css = await readFile(themePath, 'utf8'); const variables = {...baseVariables}; for (const match of css.matchAll(/(--[\w-]+):\s*(#[\dA-Fa-f]{6});/g)) {