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

Return­ing a value from your jas­mine spy is extremely sim­ple. Just do the following

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