@@ -6,23 +6,23 @@ console.log(`Running test ${__filename}`);
6
6
7
7
const input : ColorDecision [ ] = [
8
8
{
9
- "themePath" : [ "background" , "default" , "normal" , " grey", "hover" ] ,
9
+ "themePath" : [ "background" , "default" , "grey" , "hover" ] ,
10
10
"optionThemePath" : [ "grey" , "_1000_50" , "hover" ]
11
11
} ,
12
12
{
13
- "themePath" : [ "background" , "default" , "normal" , " grey", "default" ] ,
13
+ "themePath" : [ "background" , "default" , "grey" , "default" ] ,
14
14
"optionThemePath" : [ "grey" , "_1000_50" , "default" ]
15
15
} ,
16
16
{
17
- "themePath" : [ "border" , "action" , "low ", "orangeTerreBattue" , "default" ] ,
17
+ "themePath" : [ "border" , "actionLow " , "orangeTerreBattue" , "default" ] ,
18
18
"optionThemePath" : [ "orangeTerreBattue" , "_850_200" , "default" ]
19
19
} ,
20
20
{
21
- "themePath" : [ "background" , "altRaised" , "normal" , " grey", "hover" ] ,
21
+ "themePath" : [ "background" , "altRaised" , "grey" , "hover" ] ,
22
22
"optionThemePath" : [ "grey" , "_975_100" , "hover" ]
23
23
} ,
24
24
{
25
- "themePath" : [ "background" , "contrastOverlap" , "normal" , " grey", "default" ] ,
25
+ "themePath" : [ "background" , "contrastOverlap" , "grey" , "default" ] ,
26
26
"optionThemePath" : [ "grey" , "_950_150" , "default" ]
27
27
}
28
28
] ;
@@ -39,34 +39,26 @@ export function getColorDecisions(
39
39
return {
40
40
"background": {
41
41
"default": {
42
- "normal": {
43
- "grey": {
44
- "hover": colorOptions.grey._1000_50.hover,
45
- "default": colorOptions.grey._1000_50.default
46
- }
42
+ "grey": {
43
+ "hover": colorOptions.grey._1000_50.hover,
44
+ "default": colorOptions.grey._1000_50.default
47
45
}
48
46
},
49
47
"altRaised": {
50
- "normal": {
51
- "grey": {
52
- "hover": colorOptions.grey._975_100.hover
53
- }
48
+ "grey": {
49
+ "hover": colorOptions.grey._975_100.hover
54
50
}
55
51
},
56
52
"contrastOverlap": {
57
- "normal": {
58
- "grey": {
59
- "default": colorOptions.grey._950_150.default
60
- }
53
+ "grey": {
54
+ "default": colorOptions.grey._950_150.default
61
55
}
62
56
}
63
57
},
64
58
"border": {
65
- "action": {
66
- "low": {
67
- "orangeTerreBattue": {
68
- "default": colorOptions.orangeTerreBattue._850_200.default
69
- }
59
+ "actionLow": {
60
+ "orangeTerreBattue": {
61
+ "default": colorOptions.orangeTerreBattue._850_200.default
70
62
}
71
63
}
72
64
}
@@ -75,6 +67,6 @@ export function getColorDecisions(
75
67
76
68
const got = generateGetColorDecisionsTsCode ( input ) ;
77
69
78
- assert ( got === expected ) ;
70
+ assert ( got === expected , "xxxx::" ) ;
79
71
80
72
console . log ( "PASS" ) ;
0 commit comments