/* global toastr:false, moment:false, _:false, $:false, session:false */
(function() {
  'use strict';

  angular.module('app.core')
    .constant('lodash', _)
    .constant('jQuery', $)
    .constant('toastr', toastr)
    .constant('moment', moment)
    .constant('userSession', session);
})();

/* global toastr:false, moment:false, _:false, $:false, session:true */
(function() {
  'use strict';

  // Session is set during the bootstrap process (prior to angular running)
  // The variable exists in index.html and will be undefined in tests
  window.session = window.session || {};

  angular.module('app.core')
    .constant('lodash', _)
    .constant('jQuery', $)
    .constant('toastr', toastr)
    .constant('moment', moment)
    .constant('userSession', window.session);
})();

Use or set session to empty object on window
Use or set session to empty object on window
