How to use the react-scrollbars-custom.Scrollbar.prototype function in react-scrollbars-custom

To help you get started, we’ve selected a few react-scrollbars-custom examples, based on popular ways it is used in public projects.

github xobotyi / react-scrollbars-custom / tests / Scrollbars / scrolling.js View on Github external
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();
                        });
            });
github xobotyi / react-scrollbars-custom / tests / Scrollbars / scrolling.js View on Github external
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();
                        });
            });