aboutsummaryrefslogtreecommitdiff
path: root/test/name.unit.js
AgeCommit message (Collapse)AuthorFilesLines
2022-01-21chore(test): migrate to vitest (#235)Shinigami1-282/+0
2022-01-18feat!: support tree-shaking (#152)Shinigami1-1/+1
2022-01-13chore: format tests (#67)Shinigami1-59/+67
2021-03-22Linting fixes for `./test`Marak1-211/+211
2021-03-03Issue 1114: New datatype moduleLBuerstmayr1-10/+10
Current status: - moved number(), float(), hexaDecimal(), boolean(), uuid() from random to datatype - moved respective test from random.unit to datatype.unit - tests of moved methods in random now check if DeprecationWarning is printed and respective method in datatype module is called - adapted all lib files that use moved methods (mostly number) - adapted tests of respective files to spy on the correct method - adapted README in order to promote usage of method that logs a DeprecationWarning
2020-10-04Change deprecated assert.equalCarlos Carvalho1-12/+12
2020-08-27Merge pull request #713 from jonny64/masterMarak1-0/+45
locale ru: add name.middleName with russian gender for russian passport (отчество)
2020-08-23Merge pull request #684 from blslade-neumont/dev-gender-stringMarak1-0/+23
Allowed gender passed to name.firstName(gender) to be a string
2018-10-27[test] [minor] Improving test coverageMarak1-1/+6
2018-10-16add middleName testsMaksim Gruzdev1-0/+45
2018-10-15Improve unit tests for name.findName() and name.prefix()Tito Nobre1-0/+95
2018-08-15Add tests to ensure random gender-specific first name worksBrandon Slade1-0/+23
2016-03-20Update tests to confirm name suffix is correctLogan Allred1-0/+3
2015-07-08[api] [refactor] Rename `array_element` and `object_element` to camelCase. ↵Marak1-3/+3
Set default max random number to 99999. Added default arguments to some methods.
2015-07-05[fix] [minor] TypoMarak1-5/+8
2015-07-05[merge] [api] Add name.jobTitleMarak1-0/+18
2015-06-11add faker.name.title() testsIvan Velasquez1-0/+12
2014-12-09Add new jobTitle function to name object.JKillian1-0/+21
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-20Fixed male/female split check on findName()Ari Gesher1-0/+6
(It was failing on locales that use a fallback)
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-14[refactor] [major] Renamed variable names for consistency Closes #5 Marak1-15/+15
[refactor [major] Moved all errant methods from random.js to individual modules. Methods in random.js were causing unnecessary code complication.
2014-05-17Moving to major new version for change of package name for uppercase to ↵FotoVerite1-22/+22
lowercase.
2014-05-17Adds female and male name methods. #NOTE they will return a random name and ↵FotoVerite1-0/+22
working as intended.
2014-02-19removes gender tests.FotoVerite1-26/+0
2013-11-05My take on separating male and female names. Tests passing, Coverage restored.cyanos31-0/+28
2013-01-07allowing all tests to run in browserBryan Donovan1-3/+5
2013-01-07phone number testsBryan Donovan1-1/+0
2013-01-07Completely removing aliased lower-case functionsBryan Donovan1-5/+5
2013-01-07namespacing with 'Faker'Bryan Donovan1-16/+16
2013-01-07lower-casing modulesBryan Donovan1-6/+6
2013-01-05refactoring to use random.jsBryan Donovan1-25/+21
2013-01-05100% coverage on company.jsBryan Donovan1-11/+11
2013-01-05adding test/name.unit.jsBryan Donovan1-0/+66