MCPcopy
hub / github.com/darkreader/darkreader / color.tests.ts

File color.tests.ts

tests/unit/utils/color.tests.ts:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1import type {HSLA} from '../../../src/utils/color';
2import {lowerCalcExpression, parse, hslToRGB, rgbToHSL, rgbToString, rgbToHexString, hslToString, getRGBValues} from '../../../src/utils/color';
3
4test('Color parsing', () => {

Callers

nothing calls this directly

Calls 9

parseFunction · 0.90
rgbToStringFunction · 0.90
rgbToHexStringFunction · 0.90
hslToStringFunction · 0.90
hslToRGBFunction · 0.90
rgbToHSLFunction · 0.90
lowerCalcExpressionFunction · 0.90
getRGBValuesFunction · 0.90
roundFunction · 0.85

Tested by

no test coverage detected