shanselman/keysleft — pull request #6 by DavidVujic (2013-07-08 23:52:17+00:00)
Title: Added unit tests

Hi! Very much inspired by the twitter talk the other day about unit testing and keysleft.com I have forked and started writing unit tests for the source code.

One goal for me has been to not change or rewrite the code and also try to write simple & easy to understand unit tests.

In this fork the view model and the function that get the urlvars have been moved to separate files (to make them unit testable). In a release to production scenario the files probably should be minified and combined.

Just browse the tests/test-runner.html to run the unit tests.

What do you think about it, any recommendations?

/David
(git newbie)