MCPcopy
hub / github.com/omgovich/colord / check

Function check

tests/plugins.test.ts:99–103  ·  view source on GitHub ↗
(type: HarmonyType | undefined, input: string, expected: string[])

Source from the content-addressed store, hash-verified

97 extend([harmoniesPlugin]);
98
99 const check = (type: HarmonyType | undefined, input: string, expected: string[]) => {
100 const harmonies = colord(input).harmonies(type);
101 const hexes = harmonies.map((value) => value.toHex());
102 return expect(hexes).toEqual(expected);
103 };
104
105 it("Generates harmony colors", () => {
106 check(undefined, "#ff0000", ["#ff0000", "#00ffff"]); // "complementary"

Callers 1

plugins.test.tsFile · 0.85

Calls 3

colordFunction · 0.90
harmoniesMethod · 0.80
toHexMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…