aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorFotoVerite <[email protected]>2013-06-12 01:31:21 -0400
committerFotoVerite <[email protected]>2013-06-12 01:31:21 -0400
commitd3d5ac2042851bd17fe29a7345ebb2f084c4b691 (patch)
tree0d441e086026afb798313134fe2d30f94abaf0e3 /examples
parent97ef5dd3e60a9fcb1c44b471ab0ea0e4eb529dc2 (diff)
parentcce5d927e7e847c780e828972c92113d4cb7199f (diff)
downloadfaker-d3d5ac2042851bd17fe29a7345ebb2f084c4b691.tar.xz
faker-d3d5ac2042851bd17fe29a7345ebb2f084c4b691.zip
[util] merged in chrisocast changes, updated build and version.
Diffstat (limited to 'examples')
-rw-r--r--examples/js/Faker.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/examples/js/Faker.js b/examples/js/Faker.js
index 36abae30..c3b21001 100644
--- a/examples/js/Faker.js
+++ b/examples/js/Faker.js
@@ -17,7 +17,7 @@ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
-/*************** AUTOGENERATED @ 1371014758626 ***************
+/*************** AUTOGENERATED @ 1371014966634 ***************
WARNING: THIS FILE WAS AUTOGENERATED BY THE FAKER BUILD SCRIPT
MODIFYING THIS FILE IS FINE, BUT YOU REALLY SHOULD BE MODIFYING
THE LIBRARY DIRECTLY AND REGENERATING THIS FILE USING BUILD.js!!!!
@@ -239,11 +239,12 @@ Faker.Lorem.words = function (num) {
return Helpers.shuffle(definitions.lorem).slice(0, num);
};
-Faker.Lorem.sentence = function (wordCount) {
+Faker.Lorem.sentence = function (wordCount, range) {
if (typeof wordCount == 'undefined') { wordCount = 3; }
+ if (typeof range == 'undefined') { range = 7; }
// strange issue with the node_min_test failing for captialize, please fix and add this back
- //return this.words(wordCount + Helpers.randomNumber(7)).join(' ').capitalize();
+ //return this.words(wordCount + Helpers.randomNumber(range)).join(' ').capitalize();
return lorem.words(wordCount + Faker.random.number(7)).join(' ');
};