MCPcopy Create free account
hub / github.com/bytebase/bytebase / fixture

Function fixture

frontend/src/react/components/sql-editor/theme/derive.test.ts:21–32  ·  view source on GitHub ↗
(over: Partial<SQLEditorTheme> = {})

Source from the content-addressed store, hash-verified

19
20// Minimal complete fixture (token values arbitrary but every key present).
21const fixture = (over: Partial<SQLEditorTheme> = {}): SQLEditorTheme => {
22 const tokens = Object.fromEntries(
23 SQL_EDITOR_THEME_TOKENS.map((k) => [k, "#010203"])
24 ) as SQLEditorTheme["tokens"];
25 return {
26 id: "fixture",
27 name: "Fixture",
28 monacoBase: "vs",
29 tokens,
30 ...over,
31 };
32};
33
34describe("themeToCssVars", () => {
35 test("maps every chrome token to a --color-* CSS property", () => {

Callers 3

derive.test.tsFile · 0.70
lightThemedFunction · 0.70
darkThemedFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected