()
| 150 | |
| 151 | /** Installs the layout model (see above); it is restored after each test. */ |
| 152 | export function mockLayout() { |
| 153 | if (originalGetBoundingClientRect === null) { |
| 154 | originalGetBoundingClientRect = Element.prototype.getBoundingClientRect; |
| 155 | Element.prototype.getBoundingClientRect = getBoundingClientRect; |
| 156 | } |
| 157 | } |
| 158 | |
| 159 | export type ScrollContainer = { |
| 160 | /** The scrollable container (to pass as `scrollElement`). */ |
no outgoing calls
no test coverage detected