Exemple #1
0
        it('should create PAUSE_TRACK action', function() {
            pauseTrack(10)(this.dispatch);

            expect(this.dispatch).to.have.callCount(1);
            expect(this.dispatch).to.be.calledWith({
                type: types.PAUSE_TRACK,
                id: 10
            });
        });
Exemple #2
0
        it('player must pause', function() {
            pauseTrack()(this.dispatch);

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