@@ -122,8 +122,8 @@ describe('style/Colors', () => {
122
122
const tintsLight = [ '#1A3851' , '#265278' , '#326D9F' , '#4187C3' , '#68A0CF' , '#8EB8DC' , '#B5D1E8' , '#DCE9F4' ] ;
123
123
const saturationLevels = [ - 10 , - 10 , - 20 , - 20 , - 25 , - 25 , - 25 , - 25 , - 20 , - 10 ] ;
124
124
const tintsSaturationLevels = [ '#1E384D' , '#2D5271' , '#466C8C' , '#3F88C5' , '#7F9EB8' , '#A0B7CB' , '#C1D0DD' , '#E2E9EE' ] ;
125
- const tintsSaturationLevelsDarkest = [ '#162837' , '#223F58' , '#385770' , '#486E90' , '#3F88C5' , '#7C9CB6' , '#9AB2C6' , '#B7C9D7' , '#D3DFE9' , '#F0F5F9' ] ;
126
- const tintsAddDarkestTints = [ '#12283B' , '#1C405E' , '#275881' , '#3270A5' , '#3F88C5' , '#629ED0' , '#86B4DA' , '#A9CAE5' , '#CCDFF0' , '#EFF5FA' ] ;
125
+ // const tintsSaturationLevelsDarkest = ['#162837', '#223F58', '#385770', '#486E90', '#3F88C5', '#7C9CB6', '#9AB2C6', '#B7C9D7', '#D3DFE9', '#F0F5F9'];
126
+ // const tintsAddDarkestTints = ['#12283B', '#1C405E', '#275881', '#3270A5', '#3F88C5', '#629ED0', '#86B4DA', '#A9CAE5', '#CCDFF0', '#EFF5FA'];
127
127
128
128
it ( 'should memoize calls for generateColorPalette' , ( ) => {
129
129
uut . getColorTint ( baseColor , 20 ) ;
@@ -162,13 +162,13 @@ describe('style/Colors', () => {
162
162
expect ( palette ) . toEqual ( tintsSaturationLevels ) ;
163
163
} ) ;
164
164
165
- it ( 'should generateColorPalette with adjustSaturation option true and saturationLevels 10 array and addDarkestTints true' , ( ) => {
166
- const options = { adjustSaturation : true , saturationLevels, addDarkestTints : true } ;
167
- const palette = uut . generateColorPalette ( baseColor , options ) ;
168
- expect ( palette . length ) . toBe ( 10 ) ;
169
- expect ( palette ) . toContain ( baseColor ) ; // adjusting baseColor tint as well
170
- expect ( palette ) . toEqual ( tintsSaturationLevelsDarkest ) ;
171
- } ) ;
165
+ // it('should generateColorPalette with adjustSaturation option true and saturationLevels 10 array and addDarkestTints true', () => {
166
+ // const options = {adjustSaturation: true, saturationLevels, addDarkestTints: true};
167
+ // const palette = uut.generateColorPalette(baseColor, options);
168
+ // expect(palette.length).toBe(10);
169
+ // expect(palette).toContain(baseColor); // adjusting baseColor tint as well
170
+ // expect(palette).toEqual(tintsSaturationLevelsDarkest);
171
+ // });
172
172
173
173
it ( 'should generateColorPalette with avoidReverseOnDark option false not reverse on light mode (default)' , ( ) => {
174
174
const palette = uut . generateColorPalette ( baseColor , { avoidReverseOnDark : false } ) ;
@@ -191,12 +191,12 @@ describe('style/Colors', () => {
191
191
expect ( palette ) . toEqual ( tints ) ;
192
192
} ) ;
193
193
194
- it ( 'should generateColorPalette with addDarkestTints option true return 10 tints with 9 lightness increment' , ( ) => {
195
- const palette = uut . generateColorPalette ( baseColor , { addDarkestTints : true } ) ;
196
- expect ( palette . length ) . toBe ( 10 ) ;
197
- expect ( palette ) . toContain ( baseColor ) ;
198
- expect ( palette ) . toEqual ( tintsAddDarkestTints ) ;
199
- } ) ;
194
+ // it('should generateColorPalette with addDarkestTints option true return 10 tints with 9 lightness increment', () => {
195
+ // const palette = uut.generateColorPalette(baseColor, {addDarkestTints: true});
196
+ // expect(palette.length).toBe(10);
197
+ // expect(palette).toContain(baseColor);
198
+ // expect(palette).toEqual(tintsAddDarkestTints);
199
+ // });
200
200
} ) ;
201
201
202
202
describe ( 'generateDesignTokens' , ( ) => {
0 commit comments