diff options
| author | Jacob Goense <[email protected]> | 2017-01-01 07:39:47 -0500 |
|---|---|---|
| committer | GitHub <[email protected]> | 2017-01-01 07:39:47 -0500 |
| commit | 3f99cb44425c2fc1be8dfb74abbaf01a436b0646 (patch) | |
| tree | 0bc2b7dc26a83aa2774abd0bfdf06214ea75d8ee /lib | |
| parent | f1b446fb69772d820167d68acda2b10c92aed3b4 (diff) | |
| download | faker-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.js | 2 |
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 || ''; |
