Skip to content

Commit

Permalink
Update browser tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Aaron Caldwell committed Apr 27, 2020
1 parent cc828ba commit bddea49
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ import { BaseVisType } from '../../../../../plugins/visualizations/public/vis_ty
import { setInjectedVarFunc } from '../../../../../plugins/maps_legacy/public/kibana_services';
// eslint-disable-next-line @kbn/eslint/no-restricted-paths
import { ServiceSettings } from '../../../../../plugins/maps_legacy/public/map/service_settings';
import { getBaseMapsVis } from '../../../../../plugins/maps_legacy/public';

const THRESHOLD = 0.45;
const PIXEL_DIFF = 96;
Expand Down Expand Up @@ -132,12 +133,23 @@ describe('RegionMapsVisualizationTests', function() {
includeElasticMapsService: true,
layers: [],
};
const coreSetupMock = {
notifications: {
toasts: {},
},
uiSettings: {},
injectedMetadata: {
getInjectedVar: () => {},
},
};
const BaseMapsVisualization = getBaseMapsVis(coreSetupMock, serviceSettings);

dependencies = {
serviceSettings,
$injector,
regionmapsConfig,
uiSettings,
BaseMapsVisualization,
};

regionMapVisType = new BaseVisType(createRegionMapTypeDefinition(dependencies));
Expand Down

0 comments on commit bddea49

Please sign in to comment.