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.

Leave a Reply

Your email address will not be published. Required fields are marked *