Skip to content
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

Merged
merged 13 commits into from
Jun 26, 2020

Conversation

tbarland77
Copy link
Contributor

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!

Copy link
Owner

@jayehernandez jayehernandez left a 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.

@tbarland77
Copy link
Contributor Author

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. 😃

@jayehernandez
Copy link
Owner

Yes to full code coverage. 🥳 I think this PR is good to go, thank you once again @tbarland77!

@jayehernandez jayehernandez merged commit d443dfa into jayehernandez:master Jun 26, 2020
@jayehernandez jayehernandez linked an issue Jun 26, 2020 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

🧪 Add Unit Test to Files with Jest
2 participants