Code coverage report for cjs/operators/switchMapTo.js

Statements: 65.52% (19 / 29)      Branches: 50% (6 / 12)      Functions: 37.5% (3 / 8)      Lines: 68.18% (15 / 22)      Ignored: none     

All files » cjs/operators/ » switchMapTo.js
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45    1 1   1   1   1   1       1 1             1       1     1 1   1             1     1  
'use strict';
 
exports.__esModule = true;
exports['default'] = switchMapTo;
 
function _inherits(subClass, superClass) { Iif (typeof superClass !== 'function' && superClass !== null) { throw new TypeError('Super expression must either be null or a function, not ' + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); Eif (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
 
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }
 
var _mergeMapToSupport = require('./mergeMapTo-support');
 
function switchMapTo(observable, projectResult) {
    return this.lift(new SwitchMapToOperator(observable, projectResult));
}
 
var SwitchMapToOperator = (function () {
    function SwitchMapToOperator(observable, resultSelector) {
        _classCallCheck(this, SwitchMapToOperator);
 
        this.observable = observable;
        this.resultSelector = resultSelector;
    }
 
    SwitchMapToOperator.prototype.call = function call(subscriber) {
        return new SwitchMapToSubscriber(subscriber, this.observable, this.resultSelector);
    };
 
    return SwitchMapToOperator;
})();
 
var SwitchMapToSubscriber = (function (_MergeMapToSubscriber) {
    _inherits(SwitchMapToSubscriber, _MergeMapToSubscriber);
 
    function SwitchMapToSubscriber(destination, observable, resultSelector) {
        _classCallCheck(this, SwitchMapToSubscriber);
 
        _MergeMapToSubscriber.call(this, destination, observable, resultSelector, 1);
    }
 
    //# sourceMappingURL=switchMapTo.js.map
    return SwitchMapToSubscriber;
})(_mergeMapToSupport.MergeMapToSubscriber);
 
module.exports = exports['default'];
//# sourceMappingURL=switchMapTo.js.map