mirror of
https://github.com/trezor/trezor-suite.git
synced 2026-03-02 21:45:14 +01:00
12 lines
380 B
TypeScript
12 lines
380 B
TypeScript
import { getWeakRandomNumberInRange } from '../src';
|
|
|
|
describe(getWeakRandomNumberInRange.name, () => {
|
|
it('returns value in range', () => {
|
|
for (let i = 0; i < 10_000; i++) {
|
|
const result = getWeakRandomNumberInRange(0, 100);
|
|
expect(result).toBeGreaterThanOrEqual(0);
|
|
expect(result).toBeLessThanOrEqual(100);
|
|
}
|
|
});
|
|
});
|