Skip to content

Commit 8a678a0

Browse files
committed
default enterpriseSearchUrl
1 parent 5f28efe commit 8a678a0

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

x-pack/plugins/enterprise_search/public/applications/app_search/components/engine_overview_header/engine_overview_header.test.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@ describe('EngineOverviewHeader', () => {
3636
let wrapper;
3737

3838
beforeEach(() => {
39-
wrapper = mountWithKibanaContext(<EngineOverviewHeader />, {});
39+
wrapper = mountWithKibanaContext(<EngineOverviewHeader />, {
40+
enterpriseSearchUrl: undefined,
41+
});
4042
});
4143

4244
describe('the Launch App Search button', () => {

x-pack/plugins/enterprise_search/public/applications/test_utils/helpers.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ export const mountWithKibanaContext = (node, contextProps) => {
1515
value={{
1616
http: {},
1717
setBreadcrumbs: jest.fn(),
18+
enterpriseSearchUrl: 'http://localhost:3002',
1819
...contextProps,
1920
}}
2021
>

0 commit comments

Comments
 (0)