Chore: homepage tests (#6278)

This commit is contained in:
shamoon
2026-02-04 19:58:39 -08:00
committed by GitHub
parent 7d019185a3
commit 872a3600aa
558 changed files with 32606 additions and 84 deletions
+17
View File
@@ -0,0 +1,17 @@
import { describe, expect, it } from "vitest";
import themes from "./themes";
describe("utils/styles/themes", () => {
it("contains expected theme palettes", () => {
expect(themes).toHaveProperty("slate");
expect(themes.slate).toEqual(
expect.objectContaining({
light: expect.stringMatching(/^#[0-9a-f]{6}$/i),
dark: expect.stringMatching(/^#[0-9a-f]{6}$/i),
iconStart: expect.stringMatching(/^#[0-9a-f]{6}$/i),
iconEnd: expect.stringMatching(/^#[0-9a-f]{6}$/i),
}),
);
});
});