Commit 431a610f by Torkel Ödegaard

fix(): fixed failing unit test

parent 6e6ebc59
......@@ -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();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment