1 import tinycolor from 'tinycolor2';
3 import genButtonShades from './gen-button-shades';
5 describe('genButtonShades', () => {
6 it('generates the necessary shades for a button', () => {
7 const output = genButtonShades(tinycolor('#6d4aff'), true);
9 expect(output.map((c) => c.toHexString())).toEqual([
19 it("generates the necessary button shades when the color's hue is between 30 & 60", () => {
20 const output = genButtonShades(tinycolor('#ff9900'), true);
22 expect(output.map((c) => c.toHexString())).toEqual([
32 it("generates the necessary button shades when the color's saturation is less than or equal to 30", () => {
33 const output = genButtonShades(tinycolor('#eae7e4'), true);
35 expect(output.map((c) => c.toHexString())).toEqual([