it('should dispatch UPDATE_INFORMER action with right args', function() { updateInformer('text')(this.dispatch); expect(this.dispatch).to.be.calledWith({ type: types.UPDATE_INFORMER, text: 'text' }); });
it('should dispatch RESET_INFORMER action after delay', function() { updateInformer('text')(this.dispatch); expect(this.dispatch).to.be.calledWith({ type: types.RESET_INFORMER }); });
it('should clear timeout', function() { updateInformer('text')(this.dispatch); expect(window.clearTimeout).to.have.callCount(1); });