Code coverage report for src\components\header-event\header-event.js

# all files / src/components/header-event/ header-event.js

37.5% Statements 6/16
100% Branches 0/0
25% Functions 1/4
37.5% Lines 6/16

    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
    421×

    1×

    1×

    1×

    1×

    1×

     (function component(ng) {

      ng.module('components')
        .component('exHeaderEvent', {
          templateUrl: './components/header-event/header-event.html',
          controller: headerEventCtrl,
          controllerAs: 'vm',
          bindings: {
          }
        });

      headerEventCtrl.$inject = ['voyagerFactory', 'showMenu'];

      function headerEventCtrl(voyagerFactory, showMenu) {
        var vm = this;

        vm.events = [
          {code: 'V3250', event: 'Отправлен', location: '(EEM) PAC CFS Shanghai'}
        ];

        vm.voyage = voyagerFactory.get();

        vm.cancel = cancel;

        vm.save = save;

        vm.show = showMenu.showMenu;

        function cancel() {
          console.log('header Cancel()');
          voyagerFactory.getCancelEvent();
        }

        function save() {
          console.log('header Save()');
          voyagerFactory.getSaveEvent();
        }

      }

    })(angular);