aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMarak <[email protected]>2021-02-12 20:22:03 -0500
committerMarak <[email protected]>2021-02-12 20:22:03 -0500
commit58550cd1cacea36904c36649d2c4f9787f0a9147 (patch)
treefcecc9b052bc5723bd3e8e9df5d5c396e23ecbb2 /lib
parent131bef36c122f379f8afd6e6a48a4c3e5a530437 (diff)
downloadfaker-58550cd1cacea36904c36649d2c4f9787f0a9147.tar.xz
faker-58550cd1cacea36904c36649d2c4f9787f0a9147.zip
Adds missing `animal` module
Removes un-used animal references Fix broken test
Diffstat (limited to 'lib')
-rw-r--r--lib/index.js2
-rw-r--r--lib/locales/en/animal/index.js3
2 files changed, 4 insertions, 1 deletions
diff --git a/lib/index.js b/lib/index.js
index e7a730a7..d0a49684 100644
--- a/lib/index.js
+++ b/lib/index.js
@@ -107,7 +107,7 @@ function Faker (opts) {
var _definitions = {
"name": ["first_name", "last_name", "prefix", "suffix", "gender", "title", "male_prefix", "female_prefix", "male_first_name", "female_first_name", "male_middle_name", "female_middle_name", "male_last_name", "female_last_name"],
"address": ["city_prefix", "city_suffix", "street_suffix", "county", "country", "country_code", "country_code_alpha_3", "state", "state_abbr", "street_prefix", "postcode", "postcode_by_state", "direction", "direction_abbr", "time_zone"],
- "animal": ["dog", "cat", "snake"],
+ "animal": ["dog"],
"company": ["adjective", "noun", "descriptor", "bs_adjective", "bs_noun", "bs_verb", "suffix"],
"lorem": ["words"],
"hacker": ["abbreviation", "adjective", "noun", "verb", "ingverb", "phrase"],
diff --git a/lib/locales/en/animal/index.js b/lib/locales/en/animal/index.js
new file mode 100644
index 00000000..e2562441
--- /dev/null
+++ b/lib/locales/en/animal/index.js
@@ -0,0 +1,3 @@
+var animal = {};
+module['exports'] = animal;
+animal.dog = require("./dog"); \ No newline at end of file