Files
Netcatty/application/state/fontStore.test.ts
T
陈大猫 3c393380e5 feat(settings): support local CJK fonts (#2267)
* feat(settings): support local CJK fonts

* refactor: move CJK font rules to domain

* fix(settings): improve CJK font preview safety

* fix(settings): refresh local font previews

* fix(settings): improve font picker keyboard behavior

* fix(settings): handle unavailable font detection

* fix(settings): cover font picker edge cases

* fix(settings): quote custom font families safely
2026-07-17 11:57:23 +08:00

10 lines
361 B
TypeScript

import { readFileSync } from 'node:fs';
import assert from 'node:assert/strict';
import test from 'node:test';
const source = readFileSync(new URL('./fontStore.ts', import.meta.url), 'utf8');
test('refresh clears local font and availability detection caches', () => {
assert.match(source, /clearLocalFontsCache\(\);\s*clearFontAvailabilityCache\(\);/);
});