react-carousel-query
Version:
A infinite carousel component made with react that handles the pagination for you.
11 lines (9 loc) • 331 B
JavaScript
const {randomU32} = require('../randomU32');
test('works', () => {
for (let i = 0; i < 1000; i++) {
const min = Math.round(Math.random() * 0xFFFFFF);
const max = min + Math.round(Math.random() * 0xFFFFFF);
const num = randomU32(min, max);
expect(num >= min && num <= max).toBe(true);
}
});