-
Notifications
You must be signed in to change notification settings - Fork 1
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
Look into using Chai for testing the code #22
Comments
To set up tests I have created an However due to the use of JQuery I've had to import and require npm modules for it (JQuery and jsdom) to allow I'm currently looking for a work around on this, as we wont have our macs forever. Will report back |
Riggghhht! So turns out we needed an extra module: puppeteer, this will also allow you to emulate pressing buttons and stuff. In 5b0099c i've added all the modules needed to get tests started. Currently we only have one test but the hard part is over. |
To run the tests you need to |
With this method you can check url's and stuff as it puppets a chromium instance. |
Also while running tests sometimes theres a timeout error, only way to get around it is run the tests again -shrug- |
Use Chai for unit tests
The text was updated successfully, but these errors were encountered: