Skip to content

Commit

Permalink
try be anticipating error
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasneirynck committed May 18, 2021
1 parent 8545ba1 commit d1726d9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import {
import { initVegaLayer, initTmsRasterLayer } from './layers';

// @ts-expect-error
import mapboxgl from 'mapbox-gl/dist/mapbox-gl-csp';
import mapboxgl from '@kbn/mapbox-gl';

jest.mock('mapbox-gl/dist/mapbox-gl-csp', () => ({
setRTLTextPlugin: jest.fn(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ import type { Map, Style, MapboxOptions } from 'mapbox-gl';

import { View, parse } from 'vega';

// @ts-expect-error
import mapboxgl from '@kbn/mapbox-gl';

import { initTmsRasterLayer, initVegaLayer } from './layers';
import { VegaBaseView } from '../vega_base_view';
import { getMapServiceSettings } from '../../services';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ import sprites2 from '@elastic/maki/dist/sprite@2.png';
import { Adapters } from 'src/plugins/inspector/public';
import { Filter } from 'src/plugins/data/public';
import { ActionExecutionContext, Action } from 'src/plugins/ui_actions/public';

// @ts-expect-error
import mapboxgl from '@kbn/mapbox-gl';

import { DrawFilterControl } from './draw_control';
Expand Down

0 comments on commit d1726d9

Please sign in to comment.