Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisronline committed Jan 25, 2021
1 parent 8e9af3d commit 97305f2
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,16 @@ import React from 'react';
import { renderWithIntl } from '@kbn/test/jest';
import { ExplainExporters, ExplainExportersCloud } from './exporters';

jest.mock('../../../../legacy_shims', () => ({
Legacy: {
shims: {
docLinks: {
ELASTIC_WEBSITE_URL: 'https://www.elastic.co/',
},
},
},
}));

describe('ExplainExporters', () => {
test('should explain about xpack.monitoring.exporters setting', () => {
const reason = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,16 @@ import React from 'react';
import { renderWithIntl } from '@kbn/test/jest';
import { ReasonFound } from '.';

jest.mock('../../../legacy_shims', () => ({
Legacy: {
shims: {
docLinks: {
ELASTIC_WEBSITE_URL: 'https://www.elastic.co/',
},
},
},
}));

const enabler = {};

describe('ReasonFound', () => {
Expand Down

0 comments on commit 97305f2

Please sign in to comment.