Mocking a javascript method with ScrewUnit
Hi. I have a simple validation method as follows function someMethod { //some processing } I want to unit test this method. What is the simplest way I can mock it. Usually if I have an object as follows: var someObject = function() { reload : function() { //reload logic here } } I can stub someObject and then check if...