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 properly calculate values", () => {
expect(Scrollbar.computeThumbOffset(100, 50, 200, 100, 50)).toBe(25);
expect(Scrollbar.computeThumbOffset(100, 50, 200, 100, 0)).toBe(0);
expect(Scrollbar.computeThumbOffset(0, 0, 0, 0, 0)).toBe(0);
});
});
it("should properly calculate values", () => {
expect(Scrollbar.computeThumbOffset(100, 50, 200, 100, 50)).toBe(25);
expect(Scrollbar.computeThumbOffset(100, 50, 200, 100, 0)).toBe(0);
expect(Scrollbar.computeThumbOffset(0, 0, 0, 0, 0)).toBe(0);
});
});
it("should properly calculate values", () => {
expect(Scrollbar.computeThumbOffset(100, 50, 200, 100, 50)).toBe(25);
expect(Scrollbar.computeThumbOffset(100, 50, 200, 100, 0)).toBe(0);
expect(Scrollbar.computeThumbOffset(0, 0, 0, 0, 0)).toBe(0);
});
});