Skip to content

Commit 83e467d

Browse files
author
Aaron Caldwell
committed
Import leaflet for vega tests since it can't be initialized the normal way (tests have no access to the window object)
1 parent 3d7a38e commit 83e467d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/legacy/core_plugins/kibana/public/__tests__/vis_type_vega/vega_visualization.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ import Bluebird from 'bluebird';
2121
import expect from '@kbn/expect';
2222
import ngMock from 'ng_mock';
2323
import $ from 'jquery';
24+
25+
import 'leaflet/dist/leaflet.js';
26+
import 'leaflet-vega';
2427
// Will be replaced with new path when tests are moved
2528
// eslint-disable-next-line @kbn/eslint/no-restricted-paths
2629
import { createVegaVisualization } from '../../../../../../plugins/vis_type_vega/public/vega_visualization';

0 commit comments

Comments
 (0)