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

add tests #12

Merged
merged 2 commits into from
Apr 19, 2018
Merged

add tests #12

merged 2 commits into from
Apr 19, 2018

Conversation

zeke
Copy link
Contributor

@zeke zeke commented Apr 19, 2018

Resolves #12

I was unsuccessful in my attempts to mock require('electron') with proxyquire and mock-require, so I worked around that by adding electron as an option when calling the function. This allows tests to pass in a fake electron object with methods mocked out, while the default use case will just fall back to require('electron')

@zeke
Copy link
Contributor Author

zeke commented Apr 19, 2018

Also added Travis and semantic-release.

@zeke
Copy link
Contributor Author

zeke commented Apr 19, 2018

First time using travis-watch 👍

image

@zeke zeke requested a review from juliangruber April 19, 2018 21:27
@zeke
Copy link
Contributor Author

zeke commented Apr 19, 2018

@juliangruber gonna land this now for the benefit of new testers.

@zeke zeke merged commit 2578f98 into master Apr 19, 2018
@zeke zeke deleted the add-tests branch April 19, 2018 21:39
@zeke
Copy link
Contributor Author

zeke commented Apr 19, 2018

🎉 This PR is included in version 1.1.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@zeke zeke mentioned this pull request Apr 24, 2018
Closed
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.

1 participant