it('should create PLAY_TRACK action', function() { nextTrack()(this.dispatch); expect(this.dispatch).to.have.callCount(1); expect(this.dispatch).to.be.calledWith({ type: types.PLAY_TRACK, id: 10 }); });
it('should notify about the next track', function() { nextTrack()(this.dispatch); expect(notifications.nextTrack).to.have.callCount(1); });
it('should switch to the next track', function() { nextTrack()(this.dispatch); expect(player.next).to.have.callCount(1); });