Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
beforeEach(() => {
// create Dom indicator
const indicatorWrapper = document.createElement('div')
const indicatorEl = document.createElement('div')
indicatorWrapper.appendChild(indicatorEl)
// mock clientHeight and clientWidth
mockDomClient(indicatorWrapper, { height: 100, width: 100 })
indicatorOptions = {
wrapper: indicatorWrapper,
direction: 'vertical' as Direction,
fade: true,
interactive: true
}
})