Skip to content

Commit

Permalink
fix vega tests
Browse files Browse the repository at this point in the history
  • Loading branch information
flash1293 committed Feb 7, 2020
1 parent b89f3fa commit 8740c97
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ import { createVegaTypeDefinition } from '../vega_type';
// this test has to be migrated to the newly created integration test environment.
// eslint-disable-next-line @kbn/eslint/no-restricted-paths
import { npStart } from 'ui/new_platform';
import { setInjectedVars } from '../services';

const THRESHOLD = 0.1;
const PIXEL_DIFF = 30;
Expand All @@ -60,6 +61,12 @@ describe('VegaVisualizations', () => {
let vegaVisualizationDependencies;
let visRegComplete = false;

setInjectedVars({
emsTileLayerId: {},
enableExternalUrls: true,
esShardTimeout: 10000,
});

beforeEach(ngMock.module('kibana'));
beforeEach(
ngMock.inject((Private, $injector) => {
Expand Down

0 comments on commit 8740c97

Please sign in to comment.