Skip to content

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

Merged
mickmister merged 1 commit intomattermost:masterfrom
titanventura:436-utils-folder-typescript-migration
Jan 16, 2024
Merged

refactor. migrated date_utils file to typescript, add tests#440
mickmister merged 1 commit intomattermost:masterfrom
titanventura:436-utils-folder-typescript-migration

Conversation

@titanventura
Copy link
Copy Markdown
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>
@codecov
Copy link
Copy Markdown

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
Copy Markdown
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
Copy Markdown
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
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