aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/apps/projectsManagement/__tests__
diff options
context:
space:
mode:
authorStas Vilchik <stas.vilchik@sonarsource.com>2018-01-11 17:46:38 +0100
committerStas Vilchik <stas.vilchik@sonarsource.com>2018-01-12 17:37:53 +0100
commit91dcb7b968fed3eec9d81d1f096ebb936e3b3592 (patch)
tree701b1ce17eab73405bbdd818f21e89b4da52adad /server/sonar-web/src/main/js/apps/projectsManagement/__tests__
parent572fd173640d6cccad67421e0a3ee80de70aeb84 (diff)
downloadsonarqube-91dcb7b968fed3eec9d81d1f096ebb936e3b3592.tar.gz
sonarqube-91dcb7b968fed3eec9d81d1f096ebb936e3b3592.zip
update jest & enzyme
Diffstat (limited to 'server/sonar-web/src/main/js/apps/projectsManagement/__tests__')
-rw-r--r--server/sonar-web/src/main/js/apps/projectsManagement/__tests__/__snapshots__/BulkApplyTemplateModal-test.tsx.snap16
-rw-r--r--server/sonar-web/src/main/js/apps/projectsManagement/__tests__/__snapshots__/ChangeVisibilityForm-test.tsx.snap6
-rw-r--r--server/sonar-web/src/main/js/apps/projectsManagement/__tests__/__snapshots__/CreateProjectForm-test.tsx.snap12
-rw-r--r--server/sonar-web/src/main/js/apps/projectsManagement/__tests__/__snapshots__/DeleteModal-test.tsx.snap8
-rw-r--r--server/sonar-web/src/main/js/apps/projectsManagement/__tests__/__snapshots__/Header-test.tsx.snap2
-rw-r--r--server/sonar-web/src/main/js/apps/projectsManagement/__tests__/__snapshots__/ProjectRow-test.tsx.snap4
-rw-r--r--server/sonar-web/src/main/js/apps/projectsManagement/__tests__/__snapshots__/Search-test.tsx.snap12
7 files changed, 30 insertions, 30 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 960502692b6..fc6070810f9 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
@@ -3,7 +3,7 @@
exports[`bulk applies template to all results 1`] = `
<Modal
contentLabel="permission_templates.bulk_apply_permission_template"
- onRequestClose={[Function]}
+ onRequestClose={[MockFunction]}
>
<header
className="modal-head"
@@ -36,7 +36,7 @@ exports[`bulk applies template to all results 1`] = `
exports[`bulk applies template to all results 2`] = `
<Modal
contentLabel="permission_templates.bulk_apply_permission_template"
- onRequestClose={[Function]}
+ onRequestClose={[MockFunction]}
>
<header
className="modal-head"
@@ -111,7 +111,7 @@ exports[`bulk applies template to all results 2`] = `
exports[`bulk applies template to all results 3`] = `
<Modal
contentLabel="permission_templates.bulk_apply_permission_template"
- onRequestClose={[Function]}
+ onRequestClose={[MockFunction]}
>
<header
className="modal-head"
@@ -189,7 +189,7 @@ exports[`bulk applies template to all results 3`] = `
exports[`bulk applies template to all results 4`] = `
<Modal
contentLabel="permission_templates.bulk_apply_permission_template"
- onRequestClose={[Function]}
+ onRequestClose={[MockFunction]}
>
<header
className="modal-head"
@@ -224,7 +224,7 @@ exports[`bulk applies template to all results 4`] = `
exports[`bulk applies template to selected results 1`] = `
<Modal
contentLabel="permission_templates.bulk_apply_permission_template"
- onRequestClose={[Function]}
+ onRequestClose={[MockFunction]}
>
<header
className="modal-head"
@@ -257,7 +257,7 @@ exports[`bulk applies template to selected results 1`] = `
exports[`bulk applies template to selected results 2`] = `
<Modal
contentLabel="permission_templates.bulk_apply_permission_template"
- onRequestClose={[Function]}
+ onRequestClose={[MockFunction]}
>
<header
className="modal-head"
@@ -332,7 +332,7 @@ exports[`bulk applies template to selected results 2`] = `
exports[`bulk applies template to selected results 3`] = `
<Modal
contentLabel="permission_templates.bulk_apply_permission_template"
- onRequestClose={[Function]}
+ onRequestClose={[MockFunction]}
>
<header
className="modal-head"
@@ -410,7 +410,7 @@ exports[`bulk applies template to selected results 3`] = `
exports[`bulk applies template to selected results 4`] = `
<Modal
contentLabel="permission_templates.bulk_apply_permission_template"
- onRequestClose={[Function]}
+ onRequestClose={[MockFunction]}
>
<header
className="modal-head"
diff --git a/server/sonar-web/src/main/js/apps/projectsManagement/__tests__/__snapshots__/ChangeVisibilityForm-test.tsx.snap b/server/sonar-web/src/main/js/apps/projectsManagement/__tests__/__snapshots__/ChangeVisibilityForm-test.tsx.snap
index 1ab30336149..c2471bfc944 100644
--- a/server/sonar-web/src/main/js/apps/projectsManagement/__tests__/__snapshots__/ChangeVisibilityForm-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/projectsManagement/__tests__/__snapshots__/ChangeVisibilityForm-test.tsx.snap
@@ -3,7 +3,7 @@
exports[`changes visibility 1`] = `
<Modal
contentLabel="modal form"
- onRequestClose={[Function]}
+ onRequestClose={[MockFunction]}
>
<header
className="modal-head"
@@ -100,7 +100,7 @@ exports[`changes visibility 1`] = `
exports[`changes visibility 2`] = `
<Modal
contentLabel="modal form"
- onRequestClose={[Function]}
+ onRequestClose={[MockFunction]}
>
<header
className="modal-head"
@@ -197,7 +197,7 @@ exports[`changes visibility 2`] = `
exports[`renders disabled 1`] = `
<Modal
contentLabel="modal form"
- onRequestClose={[Function]}
+ onRequestClose={[MockFunction]}
>
<header
className="modal-head"
diff --git a/server/sonar-web/src/main/js/apps/projectsManagement/__tests__/__snapshots__/CreateProjectForm-test.tsx.snap b/server/sonar-web/src/main/js/apps/projectsManagement/__tests__/__snapshots__/CreateProjectForm-test.tsx.snap
index 0a24881df61..71af5dfa82d 100644
--- a/server/sonar-web/src/main/js/apps/projectsManagement/__tests__/__snapshots__/CreateProjectForm-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/projectsManagement/__tests__/__snapshots__/CreateProjectForm-test.tsx.snap
@@ -3,7 +3,7 @@
exports[`creates project 1`] = `
<Modal
contentLabel="modal form"
- onRequestClose={[Function]}
+ onRequestClose={[MockFunction]}
>
<form
id="create-project-form"
@@ -122,7 +122,7 @@ exports[`creates project 1`] = `
exports[`creates project 2`] = `
<Modal
contentLabel="modal form"
- onRequestClose={[Function]}
+ onRequestClose={[MockFunction]}
>
<form
id="create-project-form"
@@ -241,7 +241,7 @@ exports[`creates project 2`] = `
exports[`creates project 3`] = `
<Modal
contentLabel="modal form"
- onRequestClose={[Function]}
+ onRequestClose={[MockFunction]}
>
<form
id="create-project-form"
@@ -363,7 +363,7 @@ exports[`creates project 3`] = `
exports[`creates project 4`] = `
<Modal
contentLabel="modal form"
- onRequestClose={[Function]}
+ onRequestClose={[MockFunction]}
>
<div>
<header
@@ -422,7 +422,7 @@ exports[`creates project 4`] = `
exports[`shows more 1`] = `
<Modal
contentLabel="modal form"
- onRequestClose={[Function]}
+ onRequestClose={[MockFunction]}
>
<form
id="create-project-form"
@@ -541,7 +541,7 @@ exports[`shows more 1`] = `
exports[`shows more 2`] = `
<Modal
contentLabel="modal form"
- onRequestClose={[Function]}
+ onRequestClose={[MockFunction]}
>
<form
id="create-project-form"
diff --git a/server/sonar-web/src/main/js/apps/projectsManagement/__tests__/__snapshots__/DeleteModal-test.tsx.snap b/server/sonar-web/src/main/js/apps/projectsManagement/__tests__/__snapshots__/DeleteModal-test.tsx.snap
index d33cef35d25..77ea7ac64fc 100644
--- a/server/sonar-web/src/main/js/apps/projectsManagement/__tests__/__snapshots__/DeleteModal-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/projectsManagement/__tests__/__snapshots__/DeleteModal-test.tsx.snap
@@ -3,7 +3,7 @@
exports[`deletes all projects 1`] = `
<Modal
contentLabel="qualifiers.delete.TRK"
- onRequestClose={[Function]}
+ onRequestClose={[MockFunction]}
>
<header
className="modal-head"
@@ -49,7 +49,7 @@ exports[`deletes all projects 1`] = `
exports[`deletes all projects 2`] = `
<Modal
contentLabel="qualifiers.delete.TRK"
- onRequestClose={[Function]}
+ onRequestClose={[MockFunction]}
>
<header
className="modal-head"
@@ -98,7 +98,7 @@ exports[`deletes all projects 2`] = `
exports[`deletes selected projects 1`] = `
<Modal
contentLabel="qualifiers.delete.TRK"
- onRequestClose={[Function]}
+ onRequestClose={[MockFunction]}
>
<header
className="modal-head"
@@ -144,7 +144,7 @@ exports[`deletes selected projects 1`] = `
exports[`deletes selected projects 2`] = `
<Modal
contentLabel="qualifiers.delete.TRK"
- onRequestClose={[Function]}
+ onRequestClose={[MockFunction]}
>
<header
className="modal-head"
diff --git a/server/sonar-web/src/main/js/apps/projectsManagement/__tests__/__snapshots__/Header-test.tsx.snap b/server/sonar-web/src/main/js/apps/projectsManagement/__tests__/__snapshots__/Header-test.tsx.snap
index e001d3f7298..aefc34315dd 100644
--- a/server/sonar-web/src/main/js/apps/projectsManagement/__tests__/__snapshots__/Header-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/projectsManagement/__tests__/__snapshots__/Header-test.tsx.snap
@@ -3,7 +3,7 @@
exports[`changes default visibility 1`] = `
<ChangeVisibilityForm
onClose={[Function]}
- onConfirm={[Function]}
+ onConfirm={[MockFunction]}
organization={
Object {
"key": "org",
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 49178bc7abd..7c62905a04c 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
@@ -70,7 +70,7 @@ exports[`renders 1`] = `
"login": "foo",
}
}
- onApplyTemplate={[Function]}
+ onApplyTemplate={[MockFunction]}
project={
Object {
"key": "project",
@@ -152,7 +152,7 @@ exports[`renders 2`] = `
"login": "foo",
}
}
- onApplyTemplate={[Function]}
+ onApplyTemplate={[MockFunction]}
project={
Object {
"key": "project",
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 254a3215e07..15ccbea3e9b 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
@@ -88,7 +88,7 @@ exports[`render qualifiers filter 1`] = `
inputClassName="input-medium"
maxDate="+0"
name="analyzed-before"
- onChange={[Function]}
+ onChange={[MockFunction]}
placeholder="last_analysis_before"
/>
</td>
@@ -99,7 +99,7 @@ exports[`render qualifiers filter 1`] = `
checked={false}
className="link-checkbox-control"
id="projects-provisioned"
- onCheck={[Function]}
+ onCheck={[MockFunction]}
thirdState={false}
>
<span
@@ -122,7 +122,7 @@ exports[`render qualifiers filter 1`] = `
>
<SearchBox
minLength={3}
- onChange={[Function]}
+ onChange={[MockFunction]}
placeholder="search.search_by_name_or_key"
value=""
/>
@@ -178,7 +178,7 @@ exports[`renders 1`] = `
inputClassName="input-medium"
maxDate="+0"
name="analyzed-before"
- onChange={[Function]}
+ onChange={[MockFunction]}
placeholder="last_analysis_before"
/>
</td>
@@ -189,7 +189,7 @@ exports[`renders 1`] = `
checked={false}
className="link-checkbox-control"
id="projects-provisioned"
- onCheck={[Function]}
+ onCheck={[MockFunction]}
thirdState={false}
>
<span
@@ -212,7 +212,7 @@ exports[`renders 1`] = `
>
<SearchBox
minLength={3}
- onChange={[Function]}
+ onChange={[MockFunction]}
placeholder="search.search_by_name_or_key"
value=""
/>