All files / Api ApiServices.js

100% Statements 15/15
100% Branches 0/0
100% Functions 0/0
100% Lines 15/15

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 21 22 231x 1x 1x 1x 1x 1x     6x 6x 6x   6x 6x 6x 6x 6x 6x          
import createPlaybackService from './Playback/createPlaybackService';
import createPrecisionService from './Precision/createPrecisionService';
import createResumePointsService from './ResumePoints/createResumePointsService';
import createConcurrencyService from './Concurrency/createConcurrencyService';
import createUserActionsService from './UserActions/createUserActionsService';
import createUserActionsWatchedService from './UserActionsWatched/createUserActionsWatchedService';
 
class ApiServices {
    constructor(middleware) {
        const configStoreUpdate$ = middleware.state.stores.config.update$;
        const { handleError } = middleware.errorsHandler;
 
        this.playback = createPlaybackService(configStoreUpdate$, handleError);
        this.resumePoints = createResumePointsService(configStoreUpdate$, handleError);
        this.precision = createPrecisionService(configStoreUpdate$, handleError);
        this.concurrency = createConcurrencyService(configStoreUpdate$, handleError);
        this.userActions = createUserActionsService(configStoreUpdate$, handleError);
        this.userActionsWatched = createUserActionsWatchedService(configStoreUpdate$, handleError);
    }
}
 
export default ApiServices;