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

refactor. migrated date_utils file to typescript, add tests #440

Conversation

titanventura
Copy link
Contributor

@titanventura titanventura commented Jan 13, 2024

Summary

Relevant issue #436

  1. Migrated date_utils file to Typescript
  2. Added tests for date_utils file
  3. Removed unused function formatDate

Signed-off-by: titanventura <aswath7862001@gmail.com>
Copy link

codecov bot commented Jan 16, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (98fdf4f) 33.40% compared to head (db2d9e7) 33.40%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #440   +/-   ##
=======================================
  Coverage   33.40%   33.40%           
=======================================
  Files          22       22           
  Lines        3979     3979           
=======================================
  Hits         1329     1329           
  Misses       2519     2519           
  Partials      131      131           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@mickmister mickmister left a comment

Choose a reason for hiding this comment

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

Thanks for this contribution @titanventura!

@@ -1,49 +0,0 @@
export function formatDate(date, useMilitaryTime = false) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Interesting. This function was indeed not used anywhere. Thanks for removing this dead code 👍

@mickmister mickmister merged commit bf6c752 into mattermost:master Jan 16, 2024
9 checks passed
This was referenced Jan 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants