velesin / jasmine-jquery

jQuery matchers and fixture loader for Jasmine framework
MIT License
1.89k stars 347 forks source link

Event spies should report number of triggers, most recent trigger… #136

Open steveluscher opened 11 years ago

steveluscher commented 11 years ago

This would be useful:

eventSpy = spyOnEvent('drag', $element);
…
eventSpy.wasCalled;
eventSpy.callCount;
eventSpy.mostRecentCall.args;
eventSpy.argsForCall[i];

…just like regular Jasmine spies.

travisjeffery commented 11 years ago

Yeah this could be cool...

ryanwalters commented 10 years ago

195