MCPcopy
hub / github.com/ryanseddon/react-frame-component / getColour

Function getColour

test/Frame.spec.jsx:146–147  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

144 const elem = container.querySelector('p');
145 const body = iframe.contentDocument.body;
146 const getColour = (e) =>
147 window.getComputedStyle(e, null).getPropertyValue('color');
148 expect(getColour(elem)).toBe('rgb(0, 0, 0)');
149 expect(getColour(body.querySelector('p'))).toBe('rgb(255, 0, 0)');
150 }}

Callers 1

Frame.spec.jsxFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected