From 22488b7b678e00b7db591f4bcd91dbdd57ed450e Mon Sep 17 00:00:00 2001 From: Evan Sharp Date: Tue, 17 Mar 2015 08:58:46 -0400 Subject: Fix random number unit test spec Updated the "returns a random number given a maximum value as Object" to include the max value in the check (changed `<` to `<=`) --- test/random.unit.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/random.unit.js b/test/random.unit.js index da1274fd..a67e42fd 100644 --- a/test/random.unit.js +++ b/test/random.unit.js @@ -17,7 +17,7 @@ describe("random.js", function () { it("returns a random number given a maximum value as Object", function() { var options = { max: 10 }; - assert.ok(faker.random.number(options) < options.max); + assert.ok(faker.random.number(options) <= options.max); }); it("returns a random number between a range", function() { -- cgit v1.2.3