Closed dhuang612 closed 4 years ago
Feel free to use any additional packages for testing. Testing is a great thing, and we need to cover our code base.
okay,
I am going to keep working on this testing stuff then, thanks
update
okay, I understand a bit more the tests are supposed to run in the browser.
The tests are still failing however, and I'm reviewing that right now.
created PR #48
I'll add some additional tests to cover code logic
Thanks for your ongoing work improving the test code coverage.
created PR #51
created PR #52 tied up some loose ends
Hi,
I've been reviewing the way that you setup the mocha tests using chai. I've noticed that jsdom is required into the project but we aren't using it to test any of the html dom elements? Is this something that I can setup?
Also from the jsdom-mocha npm page: Deprecation notice: Consider jsdom-global instead, a simpler alternative that also works outside of Mocha. mocha-jsdom still works, but jsdom-global is better supported.
https://www.npmjs.com/package/mocha-jsdom