Skip to content

Commit 8ad610f

Browse files
committed
Fix typo high and not hight
1 parent 1008918 commit 8ad610f

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

src/bin/css_to_ts/colorDecisions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const contexts = ["background", "text", "border", "artwork"] as const;
1414

1515
type Context = typeof contexts[number];
1616

17-
const variants = ["hight", "low"] as const;
17+
const variants = ["high", "low"] as const;
1818

1919
type Variant = typeof variants[number];
2020

src/test/bin/colorOptions/generateGetColorOptionsTsCode.test.ts

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -93,14 +93,7 @@ const input: ColorOption[] = [
9393
];
9494

9595
const expected = `
96-
export function getColorOptions(colorScheme: ColorScheme) {
97-
const isDark: boolean = (() => {
98-
switch (colorScheme) {
99-
case "dark": return true;
100-
case "light": return false;
101-
}
102-
})();
103-
96+
export function getColorOptions(isDark: boolean) {
10497
return {
10598
"name1Name2": {
10699
"_111": {

0 commit comments

Comments
 (0)