chore: import clean Agent Desk snapshot (6/7)
This commit is contained in:
14
web/components/site-header.test.mjs
Normal file
14
web/components/site-header.test.mjs
Normal file
@@ -0,0 +1,14 @@
|
||||
import assert from "node:assert/strict";
|
||||
import { readFile } from "node:fs/promises";
|
||||
import { describe, it } from "node:test";
|
||||
|
||||
const source = await readFile(new URL("./site-header.tsx", import.meta.url), "utf8");
|
||||
|
||||
describe("site header preferences", () => {
|
||||
it("renders palette and theme controls without a locale switcher", () => {
|
||||
assert.doesNotMatch(source, /LocaleSwitcher/);
|
||||
assert.match(source, /import \{ PaletteToggle \} from "@\/components\/palette-toggle"/);
|
||||
assert.match(source, /import \{ ThemeToggle \} from "@\/components\/theme-toggle"/);
|
||||
assert.match(source, /<PaletteToggle \/>[\s\S]*<ThemeToggle \/>/);
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user