diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-03-20 21:08:18 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-03-20 21:08:18 +0300 |
commit | 96b01499986c01d0c95176860a7606b7616a3836 (patch) | |
tree | f394d46a0f7043984ddd5d51f8c408df035a5b89 /spec/frontend/header_search | |
parent | 849e6f56ae6d29014a6d73f0533144adc9619e87 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/frontend/header_search')
-rw-r--r-- | spec/frontend/header_search/init_spec.js | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/spec/frontend/header_search/init_spec.js b/spec/frontend/header_search/init_spec.js index 40c1843d461..9ccc6919b81 100644 --- a/spec/frontend/header_search/init_spec.js +++ b/spec/frontend/header_search/init_spec.js @@ -33,7 +33,6 @@ describe('Header Search EventListener', () => { jest.mock('~/header_search', () => ({ initHeaderSearchApp: jest.fn() })); await eventHandler.apply( { - newHeaderSearchFeatureFlag: true, searchInputBox: document.querySelector('#search'), }, [cleanEventListeners], @@ -47,7 +46,6 @@ describe('Header Search EventListener', () => { jest.mock('~/header_search', () => ({ initHeaderSearchApp: mockVueApp })); await eventHandler.apply( { - newHeaderSearchFeatureFlag: true, searchInputBox: document.querySelector('#search'), }, () => {}, @@ -55,20 +53,4 @@ describe('Header Search EventListener', () => { expect(mockVueApp).toHaveBeenCalled(); }); - - it('attaches old vue dropdown when feature flag is disabled', async () => { - const mockLegacyApp = jest.fn(() => ({ - onSearchInputFocus: jest.fn(), - })); - jest.mock('~/search_autocomplete', () => mockLegacyApp); - await eventHandler.apply( - { - newHeaderSearchFeatureFlag: false, - searchInputBox: document.querySelector('#search'), - }, - () => {}, - ); - - expect(mockLegacyApp).toHaveBeenCalled(); - }); }); |