-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Happychat/Composer
: refactor tests to @testing-library/react
#66599
Conversation
This PR does not affect the size of JS and CSS bundles shipped to the user's browser. Generated by performance advisor bot at iscalypsofastyet.com. |
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.
This looks good overall! I've left a few questions / suggestions - LMK what you think.
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.
Looks awesome, thanks! 🚢 🚀
@@ -41,8 +41,7 @@ class Composer extends Component { | |||
}; | |||
|
|||
onKeyDown = ( event ) => { | |||
const RETURN_KEYCODE = 13; | |||
if ( event.which === RETURN_KEYCODE ) { | |||
if ( event.key === 'Enter' ) { |
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.
👍
Proposed Changes
Happychat/Composer
: refactor tests to@testing-library/react
Testing Instructions
Related to #63409