Let's say I spied on this way:
spyOn(util, "foo").andReturn(true);
The function under testing calls util.foo several times.
Is it possible to return spy return true on the first call, but return false second time? Or is there another way to do this?
javascript unit-testing jasmine
mikhail Nov 12 '14 at 23:25 2014-11-12 23:25
source share