-
-
Notifications
You must be signed in to change notification settings - Fork 939
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(animal): add more simple animals to animal.type() #2786
Conversation
fix faker-js#1618 This adds more common animals and uses more common names for existing ones e.g. cetecean->whale, crocodilia->crocodile
✅ Deploy Preview for fakerjs ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## next #2786 +/- ##
==========================================
- Coverage 99.94% 99.92% -0.02%
==========================================
Files 2973 2973
Lines 212561 212592 +31
Branches 952 946 -6
==========================================
- Hits 212439 212436 -3
- Misses 118 156 +38
+ Partials 4 0 -4
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❤️
@@ -194,7 +194,7 @@ export class AnimalModule extends ModuleBase { | |||
* Returns a random animal type. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we add a warning here, that this is not compatible with faker.animal[faker.animal.type()]()
?
Because we have similar use-cases with person.sexType
and color.cssSupportedFunction
fix #1618
This adds more common animals and uses more common names for existing ones e.g. cetecean->whale, crocodilia->crocodile