diff options
| author | Evan Sharp <[email protected]> | 2015-03-17 08:58:46 -0400 |
|---|---|---|
| committer | Marak <[email protected]> | 2015-04-11 22:05:47 +0200 |
| commit | 22488b7b678e00b7db591f4bcd91dbdd57ed450e (patch) | |
| tree | 98786e5668bb07359b339e88d9e168609c48960a | |
| parent | a39082f6f49fb326111bc2a0d9014c9dc65fe1fa (diff) | |
| download | faker-22488b7b678e00b7db591f4bcd91dbdd57ed450e.tar.xz faker-22488b7b678e00b7db591f4bcd91dbdd57ed450e.zip | |
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 `<=`)
| -rw-r--r-- | test/random.unit.js | 2 |
1 files changed, 1 insertions, 1 deletions
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() { |
