diff options
Diffstat (limited to 'spec/frontend/header_search/init_spec.js')
-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(); - }); }); |