-
-
Notifications
You must be signed in to change notification settings - Fork 919
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: separate methods for object key value #503
feat: separate methods for object key value #503
Conversation
Codecov Report
@@ Coverage Diff @@
## main #503 +/- ##
=======================================
Coverage 99.41% 99.41%
=======================================
Files 1959 1959
Lines 210830 210905 +75
Branches 901 906 +5
=======================================
+ Hits 209600 209675 +75
Misses 1172 1172
Partials 58 58
|
851a6a8
The failing CI doesn't seem to be related to the changes I made, rather than with the
I guess a rebase could fix this. (?) |
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.
- We need to add test for the deprecation warning
- We need to swap out all internal usages like in
finance.currencyCode
(please use search to find more occurrences)
I'm not totally sure what's going on here, I hope @ST-DDT has some more in-depth inside into the fake function and what could be the problem here related to this PR changes Here is a local failed test result ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Failed Tests 1 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
FAIL test/all_functional.spec.ts > faker.fake functional tests > uk > datatype > array()
Error: Invalid module: {datatype
❯ Fake.fake src/fake.ts:85:12
83|
84| if (this.faker[parts[0]] == null) {
85| throw new Error('Invalid module: ' + parts[0]);
| ^
86| }
87|
❯ Fake.fake src/fake.ts:124:16
❯ test/all_functional.spec.ts:96:35
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[1/1]⎯ |
I have identified the issue. |
I will take this PR over so we can merge it soon |
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.
Please also change the helpers module js to something like this:
Module with various helper methods that transform the method input rather than returning values from locales. The transformation process may call methods that use the locale data.
Created in relation to #492.
Thinks I have done:
faker.random.objectValue
andfaker.random.objectKey
faker.random.objectElement