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

refactor(name.findName): allow prefix and suffix #1080

Merged
merged 2 commits into from
Jun 18, 2022

Conversation

xDivisionByZerox
Copy link
Member

Refactors the behavior of faker.name.findName() to possible return a full name with prefix AND suffix.
This also fixes a to-do list in #1044 about the unwanted fallthrough in the switch statement.

@xDivisionByZerox xDivisionByZerox added p: 1-normal Nothing urgent s: accepted Accepted feature / Confirmed bug c: refactor PR that affects the runtime behavior, but doesn't add new features or fixes bugs labels Jun 16, 2022
@xDivisionByZerox xDivisionByZerox added this to the v7 - Current Major milestone Jun 16, 2022
@xDivisionByZerox xDivisionByZerox self-assigned this Jun 16, 2022
@xDivisionByZerox xDivisionByZerox requested a review from a team as a code owner June 16, 2022 21:55
@codecov
Copy link

codecov bot commented Jun 16, 2022

Codecov Report

Merging #1080 (ade2e6b) into main (a0d7191) will not change coverage.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main    #1080   +/-   ##
=======================================
  Coverage   99.64%   99.64%           
=======================================
  Files        2146     2146           
  Lines      230380   230380           
  Branches      979      979           
=======================================
  Hits       229569   229569           
  Misses        790      790           
  Partials       21       21           
Impacted Files Coverage Δ
src/modules/name/index.ts 100.00% <100.00%> (ø)

ST-DDT
ST-DDT previously approved these changes Jun 17, 2022
Copy link
Member

@ST-DDT ST-DDT left a comment

Choose a reason for hiding this comment

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

Sadly we don't hit any of these cases in our seeded tests.

Shinigami92
Shinigami92 previously approved these changes Jun 18, 2022
@xDivisionByZerox xDivisionByZerox dismissed stale reviews from Shinigami92 and ST-DDT via bbd4be3 June 18, 2022 12:13
@xDivisionByZerox xDivisionByZerox force-pushed the chore/name/find-name/remove-switch-fallthrough branch from bae5cf0 to bbd4be3 Compare June 18, 2022 12:13
@Shinigami92 Shinigami92 enabled auto-merge (squash) June 18, 2022 14:44
@Shinigami92 Shinigami92 merged commit 045b8d6 into main Jun 18, 2022
@Shinigami92 Shinigami92 deleted the chore/name/find-name/remove-switch-fallthrough branch June 18, 2022 15:09
Minozzzi pushed a commit to Minozzzi/faker that referenced this pull request Jul 19, 2022
@xDivisionByZerox xDivisionByZerox added the m: person Something is referring to the person module label Jul 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c: refactor PR that affects the runtime behavior, but doesn't add new features or fixes bugs m: person Something is referring to the person module p: 1-normal Nothing urgent s: accepted Accepted feature / Confirmed bug
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants