aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/apps/projectsManagement
diff options
context:
space:
mode:
authorJeremy Davis <jeremy.davis@sonarsource.com>2022-12-20 16:25:47 +0100
committersonartech <sonartech@sonarsource.com>2022-12-21 20:03:47 +0000
commitb5db17b1341d9798ccc8e491b093228b53564719 (patch)
treeba090d72597e6ea8f14b0a2f53903fd103bb8603 /server/sonar-web/src/main/js/apps/projectsManagement
parent13bebcd11575c43ad5075e9e8e066343f5ef4158 (diff)
downloadsonarqube-b5db17b1341d9798ccc8e491b093228b53564719.tar.gz
sonarqube-b5db17b1341d9798ccc8e491b093228b53564719.zip
[NO JIRA] Upgrade jest
Diffstat (limited to 'server/sonar-web/src/main/js/apps/projectsManagement')
-rw-r--r--server/sonar-web/src/main/js/apps/projectsManagement/__tests__/__snapshots__/BulkApplyTemplateModal-test.tsx.snap32
-rw-r--r--server/sonar-web/src/main/js/apps/projectsManagement/__tests__/__snapshots__/ProjectRow-test.tsx.snap18
-rw-r--r--server/sonar-web/src/main/js/apps/projectsManagement/__tests__/__snapshots__/ProjectRowActions-test.tsx.snap12
-rw-r--r--server/sonar-web/src/main/js/apps/projectsManagement/__tests__/__snapshots__/Projects-test.tsx.snap8
-rw-r--r--server/sonar-web/src/main/js/apps/projectsManagement/__tests__/__snapshots__/Search-test.tsx.snap40
5 files changed, 55 insertions, 55 deletions
diff --git a/server/sonar-web/src/main/js/apps/projectsManagement/__tests__/__snapshots__/BulkApplyTemplateModal-test.tsx.snap b/server/sonar-web/src/main/js/apps/projectsManagement/__tests__/__snapshots__/BulkApplyTemplateModal-test.tsx.snap
index 07861fbdc29..2e0bb0a492a 100644
--- a/server/sonar-web/src/main/js/apps/projectsManagement/__tests__/__snapshots__/BulkApplyTemplateModal-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/projectsManagement/__tests__/__snapshots__/BulkApplyTemplateModal-test.tsx.snap
@@ -71,19 +71,19 @@ exports[`bulk applies template to all results 2`] = `
isDisabled={false}
onChange={[Function]}
options={
- Array [
- Object {
+ [
+ {
"label": "Foo",
"value": "foo",
},
- Object {
+ {
"label": "Bar",
"value": "bar",
},
]
}
value={
- Object {
+ {
"label": "Foo",
"value": "foo",
}
@@ -148,19 +148,19 @@ exports[`bulk applies template to all results 3`] = `
isDisabled={true}
onChange={[Function]}
options={
- Array [
- Object {
+ [
+ {
"label": "Foo",
"value": "foo",
},
- Object {
+ {
"label": "Bar",
"value": "bar",
},
]
}
value={
- Object {
+ {
"label": "Foo",
"value": "foo",
}
@@ -294,19 +294,19 @@ exports[`bulk applies template to selected results 2`] = `
isDisabled={false}
onChange={[Function]}
options={
- Array [
- Object {
+ [
+ {
"label": "Foo",
"value": "foo",
},
- Object {
+ {
"label": "Bar",
"value": "bar",
},
]
}
value={
- Object {
+ {
"label": "Foo",
"value": "foo",
}
@@ -371,19 +371,19 @@ exports[`bulk applies template to selected results 3`] = `
isDisabled={true}
onChange={[Function]}
options={
- Array [
- Object {
+ [
+ {
"label": "Foo",
"value": "foo",
},
- Object {
+ {
"label": "Bar",
"value": "bar",
},
]
}
value={
- Object {
+ {
"label": "Foo",
"value": "foo",
}
diff --git a/server/sonar-web/src/main/js/apps/projectsManagement/__tests__/__snapshots__/ProjectRow-test.tsx.snap b/server/sonar-web/src/main/js/apps/projectsManagement/__tests__/__snapshots__/ProjectRow-test.tsx.snap
index 3b90b7f657c..4be321cb443 100644
--- a/server/sonar-web/src/main/js/apps/projectsManagement/__tests__/__snapshots__/ProjectRow-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/projectsManagement/__tests__/__snapshots__/ProjectRow-test.tsx.snap
@@ -19,7 +19,7 @@ exports[`renders 1`] = `
<ForwardRef(Link)
className="link-no-underline"
to={
- Object {
+ {
"pathname": "/dashboard",
"search": "?id=project",
}
@@ -75,12 +75,12 @@ exports[`renders 1`] = `
>
<ProjectRowActions
currentUser={
- Object {
+ {
"login": "foo",
}
}
project={
- Object {
+ {
"key": "project",
"name": "Project",
"qualifier": "TRK",
@@ -111,7 +111,7 @@ exports[`renders: portfolio 1`] = `
<ForwardRef(Link)
className="link-no-underline"
to={
- Object {
+ {
"pathname": "/portfolio",
"search": "?id=project",
}
@@ -167,12 +167,12 @@ exports[`renders: portfolio 1`] = `
>
<ProjectRowActions
currentUser={
- Object {
+ {
"login": "foo",
}
}
project={
- Object {
+ {
"key": "project",
"name": "Project",
"qualifier": "VW",
@@ -203,7 +203,7 @@ exports[`renders: with lastAnalysisDate 1`] = `
<ForwardRef(Link)
className="link-no-underline"
to={
- Object {
+ {
"pathname": "/dashboard",
"search": "?id=project",
}
@@ -257,12 +257,12 @@ exports[`renders: with lastAnalysisDate 1`] = `
>
<ProjectRowActions
currentUser={
- Object {
+ {
"login": "foo",
}
}
project={
- Object {
+ {
"key": "project",
"lastAnalysisDate": "2017-04-08T00:00:00.000Z",
"name": "Project",
diff --git a/server/sonar-web/src/main/js/apps/projectsManagement/__tests__/__snapshots__/ProjectRowActions-test.tsx.snap b/server/sonar-web/src/main/js/apps/projectsManagement/__tests__/__snapshots__/ProjectRowActions-test.tsx.snap
index 0269dea8799..24f1502417d 100644
--- a/server/sonar-web/src/main/js/apps/projectsManagement/__tests__/__snapshots__/ProjectRowActions-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/projectsManagement/__tests__/__snapshots__/ProjectRowActions-test.tsx.snap
@@ -4,7 +4,7 @@ exports[`permissions shows the apply permission template modal 1`] = `
<ApplyTemplate
onClose={[Function]}
project={
- Object {
+ {
"id": "foo",
"key": "foo",
"name": "Foo",
@@ -33,21 +33,21 @@ exports[`renders correctly 1`] = `
exports[`restore access shows the restore access modal 1`] = `
<RestoreAccessModal
currentUser={
- Object {
- "dismissedNotices": Object {
+ {
+ "dismissedNotices": {
"educationPrinciples": false,
},
- "groups": Array [],
+ "groups": [],
"isLoggedIn": true,
"login": "luke",
"name": "Skywalker",
- "scmAccounts": Array [],
+ "scmAccounts": [],
}
}
onClose={[Function]}
onRestoreAccess={[Function]}
project={
- Object {
+ {
"id": "foo",
"key": "foo",
"name": "Foo",
diff --git a/server/sonar-web/src/main/js/apps/projectsManagement/__tests__/__snapshots__/Projects-test.tsx.snap b/server/sonar-web/src/main/js/apps/projectsManagement/__tests__/__snapshots__/Projects-test.tsx.snap
index 1ab8c5a286b..31f831ad1d8 100644
--- a/server/sonar-web/src/main/js/apps/projectsManagement/__tests__/__snapshots__/Projects-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/projectsManagement/__tests__/__snapshots__/Projects-test.tsx.snap
@@ -29,14 +29,14 @@ exports[`renders list of projects 1`] = `
<tbody>
<ProjectRow
currentUser={
- Object {
+ {
"login": "foo",
}
}
key="a"
onProjectCheck={[Function]}
project={
- Object {
+ {
"key": "a",
"name": "A",
"qualifier": "TRK",
@@ -47,14 +47,14 @@ exports[`renders list of projects 1`] = `
/>
<ProjectRow
currentUser={
- Object {
+ {
"login": "foo",
}
}
key="b"
onProjectCheck={[Function]}
project={
- Object {
+ {
"key": "b",
"name": "B",
"qualifier": "TRK",
diff --git a/server/sonar-web/src/main/js/apps/projectsManagement/__tests__/__snapshots__/Search-test.tsx.snap b/server/sonar-web/src/main/js/apps/projectsManagement/__tests__/__snapshots__/Search-test.tsx.snap
index 830774bb1aa..4dd30d3fa72 100644
--- a/server/sonar-web/src/main/js/apps/projectsManagement/__tests__/__snapshots__/Search-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/projectsManagement/__tests__/__snapshots__/Search-test.tsx.snap
@@ -6,7 +6,7 @@ exports[`bulk applies permission template 1`] = `
provisioned={false}
qualifier="TRK"
query=""
- selection={Array []}
+ selection={[]}
total={17}
/>
`;
@@ -19,7 +19,7 @@ exports[`deletes projects 1`] = `
qualifier="TRK"
query=""
selection={
- Array [
+ [
"foo",
"bar",
]
@@ -54,7 +54,7 @@ exports[`render qualifiers filter 1`] = `
<Select
className="input-medium it__project-qualifier-select"
components={
- Object {
+ {
"Option": [Function],
"SingleValue": [Function],
}
@@ -64,23 +64,23 @@ exports[`render qualifiers filter 1`] = `
name="projects-qualifier"
onChange={[Function]}
options={
- Array [
- Object {
+ [
+ {
"label": "qualifiers.TRK",
"value": "TRK",
},
- Object {
+ {
"label": "qualifiers.VW",
"value": "VW",
},
- Object {
+ {
"label": "qualifiers.APP",
"value": "APP",
},
]
}
value={
- Object {
+ {
"label": "qualifiers.TRK",
"value": "TRK",
}
@@ -107,23 +107,23 @@ exports[`render qualifiers filter 1`] = `
name="projects-visibility"
onChange={[Function]}
options={
- Array [
- Object {
+ [
+ {
"label": "visibility.both",
"value": "all",
},
- Object {
+ {
"label": "visibility.public",
"value": "public",
},
- Object {
+ {
"label": "visibility.private",
"value": "private",
},
]
}
value={
- Object {
+ {
"label": "visibility.both",
"value": "all",
}
@@ -226,23 +226,23 @@ exports[`renders 1`] = `
name="projects-visibility"
onChange={[Function]}
options={
- Array [
- Object {
+ [
+ {
"label": "visibility.both",
"value": "all",
},
- Object {
+ {
"label": "visibility.public",
"value": "public",
},
- Object {
+ {
"label": "visibility.private",
"value": "private",
},
]
}
value={
- Object {
+ {
"label": "visibility.both",
"value": "all",
}
@@ -308,7 +308,7 @@ exports[`renders 1`] = `
exports[`renders optionrenderer and singlevaluerenderer: option renderer 1`] = `
<Option
data={
- Object {
+ {
"value": "val",
}
}
@@ -327,7 +327,7 @@ exports[`renders optionrenderer and singlevaluerenderer: option renderer 1`] = `
exports[`renders optionrenderer and singlevaluerenderer: single value renderer 1`] = `
<SingleValue
data={
- Object {
+ {
"value": "val",
}
}