diff options
| author | Josef Salyer <[email protected]> | 2012-11-04 15:29:50 -0500 |
|---|---|---|
| committer | Josef Salyer <[email protected]> | 2012-11-04 15:29:50 -0500 |
| commit | 13fd54d359d546501680a40ed0e26bd2e4c7c7b9 (patch) | |
| tree | 8b460c5e6e7fb325096dbefa794a15be29a6b60d | |
| parent | bf4c6205ab8942a2f5a71dcb3eadd018e6aa0a1f (diff) | |
| download | faker-13fd54d359d546501680a40ed0e26bd2e4c7c7b9.tar.xz faker-13fd54d359d546501680a40ed0e26bd2e4c7c7b9.zip | |
added some additional notes about the amount helper
| -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> |
