Example #1
0
        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
            });
        });
Example #2
0
        it('should notify about the next track', function() {
            nextTrack()(this.dispatch);

            expect(notifications.nextTrack).to.have.callCount(1);
        });
Example #3
0
        it('should switch to the next track', function() {
            nextTrack()(this.dispatch);

            expect(player.next).to.have.callCount(1);
        });