@@ -21,7 +21,9 @@ import Bluebird from 'bluebird';
2121import expect from '@kbn/expect' ;
2222import ngMock from 'ng_mock' ;
2323import $ from 'jquery' ;
24- import { createVegaVisualization } from '../vega_visualization' ;
24+ // Will be replaced with new path when tests are moved
25+ // eslint-disable-next-line @kbn/eslint/no-restricted-paths
26+ import { createVegaVisualization } from '../../../../../../plugins/vis_type_vega/public/vega_visualization' ;
2527import { ImageComparator } from 'test_utils/image_comparator' ;
2628
2729import vegaliteGraph from '!!raw-loader!./vegalite_graph.hjson' ;
@@ -35,24 +37,34 @@ import vegaTooltipGraph from '!!raw-loader!./vega_tooltip_test.hjson';
3537
3638import vegaMapGraph from '!!raw-loader!./vega_map_test.hjson' ;
3739import vegaMapImage256 from './vega_map_image_256.png' ;
40+ // Will be replaced with new path when tests are moved
41+ // eslint-disable-next-line @kbn/eslint/no-restricted-paths
42+ import { VegaParser } from '../../../../../../plugins/vis_type_vega/public/data_model/vega_parser' ;
43+ // eslint-disable-next-line @kbn/eslint/no-restricted-paths
44+ import { SearchCache } from '../../../../../../plugins/vis_type_vega/public/data_model/search_cache' ;
3845
39- import { VegaParser } from '../data_model/vega_parser' ;
40- import { SearchCache } from '../data_model/search_cache' ;
41-
42- import { createVegaTypeDefinition } from '../vega_type' ;
46+ // eslint-disable-next-line @kbn/eslint/no-restricted-paths
47+ import { createVegaTypeDefinition } from '../../../../../../plugins/vis_type_vega/public/vega_type' ;
4348// TODO This is an integration test and thus requires a running platform. When moving to the new platform,
4449// this test has to be migrated to the newly created integration test environment.
4550// eslint-disable-next-line @kbn/eslint/no-restricted-paths
4651import { npStart } from 'ui/new_platform' ;
4752// eslint-disable-next-line @kbn/eslint/no-restricted-paths
48- import { BaseVisType } from '../../../../../plugins/visualizations/public/vis_types/base_vis_type' ;
53+ import { BaseVisType } from '../../../../../../ plugins/visualizations/public/vis_types/base_vis_type' ;
4954// eslint-disable-next-line @kbn/eslint/no-restricted-paths
50- import { ExprVis } from '../../../../../plugins/visualizations/public/expressions/vis' ;
51- import { setInjectedVars } from '../services' ;
55+ import { ExprVis } from '../../../../../../plugins/visualizations/public/expressions/vis' ;
56+
57+ import {
58+ setInjectedVars ,
59+ setData ,
60+ setSavedObjects ,
61+ setNotifications ,
62+ // eslint-disable-next-line @kbn/eslint/no-restricted-paths
63+ } from '../../../../../../plugins/vis_type_vega/public/services' ;
5264// eslint-disable-next-line @kbn/eslint/no-restricted-paths
53- import { setInjectedVarFunc } from '../../../../../plugins/maps_legacy/public/kibana_services' ;
65+ import { setInjectedVarFunc } from '../../../../../../ plugins/maps_legacy/public/kibana_services' ;
5466// eslint-disable-next-line @kbn/eslint/no-restricted-paths
55- import { ServiceSettings } from '../../../../../plugins/maps_legacy/public/map/service_settings' ;
67+ import { ServiceSettings } from '../../../../../../ plugins/maps_legacy/public/map/service_settings' ;
5668
5769const THRESHOLD = 0.1 ;
5870const PIXEL_DIFF = 30 ;
@@ -70,6 +82,9 @@ describe('VegaVisualizations', () => {
7082 enableExternalUrls : true ,
7183 esShardTimeout : 10000 ,
7284 } ) ;
85+ setData ( npStart . plugins . data ) ;
86+ setSavedObjects ( npStart . core . savedObjects ) ;
87+ setNotifications ( npStart . core . notifications ) ;
7388
7489 beforeEach ( ngMock . module ( 'kibana' ) ) ;
7590 beforeEach (
@@ -111,9 +126,6 @@ describe('VegaVisualizations', () => {
111126 timefilter : { } ,
112127 } ,
113128 } ,
114- __LEGACY : {
115- esClient : npStart . plugins . data . search . __LEGACY . esClient ,
116- } ,
117129 } ,
118130 } ,
119131 } ;
0 commit comments