Show Buttons
Share On Facebook
Share On Twitter
Share On Google Plus
Share On Linkdin
Share On Reddit
Share On Stumbleupon
Contact us
Hide Buttons

How to return a value from a jasmine spy

Returning a value from your jasmine spy is extremely simple. Just do the following

jasmine.createSpy().and.returnValue(value);

Ryan Sukale

Ryan is just a regular guy next door trying to manage his life and finances.