import toFloat from '../../src/util/toFloat'; describe('util / toFloat', () => { it('should reduce a randomFloat to two decimals', () => { const PI: number = toFloat(Math.PI); expect(PI.toString().length).toBe(4); }); });