Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function () {
const updateSpy = sinon.spy(Scrollbar.prototype, 'update');
const renderSpy = sinon.spy(Scrollbar.prototype, 'render');
this.scrollTop = 50;
expect(updateSpy.callCount).toBe(1);
expect(renderSpy.callCount).toBe(0);
updateSpy.restore();
renderSpy.restore();
done();
});
});
function () {
const updateSpy = sinon.spy(Scrollbar.prototype, 'update');
const renderSpy = sinon.spy(Scrollbar.prototype, 'render');
this.scrollTop = 50;
expect(updateSpy.callCount).toBe(1);
expect(renderSpy.callCount).toBe(0);
updateSpy.restore();
renderSpy.restore();
done();
});
});