Skip to content

Fix useTransactionDisplayData unit tests#10134

Merged
rekmarks merged 1 commit intodevelopfrom
fix-transaction-display-data-unit-tests
Jan 4, 2021
Merged

Fix useTransactionDisplayData unit tests#10134
rekmarks merged 1 commit intodevelopfrom
fix-transaction-display-data-unit-tests

Conversation

@rekmarks
Copy link
Copy Markdown
Member

@rekmarks rekmarks commented Jan 4, 2021

New year, new problems.

It's working as expected, but we had hard-coded some 2020 date values, and formatDateWithYearContext adds the year to its output formatted date if the date is not from the current year.

Edit: We should add cases dynamically testing the behavior for the current year, but let's do that in a follow-up.

@rekmarks rekmarks requested a review from brad-decker January 4, 2021 17:10
@rekmarks rekmarks requested a review from a team as a code owner January 4, 2021 17:11
brad-decker
brad-decker previously approved these changes Jan 4, 2021
@rekmarks
Copy link
Copy Markdown
Member Author

rekmarks commented Jan 4, 2021

cc: @Gudahtt we found the problem

Gudahtt
Gudahtt previously approved these changes Jan 4, 2021
Copy link
Copy Markdown
Member

@Gudahtt Gudahtt left a comment

Choose a reason for hiding this comment

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

LGTM!

@rekmarks rekmarks dismissed stale reviews from Gudahtt and brad-decker via 8acda7b January 4, 2021 17:32
@rekmarks rekmarks force-pushed the fix-transaction-display-data-unit-tests branch from ae56d13 to 8acda7b Compare January 4, 2021 17:32
@rekmarks rekmarks force-pushed the fix-transaction-display-data-unit-tests branch from 8acda7b to f61ef74 Compare January 4, 2021 17:33
@rekmarks rekmarks merged commit d55f579 into develop Jan 4, 2021
@rekmarks rekmarks deleted the fix-transaction-display-data-unit-tests branch January 4, 2021 17:45
@metamaskbot
Copy link
Copy Markdown
Collaborator

Builds ready [f61ef74]
Page Load Metrics (520 ± 58 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint337151115
domContentLoaded29069151812058
load29169252012058
domInteractive28969151812058

@github-actions github-actions bot locked and limited conversation to collaborators Jan 4, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants