twitter/hogan.js — pull request #39 by braddunbar (2012-02-04 15:19:44+00:00)
Title: Fixes #16 - Switch to a real testing harness.

QUnit test suite can be run in the browser or cli via jsdom.

QUnit is a great fit for the current test setup since only the wrapper function needs to be changed. This allows for a switch while maintaining confidence in passing tests. Tests can be run from the console via node and jsdom.

The tests that were previously skipped (`testBasicOutputAsString` and `testOneVariableAsString `) are now skipped with an early `return` along with `testRenderOutput` since it only ran in the console previously and jsdom doesn't (yet) support xhrs (with some effort it could be made to run in the console and the browser).

Thanks for the great project. I've really enjoyed reading over the code.