Code coverage report for src\components\factory\shipmentsfactory.js

# all files / src/components/factory/ shipmentsfactory.js

62.5% Statements 5/8
100% Branches 0/0
33.33% Functions 1/3
62.5% Lines 5/8

    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
    261×
    1×

    1×

    1×

    1×

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

      shipmentsFactory.$inject = [];

      function shipmentsFactory() {
        var shipments;

        return {
            init: init
        }

        function init() {
            this.shipments = [
                {
                    shipment: '2121521521-12521.24',
                    ctns: 571,
                    pcs: 3426,
                    weight: 5939,
                    volume: 51,
                    transportDocNumber: '21421-21421-21421.022'
                }
            ];
        }
      }
    })(angular);