(node, scrollLeft)
| 1394 | |
| 1395 | // smoke tests for horizontal scrolling |
| 1396 | function scrollNodeToHorizontal(node, scrollLeft) { |
| 1397 | if (node === window) { |
| 1398 | window.scroll(scrollLeft, 0); |
| 1399 | } else { |
| 1400 | // eslint-disable-next-line no-param-reassign |
| 1401 | node.scrollLeft = scrollLeft; |
| 1402 | } |
| 1403 | const event = document.createEvent('Event'); |
| 1404 | event.initEvent('scroll', false, false); |
| 1405 | node.dispatchEvent(event); |
| 1406 | } |
| 1407 | |
| 1408 | describe('<Waypoint> Horizontal', () => { |
| 1409 | let props; |
no outgoing calls
no test coverage detected
searching dependent graphs…