This repository has been archived on 2024-02-08. You can view files and clone it, but cannot push or open issues or pull requests.
frontend/src/helpers/color/colorIsDark.test.js
kolaente b12869e509
All checks were successful
continuous-integration/drone/push Build is passing
Fix labels randomly changing color after saving
2021-01-17 11:51:07 +01:00

17 lines
324 B
JavaScript

import {colorIsDark} from './colorIsDark'
test('dark color', () => {
const color = '#111111'
expect(colorIsDark(color)).toBe(false)
})
test('light color', () => {
const color = '#DDDDDD'
expect(colorIsDark(color)).toBe(true)
})
test('default dark', () => {
const color = ''
expect(colorIsDark(color)).toBe(true)
})