MCPcopy Index your code
hub / github.com/anomalyco/opencode / expectRgba

Function expectRgba

packages/opencode/test/cli/run/theme.test.ts:41–48  ·  view source on GitHub ↗
(color: unknown)

Source from the content-addressed store, hash-verified

39}
40
41function expectRgba(color: unknown) {
42 expect(color).toBeInstanceOf(RGBA)
43 if (!(color instanceof RGBA)) {
44 throw new Error("expected RGBA")
45 }
46
47 return color
48}
49
50function expectIndexed(color: unknown) {
51 const rgba = expectRgba(color)

Callers 2

expectIndexedFunction · 0.85
theme.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected