Code coverage report for src\app.js

# all files / src/ app.js

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

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

    1×

     (function PortalExpeditor(ng) {
      var dependencies = [
        'ngRoute',
        'ngToast',
        'controllers',
        'expeditorRoutes',
        'smart-table',
        'services',
        'settings',
        'components'
      ];

      ng.module('PortalExpeditor', dependencies)
        .config(config);

      config.$inject = [
        '$routeProvider',
        '$locationProvider',
        'routes'
      ];

      // этап конфигурации приложения
      function config($routeProvider, $locationProvider, routes) {
        ng.forEach(routes, function handleRoute(val) {
          var route = ng.extend({}, val);
          $routeProvider.when(val.url, route);
        });
        $locationProvider.html5Mode(true);
      }
    })(angular);