mirror of
https://github.com/t8y2/dbx.git
synced 2026-10-31 00:22:30 +00:00
14 lines
597 B
TypeScript
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");
|
|
});
|