aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/app/components/nav/settings
diff options
context:
space:
mode:
authorStas Vilchik <vilchiks@gmail.com>2016-12-27 20:34:06 +0100
committerGitHub <noreply@github.com>2016-12-27 20:34:06 +0100
commit546e2fbf1289ce789e4f0b06f1a885411e898f85 (patch)
tree8f698391a10f324ae4ca2b5a5cfa299eb6c9c3b2 /server/sonar-web/src/main/js/app/components/nav/settings
parent71a9b752b41cdc3db99eef4b18e10a84ba18267f (diff)
downloadsonarqube-546e2fbf1289ce789e4f0b06f1a885411e898f85.tar.gz
sonarqube-546e2fbf1289ce789e4f0b06f1a885411e898f85.zip
use enzyme-to-json serializer (#1483)
Diffstat (limited to 'server/sonar-web/src/main/js/app/components/nav/settings')
-rw-r--r--server/sonar-web/src/main/js/app/components/nav/settings/__tests__/SettingsNav-test.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/server/sonar-web/src/main/js/app/components/nav/settings/__tests__/SettingsNav-test.js b/server/sonar-web/src/main/js/app/components/nav/settings/__tests__/SettingsNav-test.js
index c00d2b102ce..ad7cf3841f3 100644
--- a/server/sonar-web/src/main/js/app/components/nav/settings/__tests__/SettingsNav-test.js
+++ b/server/sonar-web/src/main/js/app/components/nav/settings/__tests__/SettingsNav-test.js
@@ -19,11 +19,10 @@
*/
import React from 'react';
import { shallow } from 'enzyme';
-import toJSON from 'enzyme-to-json';
import SettingsNav from '../SettingsNav';
it('should work with extensions', () => {
const extensions = [{ id: 'foo', name: 'Foo' }];
const wrapper = shallow(<SettingsNav extensions={extensions}/>);
- expect(toJSON(wrapper)).toMatchSnapshot();
+ expect(wrapper).toMatchSnapshot();
});