Skip to content

Commit

Permalink
Fixed SearchBar reference and updated the help_flyout tests
Browse files Browse the repository at this point in the history
  • Loading branch information
friol committed Dec 26, 2019
1 parent d39379e commit 1ad99e3
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,12 @@ jest.mock('ui/documentation_links', () => ({
getDocLink: doc => `(docLink for ${doc})`,
}));

jest.mock('./test_script', () => ({
TestScript: () => {
return `<div>mockTestScript</div>`;
},
}));

const indexPatternMock = {};

describe('ScriptingHelpFlyout', () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ import {
EuiCallOut,
} from '@elastic/eui';

import { start as data } from '../../../../../core_plugins/data/public/legacy';
const { SearchBar } = data.ui;
import { npStart } from 'ui/new_platform';
const { SearchBar } = npStart.plugins.data.ui;

const { uiSettings } = npStart.core;

import { esQuery } from '../../../../../../plugins/data/public';
Expand Down

0 comments on commit 1ad99e3

Please sign in to comment.