Skip to content
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

Merged
merged 1 commit into from
Apr 5, 2024

Conversation

matthewmayer
Copy link
Contributor

fix #1618

This adds more common animals and uses more common names for existing ones e.g. cetecean->whale, crocodilia->crocodile

fix faker-js#1618

This adds more common animals and uses more common names for existing ones e.g. cetecean->whale, crocodilia->crocodile
@matthewmayer matthewmayer requested a review from a team as a code owner April 5, 2024 04:32
Copy link

netlify bot commented Apr 5, 2024

Deploy Preview for fakerjs ready!

Name Link
🔨 Latest commit 96de15c
🔍 Latest deploy log https://app.netlify.com/sites/fakerjs/deploys/660f7ed74cf28000085b1e29
😎 Deploy Preview https://deploy-preview-2786.fakerjs.dev
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@matthewmayer matthewmayer self-assigned this Apr 5, 2024
@matthewmayer matthewmayer added the m: animal Something is referring to the animal module label Apr 5, 2024
Copy link

codecov bot commented Apr 5, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.92%. Comparing base (5860783) to head (96de15c).

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     
Files Coverage Δ
src/locales/en/animal/type.ts 100.00% <100.00%> (ø)
src/modules/animal/index.ts 100.00% <100.00%> (ø)

... and 5 files with indirect coverage changes

Copy link
Member

@Shinigami92 Shinigami92 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❤️

@ST-DDT ST-DDT requested review from a team April 5, 2024 06:42
@ST-DDT ST-DDT added this to the vAnytime milestone Apr 5, 2024
@ST-DDT ST-DDT added p: 1-normal Nothing urgent c: locale Permutes locale definitions labels Apr 5, 2024
@Shinigami92 Shinigami92 merged commit f47dfe5 into faker-js:next Apr 5, 2024
23 checks passed
@@ -194,7 +194,7 @@ export class AnimalModule extends ModuleBase {
* Returns a random animal type.
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c: locale Permutes locale definitions m: animal Something is referring to the animal module p: 1-normal Nothing urgent
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Method to get any random animal
4 participants