# Code coverage report for RxJS/dist/cjs/operators/publishBehavior.js

## Statements: 100% (12 / 12) Branches: 75% (3 / 4) Functions: 100% (3 / 3) Lines: 100% (11 / 11) Ignored: none

All files » RxJS/dist/cjs/operators/ » publishBehavior.js

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22

    1
    1

    2

    1

    1

    1

    1

    1
    4
    5

    1'use strict';

    exports.__esModule = true;
    exports['default'] = publishBehavior;

    function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }

    var _subjectsBehaviorSubject = require('../subjects/BehaviorSubject');

    var _subjectsBehaviorSubject2 = _interopRequireDefault(_subjectsBehaviorSubject);

    var _multicast = require('./multicast');

    var _multicast2 = _interopRequireDefault(_multicast);

    function publishBehavior(value) {
        return _multicast2['default'].call(this, function () {
            return new _subjectsBehaviorSubject2['default'](value);
        });
    }

    module.exports = exports['default'];