Last Updated: March 02, 2016
·
252
· patrickmclaren

Sinon.JS Bookmarklet: On-the-fly spies for debugging

Add the following as a bookmark, then click to add Sinon.JS to the current page.

javascript:(function(){mElement=document.createElement('script');mElement.type='text/javascript';mElement.src='//cdnjs.cloudflare.com/ajax/libs/sinon.js/1.7.3/sinon-min.js';document.head.appendChild(mElement);})();