I'm trying to figure out how to test Reflux stores (https://github.com/spoike/refluxjs) using Jasmine. Basically, the equivalent of this question, except for the fact that there is no equivalent to runAllTimes
that I know of: How to test Reflux actions with Jest
it('responds to the doTheThing action and triggers afterward', function() {
var spyFn = jasmine.createSpy('spy');
MyStore.listen(spyFn);
MyActions.doTheThing();
// with Jest, I would call jest.runAllTimers() here
expect(spyFn).toHaveBeenCalled();
});
^ this fails, when it should return true.
So: anyone know how to test Reflux stores using Jasmine?