Esempio n. 1
0
            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'
                });
            });
Esempio n. 2
0
            it('should dispatch RESET_INFORMER action after delay', function() {
                updateInformer('text')(this.dispatch);

                expect(this.dispatch).to.be.calledWith({ type: types.RESET_INFORMER });
            });
Esempio n. 3
0
            it('should clear timeout', function() {
                updateInformer('text')(this.dispatch);

                expect(window.clearTimeout).to.have.callCount(1);
            });