The other night I ported some node code to a small web-page.
I showed it off the next day to a friend, and after I hit SEND I though... why are the commit dates from 5 months ago?
I had re-invented my own wheel.
Anyway. It meant I was working on the project again, so that's good. I added all the new things I had introduced into the original project, and pushed it over to github.io, finally, as well: http://michaelpaulukonis.github.io/mispelr/
Linting the code for the browser. ("Helloooo, EsLint!"). Cleaning it up. Adding some functionality.
TODO: unit-testing the browser-based JS.
I haven't done this consistently.
I've unit-tested Node, but not the browser, outside of one-off code chunks for a few things.
So. High time I take care of this.
vows in the past, but will try working with
This is pretty much based on the the one in this tutorial, but with some more annotations, and the
chai dependencies pulled from a
cdn instead of being local in the repo.
<link href="https://cdn.rawgit.com/mochajs/mocha/2.2.5/mocha.css" rel="stylesheet" />
<div id="mocha"><p><a href=".">Index</a></p></div>
<!-- test framework -->
<!-- scripts under test -->
<!-- end scripts-under-test -->
<!-- test scripts -->
<!-- end test scripts -->