UNPKG

json-schema-faker

Version:
14 lines (10 loc) 307 B
import { expect } from 'chai'; import numberType from '../../../src/types/number'; /* global describe, it */ describe('Number Generator', () => { it('should return number with a fractional part', () => { const n = numberType({}); const m = Math.floor(n); expect(n).not.to.eql(m); }); });