aboutsummaryrefslogtreecommitdiff
path: root/examples/node
diff options
context:
space:
mode:
authorJKillian <[email protected]>2014-12-09 16:22:03 -0500
committerJKillian <[email protected]>2014-12-09 16:22:03 -0500
commit3ee7219df7a2d5353fe171b2c30b864d5e0c3a31 (patch)
treeeaf72113fea2f2bcfc449477f33f58907ea7d8fe /examples/node
parentdaa9f442797525c9547c329665b4e9107b41d375 (diff)
downloadfaker-3ee7219df7a2d5353fe171b2c30b864d5e0c3a31.tar.xz
faker-3ee7219df7a2d5353fe171b2c30b864d5e0c3a31.zip
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.
Diffstat (limited to 'examples/node')
0 files changed, 0 insertions, 0 deletions