From 3f99cb44425c2fc1be8dfb74abbaf01a436b0646 Mon Sep 17 00:00:00 2001 From: Jacob Goense Date: Sun, 1 Jan 2017 07:39:47 -0500 Subject: 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. --- lib/commerce.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') 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 || ''; -- cgit v1.2.3