Code coverage report for RxJS/dist/cjs/operators/materialize.js

Statements: 95.24% (40 / 42)      Branches: 62.5% (10 / 16)      Functions: 100% (12 / 12)      Lines: 100% (34 / 34)      Ignored: none     

All files » RxJS/dist/cjs/operators/ » materialize.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 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64    1 1   2   1   78   1   1   1   1   1 39     1 1 39     1 39     1     1 1   1 39   39     1 56     1 3 3 3     1 20 20 20     1     1
'use strict';
 
exports.__esModule = true;
exports['default'] = materialize;
 
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
 
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) { Iif (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }
 
var _Subscriber2 = require('../Subscriber');
 
var _Subscriber3 = _interopRequireDefault(_Subscriber2);
 
var _Notification = require('../Notification');
 
var _Notification2 = _interopRequireDefault(_Notification);
 
function materialize() {
    return this.lift(new MaterializeOperator());
}
 
var MaterializeOperator = (function () {
    function MaterializeOperator() {
        _classCallCheck(this, MaterializeOperator);
    }
 
    MaterializeOperator.prototype.call = function call(subscriber) {
        return new MaterializeSubscriber(subscriber);
    };
 
    return MaterializeOperator;
})();
 
var MaterializeSubscriber = (function (_Subscriber) {
    _inherits(MaterializeSubscriber, _Subscriber);
 
    function MaterializeSubscriber(destination) {
        _classCallCheck(this, MaterializeSubscriber);
 
        _Subscriber.call(this, destination);
    }
 
    MaterializeSubscriber.prototype._next = function _next(value) {
        this.destination.next(_Notification2['default'].createNext(value));
    };
 
    MaterializeSubscriber.prototype._error = function _error(err) {
        var destination = this.destination;
        destination.next(_Notification2['default'].createError(err));
        destination.complete();
    };
 
    MaterializeSubscriber.prototype._complete = function _complete() {
        var destination = this.destination;
        destination.next(_Notification2['default'].createComplete());
        destination.complete();
    };
 
    return MaterializeSubscriber;
})(_Subscriber3['default']);
 
module.exports = exports['default'];