Files
dbx/packages/app-tests/editorThemeResolution.test.ts
T
t8y2 fabf2172e4 chore: migrate test runner from node:test/tsx to vitest
155 files, 1091 tests, 4.3s (2x faster than previous 9.1s).
2026-06-08 01:17:27 +08:00

14 lines
597 B
TypeScript

import { strict as assert } from "node:assert";
import { test } from "vitest";
import { resolveEditorTheme } from "../../apps/desktop/src/lib/editorThemes.ts";
test("editor theme follows the resolved app appearance when configured to follow app theme", () => {
assert.equal(resolveEditorTheme("app", "light"), "vscode-light");
assert.equal(resolveEditorTheme("app", "dark"), "one-dark");
});
test("editor theme keeps explicit CodeMirror theme selections", () => {
assert.equal(resolveEditorTheme("nord", "light"), "nord");
assert.equal(resolveEditorTheme("xcode", "dark"), "xcode");
});