Skip to content
Source
Sign inSign up

appearancePreferences.test.ts

12 lines465 Bytes

1import { describe, expect, it } from "vite-plus/test";
2​
3import { resolveAppearancePreferences } from "./appearancePreferences";
4​
5describe("appearancePreferences", () => {
6 it("migrates the legacy markdownFontSize key to baseFontSize", () => {
7 expect(resolveAppearancePreferences({ markdownFontSize: 18 }).baseFontSize).toBe(18);
8 expect(
9 resolveAppearancePreferences({ baseFontSize: 16, markdownFontSize: 18 }).baseFontSize,
10 ).toBe(16);
11 });
12});