-
-
Notifications
You must be signed in to change notification settings - Fork 929
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
fix(image): dataUri is not random #2316
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## next #2316 +/- ##
==========================================
- Coverage 99.61% 99.60% -0.01%
==========================================
Files 2793 2793
Lines 251586 251586
Branches 1100 1096 -4
==========================================
- Hits 250611 250597 -14
- Misses 948 962 +14
Partials 27 27
|
I just noticed, that Blocked by: |
Okay |
Please Check |
Made the changes in @param as well |
👀 |
Why are these tests failing? |
I fixed the random seeded tests using test snapshots. |
Because the randomized tests used snapshots which would work fine if the result is static, but this PR changes them to be random thus failing the tests. I fixed them by not using the static snapshots and instead check via validatorjs's isDataUri. |
But I had removed those test cases and changed them to match the changes |
#2273 added new ones. |
Oh I seee so how can we fix this failing tests? |
I already removed/fixed them. |
No I meant the merge checks |
If color option is not provided the code will use a randomly generated color code as default color
the fix(module):faker.image.dataUri commit is the final one. where I have used faker.color.rgb in the previous commit I was using a for loop to generate a hex code. @ST-DDT suggested me to use the inbuilt functions so that we have reproducible values.
fixes #2307