-
-
Notifications
You must be signed in to change notification settings - Fork 920
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(phone): rename phoneNumber to number #1063
Conversation
The ci is failing with an error I couldn't figure out.
The error states that What am I missing? |
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.
Faker.fake still uses this method in the example.
I understand, I usually search with "Find All References" when replacing something. Obviously, these references do not get found. |
Codecov Report
@@ Coverage Diff @@
## main #1063 +/- ##
=======================================
Coverage 99.64% 99.64%
=======================================
Files 2135 2135
Lines 229190 229213 +23
Branches 977 979 +2
=======================================
+ Hits 228376 228402 +26
+ Misses 793 790 -3
Partials 21 21
|
Thats why the test is there 😉 |
Yeah, but I was totally lost when looking at the error message since I wasn't able to find any (direct) call reference. We could potentially extend the message for these cases (faker.fake)? Not this PR tho. |
d895ced
to
11ce25e
Compare
This reverts commit cb4d4b8.
17dfb73
to
7ac3647
Compare
Listed as a todo in #1044.
This PR does the following things:
phone.phoneNumber()
into a new function calledphone.number()
phone.phoneNumber()
via the internal deprecated method@deprecated
JSDoc parameter to thephone.phoneNumber()
signature documentationphoneNumber()
tonumber()
phoneNumber()
deprecation log