jqstub

A simple stub library for jQuery / Zepto objects.

npm install jqstub
4 downloads in the last month

JQStub endorse

A simple stub library for jQuery / Zepto objects.

Usage

$(document).stub('height', 1337);
$(document).stub('height', function() { return 42; } );
$(document).unstub('height');
$(document).unstubAll();

License

Copyright (c) 2012 Fred Wu

Licensed under the MIT license.

npm loves you