Code coverage report for src\components\table-history-mobile\table-history-mobile.js

# all files / src/components/table-history-mobile/ table-history-mobile.js

100% Statements 11/11
100% Branches 0/0
100% Functions 3/3
100% Lines 11/11

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

    1×

    1×

    1×
    1×

    1×

    1×

    1×
    1×

    1×
    1×

     (function component(ng) {

      tableHistoryMobileCtrl.$inject = ['dateFactory', 'historyFactory'];

      ng.module('components')
        .component('exTableHistoryMobile', {
          templateUrl: './components/table-history-mobile/table-history-mobile.html',
          controller: tableHistoryMobileCtrl,
          controllerAs: 'vm',
          bindings: {
          }
        });

      function tableHistoryMobileCtrl(dateFactory, historyFactory) {
        var vm = this;

        historyFactory.init();

        vm.historys = historyFactory.historys;

        vm.getDate = dateFactory.getDate;
        vm.getTime = dateFactory.getTime;

        vm.getDateAndTime = function(ms) {
            return vm.getDate(ms) + ' ' + vm.getTime(ms);
        };

      }

    })(angular);