MCPcopy
hub / github.com/Semantic-Org/Semantic-UI-React / makeNode

Function makeNode

test/specs/lib/doesNodeContainClick-test.js:8–14  ·  view source on GitHub ↗
(rect, node)

Source from the content-addressed store, hash-verified

6const makeRect = (rect) => ({ top: 0, bottom: 1, left: 0, right: 1, ...rect })
7
8const makeNode = (rect, node) => ({
9 contains: sandbox.spy(),
10 offsetWidth: 1,
11 offsetHeight: 1,
12 getClientRects: sandbox.spy(() => ({ length: 1, 0: makeRect(rect) })),
13 ...node,
14})
15
16describe('doesNodeContainClick', () => {
17 describe('nil arguments', () => {

Callers 1

Calls 1

makeRectFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…