hackerschool/community — pull request #38 by zachallaun (2014-06-19 20:28:36+00:00)
Title: Cljs testing

This introduces a small ClojureScript wrapper for Jasmine to make testing our client code not a total pain in the ass. It should be possible to run these tests in a headless browser using phantomjs as well, though I don't have that part quite figure out.

Check out [client/test/community/util/t_routing.cljs](https://github.com/hackerschool/community/blob/cljs-testing/client/test/community/util/t_routing.cljs) for an example. (I found a few bugs in the routing code as well while writing these.)

To run the tests:

```sh
$ bin/rake jasmine
# this will start a server on port 8888
# navigate there to run the tests, refresh to re-run
```