aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/apps/background-tasks
diff options
context:
space:
mode:
authorStas Vilchik <stas.vilchik@sonarsource.com>2018-05-15 13:27:26 +0200
committerSonarTech <sonartech@sonarsource.com>2018-05-15 20:20:50 +0200
commit05a73f23b2e922de87d37dc101728c94dfee7648 (patch)
treedf30cf01bd96ea03a9253d04f8fab17f116a4b2a /server/sonar-web/src/main/js/apps/background-tasks
parentc449191069573ef348bdd5a0c43f2593bd84f198 (diff)
downloadsonarqube-05a73f23b2e922de87d37dc101728c94dfee7648.tar.gz
sonarqube-05a73f23b2e922de87d37dc101728c94dfee7648.zip
update sonar-web dependencies (#239)
Diffstat (limited to 'server/sonar-web/src/main/js/apps/background-tasks')
-rw-r--r--server/sonar-web/src/main/js/apps/background-tasks/components/__tests__/ScannerContext-test.tsx4
-rw-r--r--server/sonar-web/src/main/js/apps/background-tasks/components/__tests__/Stacktrace-test.tsx4
2 files changed, 4 insertions, 4 deletions
diff --git a/server/sonar-web/src/main/js/apps/background-tasks/components/__tests__/ScannerContext-test.tsx b/server/sonar-web/src/main/js/apps/background-tasks/components/__tests__/ScannerContext-test.tsx
index d8a429a5388..12bd9297176 100644
--- a/server/sonar-web/src/main/js/apps/background-tasks/components/__tests__/ScannerContext-test.tsx
+++ b/server/sonar-web/src/main/js/apps/background-tasks/components/__tests__/ScannerContext-test.tsx
@@ -19,7 +19,7 @@
*/
/* eslint-disable import/order */
import * as React from 'react';
-import { mount, shallow } from 'enzyme';
+import { shallow } from 'enzyme';
import ScannerContext from '../ScannerContext';
import { click } from '../../../../helpers/testUtils';
@@ -57,7 +57,7 @@ it('closes', () => {
});
it('fetches scanner context on mount', async () => {
- const wrapper = mount(<ScannerContext onClose={jest.fn()} task={task} />);
+ const wrapper = shallow(<ScannerContext onClose={jest.fn()} task={task} />);
expect(wrapper.state()).toEqual({});
expect(getTask).toBeCalledWith('123', ['scannerContext']);
await new Promise(setImmediate);
diff --git a/server/sonar-web/src/main/js/apps/background-tasks/components/__tests__/Stacktrace-test.tsx b/server/sonar-web/src/main/js/apps/background-tasks/components/__tests__/Stacktrace-test.tsx
index 3c43f3cc49d..8b8a8af5e1d 100644
--- a/server/sonar-web/src/main/js/apps/background-tasks/components/__tests__/Stacktrace-test.tsx
+++ b/server/sonar-web/src/main/js/apps/background-tasks/components/__tests__/Stacktrace-test.tsx
@@ -19,7 +19,7 @@
*/
/* eslint-disable import/order */
import * as React from 'react';
-import { mount, shallow } from 'enzyme';
+import { shallow } from 'enzyme';
import Stacktrace from '../Stacktrace';
import { click } from '../../../../helpers/testUtils';
@@ -57,7 +57,7 @@ it('closes', () => {
});
it('fetches scanner context on mount', async () => {
- const wrapper = mount(<Stacktrace onClose={jest.fn()} task={task} />);
+ const wrapper = shallow(<Stacktrace onClose={jest.fn()} task={task} />);
expect(wrapper.state()).toEqual({ loading: true });
expect(getTask).toBeCalledWith('123', ['stacktrace']);
await new Promise(setImmediate);