diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-11-19 11:27:35 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-11-19 11:27:35 +0300 |
commit | 7e9c479f7de77702622631cff2628a9c8dcbc627 (patch) | |
tree | c8f718a08e110ad7e1894510980d2155a6549197 /spec/frontend/search_spec.js | |
parent | e852b0ae16db4052c1c567d9efa4facc81146e88 (diff) |
Add latest changes from gitlab-org/gitlab@13-6-stable-eev13.6.0-rc42
Diffstat (limited to 'spec/frontend/search_spec.js')
-rw-r--r-- | spec/frontend/search_spec.js | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/spec/frontend/search_spec.js b/spec/frontend/search_spec.js index 1573365538c..cbbc2df6c78 100644 --- a/spec/frontend/search_spec.js +++ b/spec/frontend/search_spec.js @@ -1,10 +1,10 @@ import $ from 'jquery'; +import setHighlightClass from 'ee_else_ce/search/highlight_blob_search_result'; import Api from '~/api'; import Search from '~/pages/search/show/search'; -import setHighlightClass from '~/pages/search/show/highlight_blob_search_result'; jest.mock('~/api'); -jest.mock('~/pages/search/show/highlight_blob_search_result'); +jest.mock('ee_else_ce/search/highlight_blob_search_result'); describe('Search', () => { const fixturePath = 'search/show.html'; @@ -36,16 +36,6 @@ describe('Search', () => { new Search(); // eslint-disable-line no-new }); - it('requests groups from backend when filtering', () => { - jest.spyOn(Api, 'groups').mockImplementation(term => { - expect(term).toBe(searchTerm); - }); - - const inputElement = fillDropdownInput('.js-search-group-dropdown'); - - $(inputElement).trigger('input'); - }); - it('requests projects from backend when filtering', () => { jest.spyOn(Api, 'projects').mockImplementation(term => { expect(term).toBe(searchTerm); |