Code coverage report for src\components\filters\checkedButtonFactory.js

# all files / src/components/filters/ checkedButtonFactory.js

50% Statements 6/12
100% Branches 0/0
25% Functions 1/4
50% Lines 6/12

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

    1×

    1×

    1×

    1×

     (function component(ng) {
      ng.module('components').factory('checkedButton', checkedButton);

      checkedButton.$inject = [];

      function checkedButton() {
        var multichecked;

        return {
            setCheck: set,
            registr: reg
        };

        function set(length) {
          console.log('set()');
          this.multichecked(length);
        }

        function reg(multichecked) {
            console.log('reg()');
            this.multichecked = multichecked;
        }
      }
    })(angular);