-
-
Notifications
You must be signed in to change notification settings - Fork 943
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(company): rename companyName to name #1166
refactor(company): rename companyName to name #1166
Conversation
We are already really slowly migrate nearly all functions to using an options object as parameter, so yes 🙂 |
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.
Instead of just copying the method you should call the new method from the old one.
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.
Hmm, deprecation tests are failing...👀
I'm not too familiar with how those tests work, does anyone have any idea why it failed?
It looks like finance.transactionDescription still calls company.companyName. faker/src/modules/finance/index.ts Line 427 in 05712b0
|
Found missing deprecation properties.
We should call company.name() on this module? |
Yes, our functions should always call the latest faker functions. |
Corrected your comments 😁 |
Codecov Report
@@ Coverage Diff @@
## main #1166 +/- ##
==========================================
- Coverage 99.64% 99.64% -0.01%
==========================================
Files 2146 2146
Lines 230467 230491 +24
Branches 980 980
==========================================
+ Hits 229657 229678 +21
- Misses 789 792 +3
Partials 21 21
|
Hi guys, I applied te deprecated workflow on function
company.companyName()
. And I have a suggestion to the new function created, the parameters could be an object instead array positions. What do you guys think?Related issue: #1142