All files / Consumer ConsumerOutput.js

100% Statements 6/6
100% Branches 0/0
100% Functions 0/0
100% Lines 5/5

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 211x   1x         15x 5x   5x                    
import { Subject } from 'rxjs';
 
import createLegacyShimStream from './LegacyShim/Streams/createLegacyShimStream';
 
class ConsumerOutput {
    playerInteractions$ = new Subject();
 
    constructor(player, errors$) {
        const { playback, frame, media } = player.state.stores;
 
        this.legacyShim$ = createLegacyShimStream(
            frame.update$,
            media.update$,
            playback.update$,
            errors$
        );
    }
}
 
export default ConsumerOutput;