From 3ee7219df7a2d5353fe171b2c30b864d5e0c3a31 Mon Sep 17 00:00:00 2001 From: JKillian Date: Tue, 9 Dec 2014 16:22:03 -0500 Subject: Add new jobTitle function to name object. I had to make a few concessions when doing this. Ideally I would have added this function under the 'company' module, but I chose to add it to the 'name' object instead, as the data happened to already exist in the locale files under 'name.title'. However, I felt that the field names in the locale files were confusing, so their wrappers in the name module are renamed for clarity. For example, faker.name.jobArea() returns a random element from locale.name.title.level. In my opinion, 'jobArea' was a much better description of the data than 'level'. Finally, fixed a bug in one unit test which didn't restore a function to its original state after watching it. --- test/all.functional.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/all.functional.js') diff --git a/test/all.functional.js b/test/all.functional.js index 1a2e836a..0aefec5f 100644 --- a/test/all.functional.js +++ b/test/all.functional.js @@ -18,7 +18,7 @@ var modules = { lorem: ['words', 'sentence', 'sentences', 'paragraph', 'paragraphs'], - name: ['firstName', 'lastName', 'findName'], + name: ['firstName', 'lastName', 'findName', 'jobTitle'], phone: ['phoneNumber'], -- cgit v1.2.3 From 3418839d8b818485331ef7931dea1de26c751da2 Mon Sep 17 00:00:00 2001 From: "rob.scott" Date: Tue, 10 Mar 2015 13:57:02 +0000 Subject: Add Commerce functions from https://github.com/stympy/faker into javascript --- test/all.functional.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'test/all.functional.js') diff --git a/test/all.functional.js b/test/all.functional.js index 1a2e836a..966987e3 100644 --- a/test/all.functional.js +++ b/test/all.functional.js @@ -22,7 +22,9 @@ var modules = { phone: ['phoneNumber'], - finance: ['account', 'accountName', 'mask', 'amount', 'transactionType', 'currencyCode', 'currencyName', 'currencySymbol'] + finance: ['account', 'accountName', 'mask', 'amount', 'transactionType', 'currencyCode', 'currencyName', 'currencySymbol'], + + commerce: ['color', 'department', 'productName', 'price'] }; describe("functional tests", function () { -- cgit v1.2.3 From eaf5c65cfae0a6636555884c18e6c955fae7887e Mon Sep 17 00:00:00 2001 From: Marak Date: Tue, 7 Jul 2015 16:22:50 -0700 Subject: [refactor] [dist] Allow for node to require individual locales ( to avoid the default behavior of requiring all locale data. #125 #167 --- test/all.functional.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/all.functional.js') diff --git a/test/all.functional.js b/test/all.functional.js index 72ca2eeb..605aad2a 100644 --- a/test/all.functional.js +++ b/test/all.functional.js @@ -22,9 +22,9 @@ var modules = { phone: ['phoneNumber'], - finance: ['account', 'accountName', 'mask', 'amount', 'transactionType', 'currencyCode', 'currencyName', 'currencySymbol'], + finance: ['account', 'accountName', 'mask', 'amount', 'transactionType', 'currencyCode', 'currencyName', 'currencySymbol'] - commerce: ['color', 'department', 'productName', 'price'] +// commerce: ['color', 'department', 'productName', 'price'] }; describe("functional tests", function () { -- cgit v1.2.3