aboutsummaryrefslogtreecommitdiff
path: root/test
AgeCommit message (Collapse)AuthorFilesLines
2015-07-07[refactor] [dist] Allow for node to require individual locales ( to avoid ↵Marak1-2/+2
the default behavior of requiring all locale data. #125 #167
2015-07-06[merge] Commerce implementationMarak2-1/+115
2015-07-06[merge] country_code branchMarak1-4/+14
2015-07-05[fix] [minor] TypoMarak1-5/+8
2015-07-05[merge] [api] Add name.jobTitleMarak3-1/+20
2015-07-05Merge pull request #219 from jrfferreira/masterMarak1-0/+7
[api] Add a MAC Address generator
2015-07-04[api] [fix] Remove tabs from paragraph generation. Make paragraph separator ↵Marak1-2/+2
configurable. Closes #223
2015-06-13Fixing method name references to mac generator in testsJoão Ferreira1-1/+1
2015-06-13Including a MAC Address generatorJoão Ferreira1-0/+7
2015-06-11Merge pull request #164 from dmamills/masterMarak1-0/+38
[api] Add internet.url()
2015-06-11add faker.name.title() testsIvan Velasquez1-0/+12
2015-06-11resolves #176 Add random boolean generatorAlan Shaw1-0/+7
2015-06-10Adding test for negative minimum and max = 0Phil Greenberg1-0/+5
2015-06-10Fixing bug in random.number when max = 0Phil Greenberg1-1/+17
Also added tests for random.array_element
2015-06-04Fix issue Marak/faker.js#214 with shuffle()Sherman Mui1-0/+10
Add a dubious spec.
2015-04-11Fix random number unit test specEvan Sharp1-1/+1
Updated the "returns a random number given a maximum value as Object" to include the max value in the check (changed `<` to `<=`)
2015-03-12Adjusted the random test on an object as the random number generator is ↵rob.scott1-1/+1
inclusive of the max number, so sometimes the test would fail.
2015-03-10Add Commerce functions from https://github.com/stympy/faker into javascriptrob.scott2-1/+115
2015-01-25added protocol() and url()Daniel Mills1-0/+38
2014-12-22Added unit test for uuid generatorJames Drew1-0/+8
2014-12-09Add new jobTitle function to name object.JKillian3-1/+23
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.
2014-11-28added tests and corrected the number functionMichał Kawalec1-1/+34
2014-11-20Fixed male/female split check on findName()Ari Gesher1-0/+6
(It was failing on locales that use a fallback)
2014-11-12Have past, future and recent return random datesDaniel Perez Alvarez1-1/+9
Functions `past` and `future` only returned dates EXACTLY N YEARS before or after the reference date. Function `recent` only returned dates EXACTLY N DAYS before the reference date. For example, `faker.date.past(1)` would return either *Nov 12, 2014*, or *Nov 12, 2013*, but nothing in-between. Also, now you can call those functions without parameter, and N will take the default value of `1`.
2014-10-27adds ability to get random country code and tests.FotoVerite1-4/+14
2014-09-22[api] [minor] Added default values for more methods. Cleaned up image ↵Marak1-2/+2
module. Use a less specific regex for usernames.
2014-09-21[api] Removed tree module. This code should be in a separate project.Marak1-108/+0
2014-09-21[api] Added hacker module. Added default values for all methods. Cleaned up ↵Marak1-23/+0
errant methods. Added mustache helper.
2014-09-17[feature] - add faker for currencyMQuy2-7/+17
2014-09-16[api] Add ability to generate contextual data for user names and emails. #68Marak1-8/+6
2014-09-15[tests] [fix] Set locale back to en to make phone test passMarak1-0/+1
2014-09-15[api] [refactor] Removed definitions.js file. All data definitions are now ↵Marak4-112/+50
loaded from localized data sets, en is default locale. #116
2014-09-14[refactor] [major] Renamed variable names for consistency Closes #5 Marak12-300/+304
[refactor [major] Moved all errant methods from random.js to individual modules. Methods in random.js were causing unnecessary code complication.
2014-09-13[api] Added Internet.userAgent #16Marak1-0/+7
2014-09-13[api] Added basic financial generators Closes #32Marak2-0/+210
Merge https://github.com/josefsalyer/Faker.js
2014-09-11[api] [refactor] Random.number is now powered by node-mersenne instead of ↵Marak2-13/+1
Math.random() #48
2014-09-11[api] [refactor] Replaced Math.Random calls with Random.number. Random ↵Marak3-20/+24
ranges are now inclusive of max instead of exclusive. #88 #48
2014-09-10[fix] Do not serialize Dates from Date.random APIs. Dates are now returned ↵Marak1-7/+7
as Date objects. #93
2014-09-09Fix random numberMarak1-2/+2
2014-09-09add faker for phone codeMQuy1-0/+7
Conflicts: lib/definitions.js
2014-09-08Fix: faker.Lorem.sentence() was ignoring the 'range' parameter.Foster Hersey2-1/+16
Conflicts: lib/lorem.js
2014-07-23Updates to switch changes over to using 2 args to support min/maxAnthony van der Hoorn1-4/+3
2014-07-22Bug fixes and latest version.FotoVerite2-1/+31
2014-07-22Merge pull request #86 from northernv/fix-future-dateMatthew Bergman1-0/+8
Ensure Date.future returns a date in the future.
2014-07-22Merge pull request #90 from edshadi/random-number-rangeMatthew Bergman1-0/+22
random number now accepts a range array [min, max].
2014-06-16random number now accepts a range array [min, max].Ed Shadi1-0/+22
2014-06-16added hours in date.recent. Currently the code returns date in past minutes. ↵Ed Shadi1-1/+1
random days could return 0 so modified the test to reflect <= current date.
2014-05-21Ensure Date.future returns a date in the future.Shane A. Stillwell1-0/+8
2014-05-17Moving to major new version for change of package name for uppercase to ↵FotoVerite12-343/+343
lowercase.
2014-05-17Adds female and male name methods. #NOTE they will return a random name and ↵FotoVerite1-0/+22
working as intended.