@@ -6,23 +6,23 @@ console.log(`Running test ${__filename}`);
66
77const input : ColorDecision [ ] = [
88 {
9- "themePath" : [ "background" , "default" , "normal" , " grey", "hover" ] ,
9+ "themePath" : [ "background" , "default" , "grey" , "hover" ] ,
1010 "optionThemePath" : [ "grey" , "_1000_50" , "hover" ]
1111 } ,
1212 {
13- "themePath" : [ "background" , "default" , "normal" , " grey", "default" ] ,
13+ "themePath" : [ "background" , "default" , "grey" , "default" ] ,
1414 "optionThemePath" : [ "grey" , "_1000_50" , "default" ]
1515 } ,
1616 {
17- "themePath" : [ "border" , "action" , "low ", "orangeTerreBattue" , "default" ] ,
17+ "themePath" : [ "border" , "actionLow " , "orangeTerreBattue" , "default" ] ,
1818 "optionThemePath" : [ "orangeTerreBattue" , "_850_200" , "default" ]
1919 } ,
2020 {
21- "themePath" : [ "background" , "altRaised" , "normal" , " grey", "hover" ] ,
21+ "themePath" : [ "background" , "altRaised" , "grey" , "hover" ] ,
2222 "optionThemePath" : [ "grey" , "_975_100" , "hover" ]
2323 } ,
2424 {
25- "themePath" : [ "background" , "contrastOverlap" , "normal" , " grey", "default" ] ,
25+ "themePath" : [ "background" , "contrastOverlap" , "grey" , "default" ] ,
2626 "optionThemePath" : [ "grey" , "_950_150" , "default" ]
2727 }
2828] ;
@@ -39,34 +39,26 @@ export function getColorDecisions(
3939 return {
4040 "background": {
4141 "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
4745 }
4846 },
4947 "altRaised": {
50- "normal": {
51- "grey": {
52- "hover": colorOptions.grey._975_100.hover
53- }
48+ "grey": {
49+ "hover": colorOptions.grey._975_100.hover
5450 }
5551 },
5652 "contrastOverlap": {
57- "normal": {
58- "grey": {
59- "default": colorOptions.grey._950_150.default
60- }
53+ "grey": {
54+ "default": colorOptions.grey._950_150.default
6155 }
6256 }
6357 },
6458 "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
7062 }
7163 }
7264 }
@@ -75,6 +67,6 @@ export function getColorDecisions(
7567
7668const got = generateGetColorDecisionsTsCode ( input ) ;
7769
78- assert ( got === expected ) ;
70+ assert ( got === expected , "xxxx::" ) ;
7971
8072console . log ( "PASS" ) ;
0 commit comments