Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
it('should proxy properties to BScroll instance', () => {
// given when
pullup = new PullUp(bscroll)
// then
expect(bscroll.proxy).toBeCalledWith([
{
key: 'finishPullUp',
sourceKey: 'plugins.pullUpLoad.finish'
},
{
key: 'openPullUp',
sourceKey: 'plugins.pullUpLoad.open'
},
{
key: 'closePullUp',
sourceKey: 'plugins.pullUpLoad.close'
}
])
})
beforeEach(() => {
// given
bscroll.options.pullUpLoad = { threshold: THRESHOLD }
pullup = new PullUp(bscroll)
bscroll.on('pullingUp', pullingUpHandler)
})
beforeEach(() => {
// given
bscroll.options.pullUpLoad = { threshold: THRESHOLD }
pullup = new PullUp(bscroll)
bscroll.on('pullingUp', pullingUpHandler)
})
beforeEach(() => {
// given
bscroll.options.pullUpLoad = { threshold: THRESHOLD }
pullup = new PullUp(bscroll)
bscroll.on('pullingUp', pullingUpHandler)
})