Skip to content

Commit 9ec7433

Browse files
committed
Add unit test to cover the new colors generation
1 parent 3a815e6 commit 9ec7433

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/plugins/charts/public/services/colors/colors_palette.test.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,4 +90,8 @@ describe('Color Palette', () => {
9090
it('should create new darker colors when input is greater than 72', () => {
9191
expect(createColorPalette(num3)[72]).not.toEqual(seedColors[0]);
9292
});
93+
94+
it('should create new colors and convert them correctly', () => {
95+
expect(createColorPalette(num3)[72]).toEqual('#404ABF');
96+
});
9397
});

0 commit comments

Comments
 (0)