fix(): fixed failing unit test

pull/4513/head
Torkel Ödegaard 9 years ago
parent 6e6ebc5947
commit 431a610f00
  1. 8
      public/app/core/services/context_srv.ts

@ -2,7 +2,6 @@
import config from 'app/core/config';
import _ from 'lodash';
import $ from 'jquery';
import coreModule from 'app/core/core_module';
import store from 'app/core/store';
@ -34,6 +33,13 @@ export class ContextSrv {
this.sidemenu = true;
}
if (!config.buildInfo) {
config.buildInfo = {};
}
if (!config.bootData) {
config.bootData = {user: {}, settings: {}};
}
this.version = config.buildInfo.version;
this.lightTheme = false;
this.user = new User();

Loading…
Cancel
Save