Skip to content

chore: fix missing defaultRefDate calls #1781

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

Merged
merged 3 commits into from
Jan 26, 2023
Merged

Conversation

ST-DDT
Copy link
Member

@ST-DDT ST-DDT commented Jan 25, 2023

It looks like I missed some toDate calls in #1757

(Found via docs:diff (#1755))

@ST-DDT ST-DDT added c: bug Something isn't working p: 1-normal Nothing urgent m: date Something is referring to the date module labels Jan 25, 2023
@ST-DDT ST-DDT requested review from a team January 25, 2023 00:53
@ST-DDT ST-DDT self-assigned this Jan 25, 2023
@codecov
Copy link

codecov bot commented Jan 25, 2023

Codecov Report

Merging #1781 (9bdde47) into next (dcb318f) will decrease coverage by 0.01%.
The diff coverage is 100.00%.

❗ Current head 9bdde47 differs from pull request most recent head 0dc5ead. Consider uploading reports for the commit 0dc5ead to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##             next    #1781      +/-   ##
==========================================
- Coverage   99.64%   99.64%   -0.01%     
==========================================
  Files        2340     2340              
  Lines      242669   242654      -15     
  Branches     1112     1109       -3     
==========================================
- Hits       241819   241802      -17     
- Misses        829      831       +2     
  Partials       21       21              
Impacted Files Coverage Δ
src/modules/date/index.ts 99.79% <100.00%> (ø)
src/modules/helpers/index.ts 98.99% <0.00%> (-0.22%) ⬇️

@Shinigami92
Copy link
Member

Why wasn't this catched by a test?

@ST-DDT
Copy link
Member Author

ST-DDT commented Jan 25, 2023

Because it defaulted to new Date. Thats the reason, why I removed the default from the toDate method.

@ST-DDT ST-DDT requested review from a team January 25, 2023 22:16
@ST-DDT ST-DDT enabled auto-merge (squash) January 26, 2023 16:04
@ST-DDT ST-DDT merged commit 04b4aac into next Jan 26, 2023
@ST-DDT ST-DDT deleted the fix/date/missing-ref-dates branch January 26, 2023 17:05
matthewmayer pushed a commit to matthewmayer/faker that referenced this pull request Feb 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c: bug Something isn't working m: date Something is referring to the date module p: 1-normal Nothing urgent
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants