defmethodinc / just-not-sorry

Chrome extension that warns you when you write emails using words which undermine your message
https://justnotsorry.com/
Other
243 stars 37 forks source link

refactor: convert class component to functional component #174

Closed jduffy3 closed 1 year ago

jduffy3 commented 1 year ago

The previous implementation was testing implementation details; The hope is by being a functional component the code is simpler and the tests now verify behavior rather than implementation details.

for reference: https://testing-library.com/docs/react-testing-library/migrate-from-enzyme/#triggering-class-methods-in-tests-wrapperinstance

github-actions[bot] commented 1 year ago

:tada: This PR is included in version 2.5.1 :tada:

The release is available on GitHub release

Your semantic-release bot :package::rocket: