mirror of
https://github.com/gethomepage/homepage.git
synced 2026-09-30 07:51:17 -07:00
Chore: homepage tests (#6278)
This commit is contained in:
@@ -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),
|
||||
}),
|
||||
);
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user