-
Notifications
You must be signed in to change notification settings - Fork 274
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/letra 95 - Add remaining tests for component buttons, add router tests, and add store tests #221
Feature/letra 95 - Add remaining tests for component buttons, add router tests, and add store tests #221
Conversation
…ion into feature/letra-95
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.
Just have one comment but the rest of the file looks good! Thanks for changing the structure of the store as well.
I have no experience with mocking requests but I think you did a good job for the chrome storage. Thanks for all your work on this @tbarland77. I've been learning a lot about tests through your PRs.
Thanks! Glad to hear you're learning more about tests through my PR's. It definitely took a while testing the store but I learned quite a bit especially in regards to testing promises. Hopefully, before long now Letra will have full code coverage. 😃 |
Yes to full code coverage. 🥳 I think this PR is good to go, thank you once again @tbarland77! |
Hi @jayehernandez, it took a while but I have another PR for #124. I made the following changes:
Added tests for the remaining component buttons (random button and translate button)
Removed tests that were only testing the component name as those were causing deprecation warnings
Added tests for the router
Added tests for the store
Refactored/modified the store slightly to export the actions and mutations so I could easily import them in the test file
There's a decent bit here especially in the store test file as there was quite a bit of mocking I had to do. That file could probably be a bit cleaned up as well. Anyway, I just wanted to go ahead and open this PR so you could have a look. Let me know what you think!