(over: Partial<SQLEditorTheme> = {})
| 19 | |
| 20 | // Minimal complete fixture (token values arbitrary but every key present). |
| 21 | const 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 | |
| 34 | describe("themeToCssVars", () => { |
| 35 | test("maps every chrome token to a --color-* CSS property", () => { |
no outgoing calls
no test coverage detected