switched to universal-cookie, added tests #21
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
@matthewmueller #20 annoyed me and I decided to switch the underlying cookie library to something that seemed more bug-free. It also led to some simplification of the codebase here.
And, then I decided to add tests, which added a lot of complexity, but I think will prove worth it in the long-run.
The tests
The app itself can double as an example.
Anyways, this should probably go out as a semver-major, but I wanted your opinion on it first. Also, you should enable travis-ci.org to automatically run the tests now that they're set up.
I tried out github's built-in CI, but the tests expect Chrome to already be installed, and that's not the case in GitHub's environment, so I rolled that back.
Fixes #20