Skip to content
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(git): adjust commitEntry to match git log output #1539

Merged
merged 4 commits into from
Nov 8, 2022

Conversation

ST-DDT
Copy link
Member

@ST-DDT ST-DDT commented Nov 7, 2022

Supersedes #1537
Fixes the test snapshots tests for faker.git.commitEntry introduced by #1512


Fixes the current issues with our test snapshots for faker.git.commitEntry() by changing the output to match the output of git log. That command uses the en locale on all platforms (we were able to test on).

To simplify the implementation and to retain the code readability the commitDate generation was moved to a separate method.

grafik

@ST-DDT ST-DDT added c: bug Something isn't working p: 2-high Fix main branch m: git Something is referring to the git module labels Nov 7, 2022
@ST-DDT ST-DDT added this to the v8.0 - Module Re-Shuffling milestone Nov 7, 2022
@ST-DDT ST-DDT requested review from a team November 7, 2022 22:21
@ST-DDT ST-DDT self-assigned this Nov 7, 2022
@codecov
Copy link

codecov bot commented Nov 7, 2022

Codecov Report

Merging #1539 (80243a9) into next (7be3724) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Additional details and impacted files
@@           Coverage Diff           @@
##             next    #1539   +/-   ##
=======================================
  Coverage   99.64%   99.64%           
=======================================
  Files        2214     2214           
  Lines      238701   238758   +57     
  Branches     1014     1015    +1     
=======================================
+ Hits       237845   237902   +57     
  Misses        835      835           
  Partials       21       21           
Impacted Files Coverage Δ
src/modules/git/index.ts 100.00% <100.00%> (ø)

@ST-DDT ST-DDT changed the title fix(git): adjust commitEntry to match console log fix(git): adjust commitEntry to match git log output Nov 7, 2022
Copy link
Member

@Shinigami92 Shinigami92 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After these changes, we need to update snapshots

src/modules/git/index.ts Outdated Show resolved Hide resolved
src/modules/git/index.ts Outdated Show resolved Hide resolved
src/modules/git/index.ts Outdated Show resolved Hide resolved
@Shinigami92 Shinigami92 requested a review from a team November 8, 2022 19:35
@ST-DDT ST-DDT added the s: accepted Accepted feature / Confirmed bug label Nov 8, 2022
@Shinigami92 Shinigami92 merged commit 99b6fb2 into next Nov 8, 2022
@Shinigami92 Shinigami92 deleted the fix/git-commit-entry-output branch November 8, 2022 19:49
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: git Something is referring to the git module p: 2-high Fix main branch s: accepted Accepted feature / Confirmed bug
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

4 participants