diff options
| -rw-r--r-- | Faker.js | 1 | ||||
| -rw-r--r-- | tests/browser_test.html | 5 |
2 files changed, 6 insertions, 0 deletions
@@ -313,6 +313,7 @@ Faker.Finance.mask = function(length, parens, elipsis){ } //min and max take in minimum and maximum amounts, dec is the decimal place you want rounded to, symbol is $, €, £, etc +//NOTE: this returns a string representation of the value, if you want a number use parseFloat and no symbol Faker.Finance.amount = function(min, max, dec, symbol){ if(!min) min = 1 diff --git a/tests/browser_test.html b/tests/browser_test.html index 91511cdf..5b1fda10 100644 --- a/tests/browser_test.html +++ b/tests/browser_test.html @@ -28,6 +28,11 @@ }; } document.write(JSON.stringify(card)); + + //added tests for financial pieces + + + </script> </head> <body> |
