Skip to content

Commit

Permalink
Adjusted the random test on an object as the random number generator …
Browse files Browse the repository at this point in the history
…is inclusive of the max number, so sometimes the test would fail.
  • Loading branch information
robscotts4rb committed Mar 12, 2015
1 parent 6db5cda commit b6629e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/random.unit.js
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit b6629e4

Please sign in to comment.