-
Notifications
You must be signed in to change notification settings - Fork 219
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
Feature/au 1863 #1304
Feature/au 1863 #1304
Conversation
}} | ||
previousHandler={() => { | ||
logEvent('edx.ui.lms.sequence.previous_selected', 'top'); | ||
handlePrevious(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you move these logEvent
into handler function? This would make snapshot test easier to read.
@@ -0,0 +1,40 @@ | |||
import React from 'react'; | |||
import { renderHook } from '@testing-library/react-hooks'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 I didn't know this exist. It definitely making hooks test more convenient.
14b7a13
to
6d8c87d
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## feat/whole-course-translations #1304 +/- ##
=================================================================
Coverage ? 88.50%
=================================================================
Files ? 300
Lines ? 5037
Branches ? 1268
=================================================================
Hits ? 4458
Misses ? 565
Partials ? 14 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
https://www.loom.com/share/4e5da9a2e1cb48f1bfbd9ee1d5b17425?sid=c0ff0b2d-1d0c-4e87-9705-3b424ec7fb10