Skip to content

Commit

Permalink
fix test color validate to hex
Browse files Browse the repository at this point in the history
  • Loading branch information
markov00 committed Sep 27, 2023
1 parent b492532 commit e662e29
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ describe('Color mapping - color generation', () => {
categories: ['cat1', 'cat2', 'cat3', 'cat4'],
}
);
expect(colorFactory('cat1')).toBe('red');
expect(colorFactory('cat2')).toBe('blue');
expect(colorFactory('cat1')).toBe('#ff0000');
expect(colorFactory('cat2')).toBe('#0000ff');
// return a palette color only up to the max number of color in the palette
expect(colorFactory('cat3')).toBe(NEUTRAL_COLOR_LIGHT[DEFAULT_NEUTRAL_PALETTE_INDEX]);
expect(colorFactory('cat4')).toBe(NEUTRAL_COLOR_LIGHT[DEFAULT_NEUTRAL_PALETTE_INDEX]);
Expand Down

0 comments on commit e662e29

Please sign in to comment.