diff options
Diffstat (limited to 'spec/frontend/search_spec.js')
-rw-r--r-- | spec/frontend/search_spec.js | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/spec/frontend/search_spec.js b/spec/frontend/search_spec.js deleted file mode 100644 index d234a7fccb9..00000000000 --- a/spec/frontend/search_spec.js +++ /dev/null @@ -1,23 +0,0 @@ -import setHighlightClass from 'ee_else_ce/search/highlight_blob_search_result'; -import Search from '~/pages/search/show/search'; - -jest.mock('~/api'); -jest.mock('ee_else_ce/search/highlight_blob_search_result'); - -describe('Search', () => { - const fixturePath = 'search/show.html'; - - preloadFixtures(fixturePath); - - describe('constructor side effects', () => { - afterEach(() => { - jest.restoreAllMocks(); - }); - - it('highlights lines with search terms in blob search results', () => { - new Search(); // eslint-disable-line no-new - - expect(setHighlightClass).toHaveBeenCalled(); - }); - }); -}); |