aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosef Salyer <[email protected]>2012-11-04 15:29:50 -0500
committerJosef Salyer <[email protected]>2012-11-04 15:29:50 -0500
commit13fd54d359d546501680a40ed0e26bd2e4c7c7b9 (patch)
tree8b460c5e6e7fb325096dbefa794a15be29a6b60d
parentbf4c6205ab8942a2f5a71dcb3eadd018e6aa0a1f (diff)
downloadfaker-13fd54d359d546501680a40ed0e26bd2e4c7c7b9.tar.xz
faker-13fd54d359d546501680a40ed0e26bd2e4c7c7b9.zip
added some additional notes about the amount helper
-rw-r--r--Faker.js1
-rw-r--r--tests/browser_test.html5
2 files changed, 6 insertions, 0 deletions
diff --git a/Faker.js b/Faker.js
index 674e7207..068c87b4 100644
--- a/Faker.js
+++ b/Faker.js
@@ -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>