UNPKG

shamjs

Version:
20 lines (18 loc) 527 B
var expect = require('expect.js') var sham = require('../../lib/index') var util = require('../../lib/util/test') var gabble = util.gabble describe('random/time.js', function () { it('time', function () { gabble(function () { expect(sham.r.time()).match(/^\d+$/) }) }) it('time(min, max)', function () { gabble(function () { expect( sham.r.time(1492761697340, 1492761872768) ).to.within(1492761697340, 1492761872768) }) }) })