json-schema-faker
Version:
JSON-Schema + fake data generators
14 lines (10 loc) • 307 B
JavaScript
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);
});
});