aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJacob Goense <[email protected]>2017-01-01 07:39:47 -0500
committerGitHub <[email protected]>2017-01-01 07:39:47 -0500
commit3f99cb44425c2fc1be8dfb74abbaf01a436b0646 (patch)
tree0bc2b7dc26a83aa2774abd0bfdf06214ea75d8ee /lib
parentf1b446fb69772d820167d68acda2b10c92aed3b4 (diff)
downloadfaker-3f99cb44425c2fc1be8dfb74abbaf01a436b0646.tar.xz
faker-3f99cb44425c2fc1be8dfb74abbaf01a436b0646.zip
Set default minimum price to 1
According to the test the minimum amount should be greater than 0 when not passing arguments. This failed about 1 in 1000 times.
Diffstat (limited to 'lib')
-rw-r--r--lib/commerce.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/commerce.js b/lib/commerce.js
index 306cf337..4de11ef5 100644
--- a/lib/commerce.js
+++ b/lib/commerce.js
@@ -44,7 +44,7 @@ var Commerce = function (faker) {
* @param {string} symbol
*/
self.price = function(min, max, dec, symbol) {
- min = min || 0;
+ min = min || 1;
max = max || 1000;
dec = dec || 2;
symbol = symbol || '';