chore: fix ml tests with canvas code in x-pack

explicitely enable state management so the mlStateFactory tests pass
This commit is contained in:
joe fleming 2018-09-12 13:02:03 -07:00
parent e9656b38c1
commit 5a69250f2a

View file

@ -15,7 +15,10 @@ describe('ML - mlStateFactory', () => {
let stateFactory;
let AppState;
beforeEach(ngMock.module('kibana'));
beforeEach(ngMock.module('kibana', function (stateManagementConfigProvider) {
stateManagementConfigProvider.enable();
}));
beforeEach(ngMock.inject(($injector) => {
AppState = $injector.get('AppState');
const Private = $injector.get('Private');