Code coverage report for ./src/client/app/core/config.js

Statements: 100% (16 / 16)      Branches: 50% (1 / 2)      Functions: 100% (3 / 3)      Lines: 100% (16 / 16)      Ignored: none     

All files » ./src/client/app/core/ » config.js
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 351     1   1   1   1 9 9     1         1   1   1   1 9 9   9 9        
(function () {
    'use strict';
 
    var core = angular.module('app.core');
 
    core.config(toastrConfig);
 
    toastrConfig.$inject = ['toastr'];
    /* @ngInject */
    function toastrConfig(toastr) {
        toastr.options.timeOut = 4000;
        toastr.options.positionClass = 'toast-bottom-right';
    }
 
    var config = {
        appErrorPrefix: '[slotwo Error] ',
        appTitle: 'slotwo'
    };
 
    core.value('config', config);
 
    core.config(configure);
 
    configure.$inject = ['$logProvider', 'routerHelperProvider', 'exceptionHandlerProvider'];
    /* @ngInject */
    function configure($logProvider, routerHelperProvider, exceptionHandlerProvider) {
        Eif ($logProvider.debugEnabled) {
            $logProvider.debugEnabled(true);
        }
        exceptionHandlerProvider.configure(config.appErrorPrefix);
        routerHelperProvider.configure({docTitle: config.appTitle + ': '});
    }
 
})();