diff options
author | Grégoire Aubert <gregoire.aubert@sonarsource.com> | 2017-10-09 08:49:13 +0200 |
---|---|---|
committer | Grégoire Aubert <gregoire.aubert@sonarsource.com> | 2017-10-10 06:39:29 -0700 |
commit | c3256f0716a2352d7a24165a490cb82afdb25ec0 (patch) | |
tree | 0b5f00585b5be6a7ade14babb7e9d4f32bcfecd3 /server/sonar-web/src/main/js/components | |
parent | cb8126d2d05acc3605fb233c68b935de4dc74214 (diff) | |
download | sonarqube-c3256f0716a2352d7a24165a490cb82afdb25ec0.tar.gz sonarqube-c3256f0716a2352d7a24165a490cb82afdb25ec0.zip |
SONAR-9500 Enhance cookies caching mechanisme
Diffstat (limited to 'server/sonar-web/src/main/js/components')
-rw-r--r-- | server/sonar-web/src/main/js/components/controls/__tests__/SearchSelect-test.js | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/server/sonar-web/src/main/js/components/controls/__tests__/SearchSelect-test.js b/server/sonar-web/src/main/js/components/controls/__tests__/SearchSelect-test.js index f4d46d4f8a8..303948cd36d 100644 --- a/server/sonar-web/src/main/js/components/controls/__tests__/SearchSelect-test.js +++ b/server/sonar-web/src/main/js/components/controls/__tests__/SearchSelect-test.js @@ -17,14 +17,15 @@ * along with this program; if not, write to the Free Software Foundation, * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -// @flow import React from 'react'; import { shallow } from 'enzyme'; import SearchSelect from '../SearchSelect'; -jest.mock('lodash', () => ({ - debounce: fn => fn -})); +jest.mock('lodash', () => { + const lodash = require.requireActual('lodash'); + lodash.debounce = jest.fn(fn => fn); + return lodash; +}); it('should render Select', () => { expect(shallow(<SearchSelect onSearch={jest.fn()} onSelect={jest.fn()} />)).toMatchSnapshot(); |