From f486a0e9502fbc03ff46c8c29cf8d1d595f4476e Mon Sep 17 00:00:00 2001 From: James Rucker Date: Mon, 29 Mar 2021 16:42:18 -0700 Subject: [PATCH] Fix test expectations --- .../components/add_source/add_source_logic.test.ts | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/x-pack/plugins/enterprise_search/public/applications/workplace_search/views/content_sources/components/add_source/add_source_logic.test.ts b/x-pack/plugins/enterprise_search/public/applications/workplace_search/views/content_sources/components/add_source/add_source_logic.test.ts index 6c60cd74a9c9f..8ced90e7d7729 100644 --- a/x-pack/plugins/enterprise_search/public/applications/workplace_search/views/content_sources/components/add_source/add_source_logic.test.ts +++ b/x-pack/plugins/enterprise_search/public/applications/workplace_search/views/content_sources/components/add_source/add_source_logic.test.ts @@ -458,7 +458,12 @@ describe('AddSourceLogic', () => { AddSourceLogic.actions.getSourceReConnectData('github'); expect(http.get).toHaveBeenCalledWith( - '/api/workplace_search/org/sources/github/reauth_prepare' + '/api/workplace_search/org/sources/github/reauth_prepare', + { + query: { + kibana_host: '', + }, + } ); await nextTick(); expect(setSourceConnectDataSpy).toHaveBeenCalledWith(sourceConnectData); @@ -648,7 +653,12 @@ describe('AddSourceLogic', () => { AddSourceLogic.actions.getSourceReConnectData('123'); expect(http.get).toHaveBeenCalledWith( - '/api/workplace_search/account/sources/123/reauth_prepare' + '/api/workplace_search/account/sources/123/reauth_prepare', + { + query: { + kibana_host: '', + }, + } ); });