(rect, node)
| 6 | const makeRect = (rect) => ({ top: 0, bottom: 1, left: 0, right: 1, ...rect }) |
| 7 | |
| 8 | const 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 | |
| 16 | describe('doesNodeContainClick', () => { |
| 17 | describe('nil arguments', () => { |
no test coverage detected
searching dependent graphs…