This code example lived across several blog entries.
http://www.josephtheriault.com/2013/08/jquery-in-tdd-is-serious-business-dont.html
In this post, this example was a demonstration of
- the unreliability of mocking jQuery for the purposes of TDD
- using a façade abstract view interactions and separate them from jQuery
http://www.josephtheriault.com/2013/08/jquery-in-tdd-with-view-adapters-and.html
This tested a view façade implemented with jQuery using black box testing
http://www.josephtheriault.com/2013/09/queryselector-vs-jquery-proving-black.html
This demonstrated the robustness of this kind of black box testing by partly moving the implementation away from jQuery.
http://www.josephtheriault.com/2013/10/jquery-rescope-dom-mocking-made-easy.html
This incorporated a new jQuery plugin, jquery-rescope, as a convenience utility for writing DOM-centric black box tests.