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 test framework and initial test #30

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

JamesBarwell
Copy link

Hi, I saw in the readme that tests were on the to-do list, and as I've been doing a lot of JS testing recently I thought I'd have a go. These tests use a fake DOM so they should provide good assurance that the module is working end-to-end, and as they are testing the module's behaviour, will not lock down the internal implementation at all.

I've only implemented a single test to prove the example in the readme, but obviously these can be added to if you're happy with this approach.

After installing the new dependencies, npm test will run them.

Cheers.

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