aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/apps
diff options
context:
space:
mode:
authorGrégoire Aubert <gregoire.aubert@sonarsource.com>2019-03-22 14:20:57 +0100
committersonartech <sonartech@sonarsource.com>2019-03-29 09:44:59 +0100
commit9d62bc6df05b958d154e831a52302e46b89e7d77 (patch)
treeee3c5ba6c29040619a8fcfbae99b487ff10685bb /server/sonar-web/src/main/js/apps
parent17bbc381c796efc51326c96e77c0fe7294c6a010 (diff)
downloadsonarqube-9d62bc6df05b958d154e831a52302e46b89e7d77.tar.gz
sonarqube-9d62bc6df05b958d154e831a52302e46b89e7d77.zip
Update jest and enzyme
* Update jest snapshots
Diffstat (limited to 'server/sonar-web/src/main/js/apps')
-rw-r--r--server/sonar-web/src/main/js/apps/about/components/__tests__/__snapshots__/AboutApp-test.tsx.snap4
-rw-r--r--server/sonar-web/src/main/js/apps/create/organization/__tests__/__snapshots__/ManualOrganizationCreate-test.tsx.snap2
-rw-r--r--server/sonar-web/src/main/js/apps/create/project/__tests__/__snapshots__/CreateProjectPage-test.tsx.snap2
-rw-r--r--server/sonar-web/src/main/js/apps/groups/components/__tests__/__snapshots__/EditMembers-test.tsx.snap2
-rw-r--r--server/sonar-web/src/main/js/apps/tutorials/components/__tests__/__snapshots__/NewProjectForm-test.tsx.snap4
-rw-r--r--server/sonar-web/src/main/js/apps/users/components/__tests__/UsersSelectSearch-test.tsx2
6 files changed, 10 insertions, 6 deletions
diff --git a/server/sonar-web/src/main/js/apps/about/components/__tests__/__snapshots__/AboutApp-test.tsx.snap b/server/sonar-web/src/main/js/apps/about/components/__tests__/__snapshots__/AboutApp-test.tsx.snap
index c4a8c0e54b4..f1923220a93 100644
--- a/server/sonar-web/src/main/js/apps/about/components/__tests__/__snapshots__/AboutApp-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/about/components/__tests__/__snapshots__/AboutApp-test.tsx.snap
@@ -27,7 +27,7 @@ exports[`should render correctly 1`] = `
],
"results": Array [
Object {
- "isThrow": false,
+ "type": "return",
"value": undefined,
},
],
@@ -36,6 +36,7 @@ exports[`should render correctly 1`] = `
location={
Object {
"action": "PUSH",
+ "hash": "",
"key": "key",
"pathname": "/path",
"query": Object {},
@@ -48,6 +49,7 @@ exports[`should render correctly 1`] = `
location={
Object {
"action": "PUSH",
+ "hash": "",
"key": "key",
"pathname": "/path",
"query": Object {},
diff --git a/server/sonar-web/src/main/js/apps/create/organization/__tests__/__snapshots__/ManualOrganizationCreate-test.tsx.snap b/server/sonar-web/src/main/js/apps/create/organization/__tests__/__snapshots__/ManualOrganizationCreate-test.tsx.snap
index 43ce253d98d..9ede472a8d9 100644
--- a/server/sonar-web/src/main/js/apps/create/organization/__tests__/__snapshots__/ManualOrganizationCreate-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/create/organization/__tests__/__snapshots__/ManualOrganizationCreate-test.tsx.snap
@@ -53,7 +53,7 @@ exports[`should render and create organization 2`] = `
],
"results": Array [
Object {
- "isThrow": false,
+ "type": "return",
"value": undefined,
},
],
diff --git a/server/sonar-web/src/main/js/apps/create/project/__tests__/__snapshots__/CreateProjectPage-test.tsx.snap b/server/sonar-web/src/main/js/apps/create/project/__tests__/__snapshots__/CreateProjectPage-test.tsx.snap
index f6dad80158a..3c461b88591 100644
--- a/server/sonar-web/src/main/js/apps/create/project/__tests__/__snapshots__/CreateProjectPage-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/create/project/__tests__/__snapshots__/CreateProjectPage-test.tsx.snap
@@ -9,6 +9,7 @@ exports[`should render correctly for SonarCloud 1`] = `
location={
Object {
"action": "PUSH",
+ "hash": "",
"key": "key",
"pathname": "/path",
"query": Object {},
@@ -44,6 +45,7 @@ exports[`should render correctly for SonarQube 1`] = `
location={
Object {
"action": "PUSH",
+ "hash": "",
"key": "key",
"pathname": "/path",
"query": Object {},
diff --git a/server/sonar-web/src/main/js/apps/groups/components/__tests__/__snapshots__/EditMembers-test.tsx.snap b/server/sonar-web/src/main/js/apps/groups/components/__tests__/__snapshots__/EditMembers-test.tsx.snap
index bbf778c3c50..2b82e47237e 100644
--- a/server/sonar-web/src/main/js/apps/groups/components/__tests__/__snapshots__/EditMembers-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/groups/components/__tests__/__snapshots__/EditMembers-test.tsx.snap
@@ -623,7 +623,7 @@ exports[`should edit members 3`] = `
],
"results": Array [
Object {
- "isThrow": false,
+ "type": "return",
"value": undefined,
},
],
diff --git a/server/sonar-web/src/main/js/apps/tutorials/components/__tests__/__snapshots__/NewProjectForm-test.tsx.snap b/server/sonar-web/src/main/js/apps/tutorials/components/__tests__/__snapshots__/NewProjectForm-test.tsx.snap
index f6722a21bf6..b043072b6a9 100644
--- a/server/sonar-web/src/main/js/apps/tutorials/components/__tests__/__snapshots__/NewProjectForm-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/tutorials/components/__tests__/__snapshots__/NewProjectForm-test.tsx.snap
@@ -107,7 +107,7 @@ exports[`creates new project 3`] = `
],
"results": Array [
Object {
- "isThrow": false,
+ "type": "return",
"value": undefined,
},
],
@@ -261,7 +261,7 @@ exports[`deletes project 3`] = `
],
"results": Array [
Object {
- "isThrow": false,
+ "type": "return",
"value": undefined,
},
],
diff --git a/server/sonar-web/src/main/js/apps/users/components/__tests__/UsersSelectSearch-test.tsx b/server/sonar-web/src/main/js/apps/users/components/__tests__/UsersSelectSearch-test.tsx
index a486991cafe..726948dbd10 100644
--- a/server/sonar-web/src/main/js/apps/users/components/__tests__/UsersSelectSearch-test.tsx
+++ b/server/sonar-web/src/main/js/apps/users/components/__tests__/UsersSelectSearch-test.tsx
@@ -38,7 +38,7 @@ const excludedUsers = ['admin'];
describe('UsersSelectSearch', () => {
it('should render correctly', () => {
- const onSearch = jest.fn(() => Promise.resolve(users));
+ const onSearch = jest.fn().mockResolvedValue({ users });
const wrapper = shallow(
<UsersSelectSearch
excludedUsers={excludedUsers}