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

Extract plugin tests #67

Merged
merged 4 commits into from
Mar 14, 2018

Conversation

jwsloan
Copy link
Collaborator

@jwsloan jwsloan commented Mar 13, 2018

To help me understand the code before tackling issue #3, I decided to jump into the tests. It was helpful to split them out, so that I could see how each plugin acts in isolation.

I wanted to have tests for the sync and update methods of Settings.js, but I couldn't figure out how to get the mocks setup correctly to do so. I wanted those tests to just show the specific duties of those functions, since it is really separate from any one plugin.

I'm not a JS developer, and Google couldn't quite get me far enough. If someone could lead me in the right direction, I'd appreciate it. Or this could be merged, and the other tests left for another PR. It's not my project, so I'll let you all make that call.

/cc @bkeepers

@bkeepers bkeepers merged commit 3888363 into repository-settings:master Mar 14, 2018
@bkeepers
Copy link
Contributor

🎉 Looks great, thanks!

@jwsloan jwsloan deleted the extract-plugin-tests branch August 21, 2018 11:05
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.

2 participants