Created Tag component test

This commit is contained in:
Alejandro Celaya
2022-01-08 12:41:32 +01:00
parent aca9218f9d
commit 12f61d03be
3 changed files with 104 additions and 1 deletions

View File

@@ -1,6 +1,7 @@
import { Mock } from 'ts-mockery';
import ColorGenerator from '../../../src/utils/services/ColorGenerator';
import LocalStorage from '../../../src/utils/services/LocalStorage';
import { MAIN_COLOR } from '../../../src/utils/theme';
describe('ColorGenerator', () => {
let colorGenerator: ColorGenerator;
@@ -47,7 +48,7 @@ describe('ColorGenerator', () => {
describe('isColorLightForKey', () => {
it.each([
[ '#4696e5', true ], // Shlink brand color
[ MAIN_COLOR, true ],
[ '#8A661C', false ],
[ '#F7BE05', true ],
[ '#5A02D8', false ],