aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/apps
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
parent13bebcd11575c43ad5075e9e8e066343f5ef4158 (diff)
downloadsonarqube-b5db17b1341d9798ccc8e491b093228b53564719.tar.gz
sonarqube-b5db17b1341d9798ccc8e491b093228b53564719.zip
[NO JIRA] Upgrade jest
Diffstat (limited to 'server/sonar-web/src/main/js/apps')
-rw-r--r--server/sonar-web/src/main/js/apps/background-tasks/components/__tests__/__snapshots__/BackgroundTasksApp-test.tsx.snap62
-rw-r--r--server/sonar-web/src/main/js/apps/background-tasks/components/__tests__/__snapshots__/TaskActions-test.tsx.snap4
-rw-r--r--server/sonar-web/src/main/js/apps/background-tasks/components/__tests__/__snapshots__/TaskComponent-test.tsx.snap16
-rw-r--r--server/sonar-web/src/main/js/apps/background-tasks/components/__tests__/__snapshots__/WorkersForm-test.tsx.snap48
-rw-r--r--server/sonar-web/src/main/js/apps/code/__tests__/__snapshots__/utils-test.tsx.snap14
-rw-r--r--server/sonar-web/src/main/js/apps/code/components/__tests__/__snapshots__/CodeApp-test.tsx.snap252
-rw-r--r--server/sonar-web/src/main/js/apps/code/components/__tests__/__snapshots__/ComponentName-test.tsx.snap10
-rw-r--r--server/sonar-web/src/main/js/apps/code/components/__tests__/__snapshots__/Components-test.tsx.snap54
-rw-r--r--server/sonar-web/src/main/js/apps/code/components/__tests__/__snapshots__/Search-test.tsx.snap12
-rw-r--r--server/sonar-web/src/main/js/apps/coding-rules/components/__tests__/__snapshots__/ActivationFormModal-test.tsx.snap26
-rw-r--r--server/sonar-web/src/main/js/apps/coding-rules/components/__tests__/__snapshots__/App-test.tsx.snap140
-rw-r--r--server/sonar-web/src/main/js/apps/coding-rules/components/__tests__/__snapshots__/CustomRuleFormModal-test.tsx.snap52
-rw-r--r--server/sonar-web/src/main/js/apps/coding-rules/components/__tests__/__snapshots__/FacetsList-test.tsx.snap6
-rw-r--r--server/sonar-web/src/main/js/apps/coding-rules/components/__tests__/__snapshots__/RuleDetails-test.tsx.snap70
-rw-r--r--server/sonar-web/src/main/js/apps/coding-rules/components/__tests__/__snapshots__/RuleDetailsIssues-test.tsx.snap6
-rw-r--r--server/sonar-web/src/main/js/apps/coding-rules/components/__tests__/__snapshots__/RuleDetailsMeta-test.tsx.snap24
-rw-r--r--server/sonar-web/src/main/js/apps/coding-rules/components/__tests__/__snapshots__/RuleDetailsParameters-test.tsx.snap4
-rw-r--r--server/sonar-web/src/main/js/apps/coding-rules/components/__tests__/__snapshots__/RuleDetailsTagsPopup-test.tsx.snap4
-rw-r--r--server/sonar-web/src/main/js/apps/coding-rules/components/__tests__/__snapshots__/RuleListItem-test.tsx.snap32
-rw-r--r--server/sonar-web/src/main/js/apps/coding-rules/components/__tests__/__snapshots__/TagFacet-test.tsx.snap4
-rw-r--r--server/sonar-web/src/main/js/apps/component-measures/__tests__/__snapshots__/utils-test.ts.snap46
-rw-r--r--server/sonar-web/src/main/js/apps/component-measures/components/__tests__/__snapshots__/App-test.tsx.snap36
-rw-r--r--server/sonar-web/src/main/js/apps/component-measures/components/__tests__/__snapshots__/Breadcrumbs-test.tsx.snap10
-rw-r--r--server/sonar-web/src/main/js/apps/component-measures/components/__tests__/__snapshots__/MeasureContent-test.tsx.snap196
-rw-r--r--server/sonar-web/src/main/js/apps/component-measures/components/__tests__/__snapshots__/MeasureHeader-test.tsx.snap20
-rw-r--r--server/sonar-web/src/main/js/apps/component-measures/components/__tests__/__snapshots__/MeasureOverview-test.tsx.snap84
-rw-r--r--server/sonar-web/src/main/js/apps/component-measures/components/__tests__/__snapshots__/MeasureViewSelect-test.tsx.snap28
-rw-r--r--server/sonar-web/src/main/js/apps/component-measures/drilldown/__tests__/__snapshots__/BubbleChart-test.tsx.snap126
-rw-r--r--server/sonar-web/src/main/js/apps/component-measures/drilldown/__tests__/__snapshots__/ComponentCell-test.tsx.snap14
-rw-r--r--server/sonar-web/src/main/js/apps/component-measures/drilldown/__tests__/__snapshots__/ComponentList-test.tsx.snap28
-rw-r--r--server/sonar-web/src/main/js/apps/component-measures/drilldown/__tests__/__snapshots__/FilesView-test.tsx.snap32
-rw-r--r--server/sonar-web/src/main/js/apps/component-measures/sidebar/__tests__/__snapshots__/DomainFacet-test.tsx.snap40
-rw-r--r--server/sonar-web/src/main/js/apps/component-measures/sidebar/__tests__/__snapshots__/Sidebar-test.tsx.snap26
-rw-r--r--server/sonar-web/src/main/js/apps/groups/components/__tests__/__snapshots__/App-test.tsx.snap6
-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/groups/components/__tests__/__snapshots__/EditMembersModal-test.tsx.snap4
-rw-r--r--server/sonar-web/src/main/js/apps/groups/components/__tests__/__snapshots__/List-test.tsx.snap6
-rw-r--r--server/sonar-web/src/main/js/apps/groups/components/__tests__/__snapshots__/ListItem-test.tsx.snap2
-rw-r--r--server/sonar-web/src/main/js/apps/issues/components/__tests__/__snapshots__/AssigneeSelect-test.tsx.snap20
-rw-r--r--server/sonar-web/src/main/js/apps/issues/components/__tests__/__snapshots__/BulkChangeModal-test.tsx.snap10
-rw-r--r--server/sonar-web/src/main/js/apps/issues/components/__tests__/__snapshots__/IssuesList-test.tsx.snap42
-rw-r--r--server/sonar-web/src/main/js/apps/issues/components/__tests__/__snapshots__/IssuesSourceViewer-test.tsx.snap318
-rw-r--r--server/sonar-web/src/main/js/apps/issues/components/__tests__/__snapshots__/ListItem-test.tsx.snap42
-rw-r--r--server/sonar-web/src/main/js/apps/issues/components/__tests__/__snapshots__/PageActions-test.tsx.snap2
-rw-r--r--server/sonar-web/src/main/js/apps/issues/components/__tests__/__snapshots__/TotalEffort-test.tsx.snap2
-rw-r--r--server/sonar-web/src/main/js/apps/issues/conciseIssuesList/__tests__/__snapshots__/ConciseIssue-test.tsx.snap12
-rw-r--r--server/sonar-web/src/main/js/apps/issues/conciseIssuesList/__tests__/__snapshots__/ConciseIssueBox-test.tsx.snap70
-rw-r--r--server/sonar-web/src/main/js/apps/issues/conciseIssuesList/__tests__/__snapshots__/ConciseIssueLocations-test.tsx.snap2
-rw-r--r--server/sonar-web/src/main/js/apps/issues/conciseIssuesList/__tests__/__snapshots__/ConciseIssuesList-test.tsx.snap6
-rw-r--r--server/sonar-web/src/main/js/apps/issues/crossComponentSourceViewer/__tests__/__snapshots__/ComponentSourceSnippetGroupViewer-test.tsx.snap6
-rw-r--r--server/sonar-web/src/main/js/apps/issues/crossComponentSourceViewer/__tests__/__snapshots__/CrossComponentSourceViewer-test.tsx.snap208
-rw-r--r--server/sonar-web/src/main/js/apps/issues/crossComponentSourceViewer/__tests__/__snapshots__/IssueSourceViewerHeader-test.tsx.snap6
-rw-r--r--server/sonar-web/src/main/js/apps/issues/crossComponentSourceViewer/__tests__/__snapshots__/SnippetViewer-test.tsx.snap256
-rw-r--r--server/sonar-web/src/main/js/apps/issues/sidebar/__tests__/__snapshots__/AssigneeFacet-test.tsx.snap6
-rw-r--r--server/sonar-web/src/main/js/apps/issues/sidebar/__tests__/__snapshots__/AuthorFacet-test.tsx.snap6
-rw-r--r--server/sonar-web/src/main/js/apps/issues/sidebar/__tests__/__snapshots__/CreationDateFacet-test.tsx.snap32
-rw-r--r--server/sonar-web/src/main/js/apps/issues/sidebar/__tests__/__snapshots__/DirectoryFacet-test.tsx.snap4
-rw-r--r--server/sonar-web/src/main/js/apps/issues/sidebar/__tests__/__snapshots__/FileFacet-test.tsx.snap4
-rw-r--r--server/sonar-web/src/main/js/apps/issues/sidebar/__tests__/__snapshots__/ProjectFacet-test.tsx.snap4
-rw-r--r--server/sonar-web/src/main/js/apps/issues/sidebar/__tests__/__snapshots__/RuleFacet-test.tsx.snap6
-rw-r--r--server/sonar-web/src/main/js/apps/issues/sidebar/__tests__/__snapshots__/ScopeFacet-test.tsx.snap8
-rw-r--r--server/sonar-web/src/main/js/apps/issues/sidebar/__tests__/__snapshots__/Sidebar-test.tsx.snap14
-rw-r--r--server/sonar-web/src/main/js/apps/issues/sidebar/__tests__/__snapshots__/StandardFacet-test.tsx.snap20
-rw-r--r--server/sonar-web/src/main/js/apps/issues/sidebar/__tests__/__snapshots__/StatusFacet-test.tsx.snap2
-rw-r--r--server/sonar-web/src/main/js/apps/issues/sidebar/__tests__/__snapshots__/TypeFacet-test.tsx.snap2
-rw-r--r--server/sonar-web/src/main/js/apps/marketplace/__tests__/__snapshots__/App-test.tsx.snap34
-rw-r--r--server/sonar-web/src/main/js/apps/marketplace/__tests__/__snapshots__/EditionBoxes-test.tsx.snap12
-rw-r--r--server/sonar-web/src/main/js/apps/marketplace/__tests__/__snapshots__/MarketplaceAppContainer-test.tsx.snap28
-rw-r--r--server/sonar-web/src/main/js/apps/marketplace/__tests__/__snapshots__/PluginUpdates-test.tsx.snap24
-rw-r--r--server/sonar-web/src/main/js/apps/marketplace/__tests__/__snapshots__/PluginsList-test.tsx.snap60
-rw-r--r--server/sonar-web/src/main/js/apps/marketplace/components/__tests__/__snapshots__/PluginActions-test.tsx.snap8
-rw-r--r--server/sonar-web/src/main/js/apps/marketplace/components/__tests__/__snapshots__/PluginAvailable-test.tsx.snap174
-rw-r--r--server/sonar-web/src/main/js/apps/marketplace/components/__tests__/__snapshots__/PluginChangeLog-test.tsx.snap38
-rw-r--r--server/sonar-web/src/main/js/apps/marketplace/components/__tests__/__snapshots__/PluginLicense-test.tsx.snap2
-rw-r--r--server/sonar-web/src/main/js/apps/marketplace/components/__tests__/__snapshots__/PluginOrganization-test.tsx.snap2
-rw-r--r--server/sonar-web/src/main/js/apps/overview/branches/__tests__/MeasuresPanelNoNewCode-test.tsx6
-rw-r--r--server/sonar-web/src/main/js/apps/overview/branches/__tests__/__snapshots__/ActivityPanel-test.tsx.snap86
-rw-r--r--server/sonar-web/src/main/js/apps/overview/branches/__tests__/__snapshots__/Analysis-test.tsx.snap8
-rw-r--r--server/sonar-web/src/main/js/apps/overview/branches/__tests__/__snapshots__/BranchOverview-test.tsx.snap1074
-rw-r--r--server/sonar-web/src/main/js/apps/overview/branches/__tests__/__snapshots__/BranchOverviewRenderer-test.tsx.snap162
-rw-r--r--server/sonar-web/src/main/js/apps/overview/branches/__tests__/__snapshots__/DebtValue-test.tsx.snap4
-rw-r--r--server/sonar-web/src/main/js/apps/overview/branches/__tests__/__snapshots__/DrilldownMeasureValue-test.tsx.snap2
-rw-r--r--server/sonar-web/src/main/js/apps/overview/branches/__tests__/__snapshots__/Event-test.tsx.snap2
-rw-r--r--server/sonar-web/src/main/js/apps/overview/branches/__tests__/__snapshots__/FirstAnalysisNextStepsNotif-test.tsx.snap18
-rw-r--r--server/sonar-web/src/main/js/apps/overview/branches/__tests__/__snapshots__/LeakPeriodInfo-test.tsx.snap4
-rw-r--r--server/sonar-web/src/main/js/apps/overview/branches/__tests__/__snapshots__/MeasuresPanel-test.tsx.snap2108
-rw-r--r--server/sonar-web/src/main/js/apps/overview/branches/__tests__/__snapshots__/MeasuresPanelIssueMeasureRow-test.tsx.snap586
-rw-r--r--server/sonar-web/src/main/js/apps/overview/branches/__tests__/__snapshots__/MeasuresPanelNoNewCode-test.tsx.snap22
-rw-r--r--server/sonar-web/src/main/js/apps/overview/branches/__tests__/__snapshots__/QualityGatePanel-test.tsx.snap202
-rw-r--r--server/sonar-web/src/main/js/apps/overview/branches/__tests__/__snapshots__/QualityGatePanelSection-test.tsx.snap120
-rw-r--r--server/sonar-web/src/main/js/apps/overview/components/__tests__/__snapshots__/EmptyOverview-test.tsx.snap48
-rw-r--r--server/sonar-web/src/main/js/apps/overview/components/__tests__/__snapshots__/IssueLabel-test.tsx.snap16
-rw-r--r--server/sonar-web/src/main/js/apps/overview/components/__tests__/__snapshots__/IssueRating-test.tsx.snap12
-rw-r--r--server/sonar-web/src/main/js/apps/overview/components/__tests__/__snapshots__/MeasurementLabel-test.tsx.snap30
-rw-r--r--server/sonar-web/src/main/js/apps/overview/components/__tests__/__snapshots__/QualityGateCondition-test.tsx.snap18
-rw-r--r--server/sonar-web/src/main/js/apps/overview/components/__tests__/__snapshots__/SonarLintPromition-test.tsx.snap2
-rw-r--r--server/sonar-web/src/main/js/apps/overview/pullRequests/__tests__/__snapshots__/LargeQualityGateBadge-test.tsx.snap8
-rw-r--r--server/sonar-web/src/main/js/apps/overview/pullRequests/__tests__/__snapshots__/PullRequestOverview-test.tsx.snap960
-rw-r--r--server/sonar-web/src/main/js/apps/permission-templates/components/__tests__/__snapshots__/App-test.tsx.snap26
-rw-r--r--server/sonar-web/src/main/js/apps/permission-templates/components/__tests__/__snapshots__/ListItem-test.tsx.snap14
-rw-r--r--server/sonar-web/src/main/js/apps/permission-templates/components/__tests__/__snapshots__/NameCell-test.tsx.snap8
-rw-r--r--server/sonar-web/src/main/js/apps/permission-templates/components/__tests__/__snapshots__/Template-test.tsx.snap36
-rw-r--r--server/sonar-web/src/main/js/apps/permissions/global/components/__tests__/__snapshots__/AllHoldersList-test.tsx.snap164
-rw-r--r--server/sonar-web/src/main/js/apps/permissions/global/components/__tests__/__snapshots__/App-test.tsx.snap32
-rw-r--r--server/sonar-web/src/main/js/apps/permissions/project/components/__tests__/__snapshots__/App-test.tsx.snap80
-rw-r--r--server/sonar-web/src/main/js/apps/permissions/project/components/__tests__/__snapshots__/ApplyTemplate-test.tsx.snap6
-rw-r--r--server/sonar-web/src/main/js/apps/permissions/shared/components/__tests__/__snapshots__/GroupHolder-test.tsx.snap24
-rw-r--r--server/sonar-web/src/main/js/apps/permissions/shared/components/__tests__/__snapshots__/HoldersList-test.tsx.snap106
-rw-r--r--server/sonar-web/src/main/js/apps/permissions/shared/components/__tests__/__snapshots__/UserHolder-test.tsx.snap46
-rw-r--r--server/sonar-web/src/main/js/apps/projectActivity/__tests__/__snapshots__/actions-test.ts.snap40
-rw-r--r--server/sonar-web/src/main/js/apps/projectActivity/__tests__/__snapshots__/utils-test.ts.snap162
-rw-r--r--server/sonar-web/src/main/js/apps/projectActivity/components/__tests__/__snapshots__/ProjectActivityAnalysesList-test.tsx.snap68
-rw-r--r--server/sonar-web/src/main/js/apps/projectActivity/components/__tests__/__snapshots__/ProjectActivityDateInput-test.tsx.snap2
-rw-r--r--server/sonar-web/src/main/js/apps/projectActivity/components/__tests__/__snapshots__/ProjectActivityGraphs-test.tsx.snap104
-rw-r--r--server/sonar-web/src/main/js/apps/projectActivity/components/__tests__/__snapshots__/ProjectActivityPageFilters-test.tsx.snap12
-rw-r--r--server/sonar-web/src/main/js/apps/projectBaseline/components/__tests__/__snapshots__/App-test.tsx.snap34
-rw-r--r--server/sonar-web/src/main/js/apps/projectBaseline/components/__tests__/__snapshots__/AppHeader-test.tsx.snap6
-rw-r--r--server/sonar-web/src/main/js/apps/projectBaseline/components/__tests__/__snapshots__/BaselineSettingReferenceBranch-test.tsx.snap36
-rw-r--r--server/sonar-web/src/main/js/apps/projectBaseline/components/__tests__/__snapshots__/BranchAnalysisListRenderer-test.tsx.snap56
-rw-r--r--server/sonar-web/src/main/js/apps/projectBaseline/components/__tests__/__snapshots__/BranchBaselineSettingModal-test.tsx.snap10
-rw-r--r--server/sonar-web/src/main/js/apps/projectBaseline/components/__tests__/__snapshots__/BranchList-test.tsx.snap20
-rw-r--r--server/sonar-web/src/main/js/apps/projectBaseline/components/__tests__/__snapshots__/BranchListRow-test.tsx.snap20
-rw-r--r--server/sonar-web/src/main/js/apps/projectBaseline/components/__tests__/__snapshots__/ProjectBaselineSelector-test.tsx.snap4
-rw-r--r--server/sonar-web/src/main/js/apps/projectBranches/components/__tests__/__snapshots__/BranchLikeRow-test.tsx.snap76
-rw-r--r--server/sonar-web/src/main/js/apps/projectBranches/components/__tests__/__snapshots__/BranchLikeTable-test.tsx.snap266
-rw-r--r--server/sonar-web/src/main/js/apps/projectBranches/components/__tests__/__snapshots__/BranchLikeTabs-test.tsx.snap86
-rw-r--r--server/sonar-web/src/main/js/apps/projectBranches/components/__tests__/__snapshots__/LifetimeInformationRenderer-test.tsx.snap6
-rw-r--r--server/sonar-web/src/main/js/apps/projectBranches/components/__tests__/__snapshots__/ProjectBranchesApp-test.tsx.snap32
-rw-r--r--server/sonar-web/src/main/js/apps/projectDump/__tests__/__snapshots__/ProjectDumpApp-test.tsx.snap14
-rw-r--r--server/sonar-web/src/main/js/apps/projectDump/components/__tests__/__snapshots__/Import-test.tsx.snap2
-rw-r--r--server/sonar-web/src/main/js/apps/projectKey/__tests__/__snapshots__/Key-test.tsx.snap12
-rw-r--r--server/sonar-web/src/main/js/apps/projectLinks/__tests__/__snapshots__/App-test.tsx.snap20
-rw-r--r--server/sonar-web/src/main/js/apps/projectLinks/__tests__/__snapshots__/Table-test.tsx.snap8
-rw-r--r--server/sonar-web/src/main/js/apps/projectQualityGate/__tests__/__snapshots__/ProjectQualityGateApp-test.tsx.snap30
-rw-r--r--server/sonar-web/src/main/js/apps/projectQualityGate/__tests__/__snapshots__/ProjectQualityGateAppRenderer-test.tsx.snap74
-rw-r--r--server/sonar-web/src/main/js/apps/projectQualityProfiles/__tests__/__snapshots__/ProjectQualityProfilesApp-test.tsx.snap20
-rw-r--r--server/sonar-web/src/main/js/apps/projectQualityProfiles/__tests__/__snapshots__/ProjectQualityProfilesAppRenderer-test.tsx.snap52
-rw-r--r--server/sonar-web/src/main/js/apps/projectQualityProfiles/components/__tests__/__snapshots__/AddLanguageModal-test.tsx.snap12
-rw-r--r--server/sonar-web/src/main/js/apps/projectQualityProfiles/components/__tests__/__snapshots__/LanguageProfileSelectOption-test.tsx.snap6
-rw-r--r--server/sonar-web/src/main/js/apps/projectQualityProfiles/components/__tests__/__snapshots__/SetQualityProfileModal-test.tsx.snap36
-rw-r--r--server/sonar-web/src/main/js/apps/projects/components/__tests__/__snapshots__/AllProjects-test.tsx.snap36
-rw-r--r--server/sonar-web/src/main/js/apps/projects/components/__tests__/__snapshots__/PageHeader-test.tsx.snap8
-rw-r--r--server/sonar-web/src/main/js/apps/projects/components/__tests__/__snapshots__/PerspectiveSelect-test.tsx.snap20
-rw-r--r--server/sonar-web/src/main/js/apps/projects/components/__tests__/__snapshots__/ProjectCreationMenu-test.tsx.snap2
-rw-r--r--server/sonar-web/src/main/js/apps/projects/components/__tests__/__snapshots__/ProjectCreationMenuItem-test.tsx.snap4
-rw-r--r--server/sonar-web/src/main/js/apps/projects/components/__tests__/__snapshots__/ProjectsList-test.tsx.snap10
-rw-r--r--server/sonar-web/src/main/js/apps/projects/components/__tests__/__snapshots__/ProjectsSortingSelect-test.tsx.snap74
-rw-r--r--server/sonar-web/src/main/js/apps/projects/components/project-card/__tests__/__snapshots__/ProjectCard-test.tsx.snap34
-rw-r--r--server/sonar-web/src/main/js/apps/projects/filters/__tests__/__snapshots__/CoverageFilter-test.tsx.snap2
-rw-r--r--server/sonar-web/src/main/js/apps/projects/filters/__tests__/__snapshots__/DuplicationsFilter-test.tsx.snap2
-rw-r--r--server/sonar-web/src/main/js/apps/projects/filters/__tests__/__snapshots__/Filter-test.tsx.snap6
-rw-r--r--server/sonar-web/src/main/js/apps/projects/filters/__tests__/__snapshots__/IssuesFilter-test.tsx.snap2
-rw-r--r--server/sonar-web/src/main/js/apps/projects/filters/__tests__/__snapshots__/LanguagesFilter-test.tsx.snap50
-rw-r--r--server/sonar-web/src/main/js/apps/projects/filters/__tests__/__snapshots__/NewLinesFilter-test.tsx.snap2
-rw-r--r--server/sonar-web/src/main/js/apps/projects/filters/__tests__/__snapshots__/QualifierFilter-test.tsx.snap2
-rw-r--r--server/sonar-web/src/main/js/apps/projects/filters/__tests__/__snapshots__/QualityGateFilter-test.tsx.snap2
-rw-r--r--server/sonar-web/src/main/js/apps/projects/filters/__tests__/__snapshots__/SearchableFilterFooter-test.tsx.snap8
-rw-r--r--server/sonar-web/src/main/js/apps/projects/filters/__tests__/__snapshots__/SecurityReviewFilter-test.tsx.snap2
-rw-r--r--server/sonar-web/src/main/js/apps/projects/filters/__tests__/__snapshots__/SizeFilter-test.tsx.snap2
-rw-r--r--server/sonar-web/src/main/js/apps/projects/filters/__tests__/__snapshots__/TagsFilter-test.tsx.snap72
-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
-rw-r--r--server/sonar-web/src/main/js/apps/quality-profiles/__tests__/__snapshots__/utils-test.ts.snap44
-rw-r--r--server/sonar-web/src/main/js/apps/quality-profiles/changelog/__tests__/__snapshots__/ChangelogContainer-test.tsx.snap18
-rw-r--r--server/sonar-web/src/main/js/apps/quality-profiles/changelog/__tests__/__snapshots__/ChangelogSearch-test.tsx.snap2
-rw-r--r--server/sonar-web/src/main/js/apps/quality-profiles/components/__tests__/__snapshots__/ProfileActions-test.tsx.snap28
-rw-r--r--server/sonar-web/src/main/js/apps/quality-profiles/components/__tests__/__snapshots__/QualityProfilesApp-test.tsx.snap10
-rw-r--r--server/sonar-web/src/main/js/apps/quality-profiles/details/__tests__/__snapshots__/ChangeParentForm-test.tsx.snap16
-rw-r--r--server/sonar-web/src/main/js/apps/quality-profiles/details/__tests__/__snapshots__/ChangeProjectsForm-test.tsx.snap4
-rw-r--r--server/sonar-web/src/main/js/apps/quality-profiles/details/__tests__/__snapshots__/ProfileDetails-test.tsx.snap72
-rw-r--r--server/sonar-web/src/main/js/apps/quality-profiles/details/__tests__/__snapshots__/ProfileInheritance-test.tsx.snap14
-rw-r--r--server/sonar-web/src/main/js/apps/quality-profiles/details/__tests__/__snapshots__/ProfileInheritanceBox-test.tsx.snap8
-rw-r--r--server/sonar-web/src/main/js/apps/quality-profiles/details/__tests__/__snapshots__/ProfilePermissions-test.tsx.snap8
-rw-r--r--server/sonar-web/src/main/js/apps/quality-profiles/details/__tests__/__snapshots__/ProfilePermissionsForm-test.tsx.snap8
-rw-r--r--server/sonar-web/src/main/js/apps/quality-profiles/details/__tests__/__snapshots__/ProfilePermissionsFormSelect-test.tsx.snap6
-rw-r--r--server/sonar-web/src/main/js/apps/quality-profiles/details/__tests__/__snapshots__/ProfilePermissionsGroup-test.tsx.snap2
-rw-r--r--server/sonar-web/src/main/js/apps/quality-profiles/details/__tests__/__snapshots__/ProfileProjects-test.tsx.snap6
-rw-r--r--server/sonar-web/src/main/js/apps/quality-profiles/details/__tests__/__snapshots__/ProfileRules-test.tsx.snap2
-rw-r--r--server/sonar-web/src/main/js/apps/quality-profiles/details/__tests__/__snapshots__/ProfileRulesDeprecatedWarning-test.tsx.snap2
-rw-r--r--server/sonar-web/src/main/js/apps/quality-profiles/details/__tests__/__snapshots__/ProfileRulesRowOfType-test.tsx.snap8
-rw-r--r--server/sonar-web/src/main/js/apps/quality-profiles/details/__tests__/__snapshots__/ProfileRulesRowTotal-test.tsx.snap8
-rw-r--r--server/sonar-web/src/main/js/apps/quality-profiles/details/__tests__/__snapshots__/ProfileRulesSonarWayComparison-test.tsx.snap2
-rw-r--r--server/sonar-web/src/main/js/apps/quality-profiles/home/__tests__/__snapshots__/Evolution-test.tsx.snap4
-rw-r--r--server/sonar-web/src/main/js/apps/quality-profiles/home/__tests__/__snapshots__/EvolutionDeprecated-test.tsx.snap8
-rw-r--r--server/sonar-web/src/main/js/apps/quality-profiles/home/__tests__/__snapshots__/PageHeader-test.tsx.snap14
-rw-r--r--server/sonar-web/src/main/js/apps/quality-profiles/home/__tests__/__snapshots__/ProfilesListHeader-test.tsx.snap8
-rw-r--r--server/sonar-web/src/main/js/apps/security-hotspots/__tests__/__snapshots__/SecurityHotspotsApp-test.tsx.snap38
-rw-r--r--server/sonar-web/src/main/js/apps/security-hotspots/__tests__/__snapshots__/SecurityHotspotsAppRenderer-test.tsx.snap194
-rw-r--r--server/sonar-web/src/main/js/apps/security-hotspots/components/__tests__/__snapshots__/FilterBar-test.tsx.snap104
-rw-r--r--server/sonar-web/src/main/js/apps/security-hotspots/components/__tests__/__snapshots__/HotspotCategory-test.tsx.snap12
-rw-r--r--server/sonar-web/src/main/js/apps/security-hotspots/components/__tests__/__snapshots__/HotspotHeader-test.tsx.snap70
-rw-r--r--server/sonar-web/src/main/js/apps/security-hotspots/components/__tests__/__snapshots__/HotspotList-test.tsx.snap52
-rw-r--r--server/sonar-web/src/main/js/apps/security-hotspots/components/__tests__/__snapshots__/HotspotListItem-test.tsx.snap2
-rw-r--r--server/sonar-web/src/main/js/apps/security-hotspots/components/__tests__/__snapshots__/HotspotOpenInIdeButton-test.tsx.snap10
-rw-r--r--server/sonar-web/src/main/js/apps/security-hotspots/components/__tests__/__snapshots__/HotspotReviewHistory-test.tsx.snap24
-rw-r--r--server/sonar-web/src/main/js/apps/security-hotspots/components/__tests__/__snapshots__/HotspotReviewHistoryAndComments-test.tsx.snap68
-rw-r--r--server/sonar-web/src/main/js/apps/security-hotspots/components/__tests__/__snapshots__/HotspotSimpleList-test.tsx.snap16
-rw-r--r--server/sonar-web/src/main/js/apps/security-hotspots/components/__tests__/__snapshots__/HotspotSnippetContainer-test.tsx.snap68
-rw-r--r--server/sonar-web/src/main/js/apps/security-hotspots/components/__tests__/__snapshots__/HotspotSnippetContainerRenderer-test.tsx.snap194
-rw-r--r--server/sonar-web/src/main/js/apps/security-hotspots/components/__tests__/__snapshots__/HotspotViewer-test.tsx.snap34
-rw-r--r--server/sonar-web/src/main/js/apps/security-hotspots/components/__tests__/__snapshots__/HotspotViewerRenderer-test.tsx.snap924
-rw-r--r--server/sonar-web/src/main/js/apps/security-hotspots/components/__tests__/__snapshots__/HotspotViewerTabs-test.tsx.snap96
-rw-r--r--server/sonar-web/src/main/js/apps/security-hotspots/components/__tests__/__snapshots__/StatusUpdateSuccessModal-test.tsx.snap6
-rw-r--r--server/sonar-web/src/main/js/apps/security-hotspots/components/assignee/__tests__/__snapshots__/Assignee-test.tsx.snap2
-rw-r--r--server/sonar-web/src/main/js/apps/security-hotspots/components/assignee/__tests__/__snapshots__/AssigneeRenderer-test.tsx.snap10
-rw-r--r--server/sonar-web/src/main/js/apps/security-hotspots/components/assignee/__tests__/__snapshots__/AssigneeSelection-test.tsx.snap4
-rw-r--r--server/sonar-web/src/main/js/apps/settings/components/__tests__/__snapshots__/AdditionalCategories-test.tsx.snap76
-rw-r--r--server/sonar-web/src/main/js/apps/settings/components/__tests__/__snapshots__/AnalysisScope-test.tsx.snap14
-rw-r--r--server/sonar-web/src/main/js/apps/settings/components/__tests__/__snapshots__/DefinitionActions-test.tsx.snap2
-rw-r--r--server/sonar-web/src/main/js/apps/settings/components/__tests__/__snapshots__/DefinitionRenderer-test.tsx.snap108
-rw-r--r--server/sonar-web/src/main/js/apps/settings/components/__tests__/__snapshots__/Languages-test.tsx.snap20
-rw-r--r--server/sonar-web/src/main/js/apps/settings/components/__tests__/__snapshots__/NewCodePeriod-test.tsx.snap2
-rw-r--r--server/sonar-web/src/main/js/apps/settings/components/__tests__/__snapshots__/PageHeader-test.tsx.snap16
-rw-r--r--server/sonar-web/src/main/js/apps/settings/components/__tests__/__snapshots__/SettingsApp-test.tsx.snap2
-rw-r--r--server/sonar-web/src/main/js/apps/settings/components/__tests__/__snapshots__/SettingsAppRenderer-test.tsx.snap164
-rw-r--r--server/sonar-web/src/main/js/apps/settings/components/__tests__/__snapshots__/SettingsSearchRenderer-test.tsx.snap4
-rw-r--r--server/sonar-web/src/main/js/apps/settings/components/__tests__/__snapshots__/SubCategoryDefinitionsList-test.tsx.snap36
-rw-r--r--server/sonar-web/src/main/js/apps/settings/components/almIntegration/__tests__/__snapshots__/AlmBindingDefinitionBox-test.tsx.snap6
-rw-r--r--server/sonar-web/src/main/js/apps/settings/components/almIntegration/__tests__/__snapshots__/AlmBindingDefinitionForm-test.tsx.snap4
-rw-r--r--server/sonar-web/src/main/js/apps/settings/components/almIntegration/__tests__/__snapshots__/AlmBindingDefinitionFormField-test.tsx.snap2
-rw-r--r--server/sonar-web/src/main/js/apps/settings/components/almIntegration/__tests__/__snapshots__/AlmBindingDefinitionFormRenderer-test.tsx.snap18
-rw-r--r--server/sonar-web/src/main/js/apps/settings/components/almIntegration/__tests__/__snapshots__/AlmIntegration-test.tsx.snap14
-rw-r--r--server/sonar-web/src/main/js/apps/settings/components/almIntegration/__tests__/__snapshots__/AlmIntegrationRenderer-test.tsx.snap84
-rw-r--r--server/sonar-web/src/main/js/apps/settings/components/almIntegration/__tests__/__snapshots__/AlmTab-test.tsx.snap6
-rw-r--r--server/sonar-web/src/main/js/apps/settings/components/almIntegration/__tests__/__snapshots__/AlmTabRenderer-test.tsx.snap24
-rw-r--r--server/sonar-web/src/main/js/apps/settings/components/almIntegration/__tests__/__snapshots__/AzureForm-test.tsx.snap4
-rw-r--r--server/sonar-web/src/main/js/apps/settings/components/almIntegration/__tests__/__snapshots__/BitbucketCloudForm-test.tsx.snap8
-rw-r--r--server/sonar-web/src/main/js/apps/settings/components/almIntegration/__tests__/__snapshots__/BitbucketForm-test.tsx.snap20
-rw-r--r--server/sonar-web/src/main/js/apps/settings/components/almIntegration/__tests__/__snapshots__/BitbucketServerForm-test.tsx.snap4
-rw-r--r--server/sonar-web/src/main/js/apps/settings/components/almIntegration/__tests__/__snapshots__/CreationTooltip-test.tsx.snap2
-rw-r--r--server/sonar-web/src/main/js/apps/settings/components/almIntegration/__tests__/__snapshots__/DeleteModal-test.tsx.snap4
-rw-r--r--server/sonar-web/src/main/js/apps/settings/components/almIntegration/__tests__/__snapshots__/GithubForm-test.tsx.snap4
-rw-r--r--server/sonar-web/src/main/js/apps/settings/components/almIntegration/__tests__/__snapshots__/GitlabForm-test.tsx.snap4
-rw-r--r--server/sonar-web/src/main/js/apps/settings/components/inputs/__tests__/__snapshots__/InputForJSON-test.tsx.snap2
-rw-r--r--server/sonar-web/src/main/js/apps/settings/components/inputs/__tests__/__snapshots__/PrimitiveInput-test.tsx.snap120
-rw-r--r--server/sonar-web/src/main/js/apps/settings/components/pullRequestDecorationBinding/__tests__/__snapshots__/AlmSpecificForm-test.tsx.snap2
-rw-r--r--server/sonar-web/src/main/js/apps/settings/components/pullRequestDecorationBinding/__tests__/__snapshots__/PRDecorationBinding-test.tsx.snap4
-rw-r--r--server/sonar-web/src/main/js/apps/settings/components/pullRequestDecorationBinding/__tests__/__snapshots__/PRDecorationBindingRenderer-test.tsx.snap86
-rw-r--r--server/sonar-web/src/main/js/apps/settings/encryption/__tests__/__snapshots__/EncryptionForm-test.tsx.snap2
-rw-r--r--server/sonar-web/src/main/js/apps/settings/encryption/__tests__/__snapshots__/GenerateSecretKeyForm-test.tsx.snap2
-rw-r--r--server/sonar-web/src/main/js/apps/system/components/__tests__/__snapshots__/App-test.tsx.snap128
-rw-r--r--server/sonar-web/src/main/js/apps/system/components/__tests__/__snapshots__/ClusterSysInfos-test.tsx.snap26
-rw-r--r--server/sonar-web/src/main/js/apps/system/components/__tests__/__snapshots__/StandaloneSysInfos-test.tsx.snap34
-rw-r--r--server/sonar-web/src/main/js/apps/system/components/info-items/__tests__/__snapshots__/HealthCard-test.tsx.snap6
-rw-r--r--server/sonar-web/src/main/js/apps/system/components/info-items/__tests__/__snapshots__/Section-test.tsx.snap8
-rw-r--r--server/sonar-web/src/main/js/apps/system/components/info-items/__tests__/__snapshots__/SysInfoItem-test.tsx.snap2
-rw-r--r--server/sonar-web/src/main/js/apps/tutorials/components/__tests__/__snapshots__/TutorialsApp-test.tsx.snap42
-rw-r--r--server/sonar-web/src/main/js/apps/users/__tests__/__snapshots__/UsersApp-test.tsx.snap26
-rw-r--r--server/sonar-web/src/main/js/apps/users/__tests__/__snapshots__/UsersList-test.tsx.snap8
-rw-r--r--server/sonar-web/src/main/js/apps/users/components/__tests__/__snapshots__/GroupsForm-test.tsx.snap4
-rw-r--r--server/sonar-web/src/main/js/apps/users/components/__tests__/__snapshots__/TokensFormItem-test.tsx.snap2
-rw-r--r--server/sonar-web/src/main/js/apps/users/components/__tests__/__snapshots__/TokensFormModal-test.tsx.snap2
-rw-r--r--server/sonar-web/src/main/js/apps/users/components/__tests__/__snapshots__/UserListItem-test.tsx.snap32
-rw-r--r--server/sonar-web/src/main/js/apps/users/components/__tests__/__snapshots__/UserListItemIdentity-test.tsx.snap8
-rw-r--r--server/sonar-web/src/main/js/apps/web-api/components/__tests__/__snapshots__/Action-test.tsx.snap36
-rw-r--r--server/sonar-web/src/main/js/apps/web-api/components/__tests__/__snapshots__/Domain-test.tsx.snap92
-rw-r--r--server/sonar-web/src/main/js/apps/web-api/components/__tests__/__snapshots__/Menu-test.tsx.snap18
-rw-r--r--server/sonar-web/src/main/js/apps/web-api/components/__tests__/__snapshots__/Params-test.tsx.snap24
-rw-r--r--server/sonar-web/src/main/js/apps/web-api/components/__tests__/__snapshots__/ResponseExample-test.tsx.snap2
-rw-r--r--server/sonar-web/src/main/js/apps/web-api/components/__tests__/__snapshots__/WebApiApp-test.tsx.snap18
-rw-r--r--server/sonar-web/src/main/js/apps/webhooks/components/__tests__/__snapshots__/App-test.tsx.snap6
-rw-r--r--server/sonar-web/src/main/js/apps/webhooks/components/__tests__/__snapshots__/CreateWebhookForm-test.tsx.snap6
-rw-r--r--server/sonar-web/src/main/js/apps/webhooks/components/__tests__/__snapshots__/DeliveriesForm-test.tsx.snap4
-rw-r--r--server/sonar-web/src/main/js/apps/webhooks/components/__tests__/__snapshots__/LatestDeliveryForm-test.tsx.snap6
-rw-r--r--server/sonar-web/src/main/js/apps/webhooks/components/__tests__/__snapshots__/PageHeader-test.tsx.snap2
-rw-r--r--server/sonar-web/src/main/js/apps/webhooks/components/__tests__/__snapshots__/WebhookItem-test.tsx.snap4
-rw-r--r--server/sonar-web/src/main/js/apps/webhooks/components/__tests__/__snapshots__/WebhooksList-test.tsx.snap4
270 files changed, 7252 insertions, 7252 deletions
diff --git a/server/sonar-web/src/main/js/apps/background-tasks/components/__tests__/__snapshots__/BackgroundTasksApp-test.tsx.snap b/server/sonar-web/src/main/js/apps/background-tasks/components/__tests__/__snapshots__/BackgroundTasksApp-test.tsx.snap
index 9583b2a6780..2789a48d441 100644
--- a/server/sonar-web/src/main/js/apps/background-tasks/components/__tests__/__snapshots__/BackgroundTasksApp-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/background-tasks/components/__tests__/__snapshots__/BackgroundTasksApp-test.tsx.snap
@@ -25,49 +25,49 @@ exports[`should render correctly: loaded 1`] = `
/>
<Header
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "foo",
"name": "MyProject",
"qualifier": "TRK",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
/>
<Stats
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "foo",
"name": "MyProject",
"qualifier": "TRK",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
failingCount={15}
@@ -77,25 +77,25 @@ exports[`should render correctly: loaded 1`] = `
/>
<Search
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "foo",
"name": "MyProject",
"qualifier": "TRK",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
currents="__ALL__"
@@ -106,8 +106,8 @@ exports[`should render correctly: loaded 1`] = `
status="__ALL_EXCEPT_PENDING__"
taskType="ALL_TYPES"
types={
- Object {
- "taskTypes": Array [
+ {
+ "taskTypes": [
"REPORT",
"PROJECT_EXPORT",
"PROJECT_IMPORT",
@@ -118,33 +118,33 @@ exports[`should render correctly: loaded 1`] = `
/>
<Tasks
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "foo",
"name": "MyProject",
"qualifier": "TRK",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
loading={false}
onCancelTask={[Function]}
onFilterTask={[Function]}
tasks={
- Array [
- Object {
+ [
+ {
"componentId": "AWBLZYhGOUrjxRA-u6ex",
"componentKey": "sonar-csharp",
"componentName": "SonarC#",
@@ -161,9 +161,9 @@ exports[`should render correctly: loaded 1`] = `
"submittedAt": "2019-02-19T16:47:35+0100",
"type": "VIEW_REFRESH",
"warningCount": 0,
- "warnings": Array [],
+ "warnings": [],
},
- Object {
+ {
"componentId": "AV2ZaHs1Wa2znA6pDz1l",
"componentKey": "c-cpp-build-wrapper",
"componentName": "C/C++ Build Wrapper",
@@ -178,7 +178,7 @@ exports[`should render correctly: loaded 1`] = `
"submittedAt": "2019-02-19T16:47:35+0100",
"type": "VIEW_REFRESH",
"warningCount": 0,
- "warnings": Array [],
+ "warnings": [],
},
]
}
diff --git a/server/sonar-web/src/main/js/apps/background-tasks/components/__tests__/__snapshots__/TaskActions-test.tsx.snap b/server/sonar-web/src/main/js/apps/background-tasks/components/__tests__/__snapshots__/TaskActions-test.tsx.snap
index f526924f1b5..f0b52ade1c0 100644
--- a/server/sonar-web/src/main/js/apps/background-tasks/components/__tests__/__snapshots__/TaskActions-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/background-tasks/components/__tests__/__snapshots__/TaskActions-test.tsx.snap
@@ -123,7 +123,7 @@ exports[`shows scanner context 1`] = `
<ScannerContext
onClose={[Function]}
task={
- Object {
+ {
"analysisId": "x123",
"componentKey": "foo",
"componentName": "Foo",
@@ -142,7 +142,7 @@ exports[`shows stack trace 1`] = `
<Stacktrace
onClose={[Function]}
task={
- Object {
+ {
"analysisId": "x123",
"componentKey": "foo",
"componentName": "Foo",
diff --git a/server/sonar-web/src/main/js/apps/background-tasks/components/__tests__/__snapshots__/TaskComponent-test.tsx.snap b/server/sonar-web/src/main/js/apps/background-tasks/components/__tests__/__snapshots__/TaskComponent-test.tsx.snap
index d10fe462edc..6b9c12aa240 100644
--- a/server/sonar-web/src/main/js/apps/background-tasks/components/__tests__/__snapshots__/TaskComponent-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/background-tasks/components/__tests__/__snapshots__/TaskComponent-test.tsx.snap
@@ -12,7 +12,7 @@ exports[`renders correctly 1`] = `
<ForwardRef(Link)
className="spacer-right"
to={
- Object {
+ {
"pathname": "/dashboard",
"search": "?id=foo",
}
@@ -34,7 +34,7 @@ exports[`renders correctly: branch 1`] = `
<ForwardRef(Link)
className="spacer-right"
to={
- Object {
+ {
"pathname": "/dashboard",
"search": "?branch=feature&id=foo",
}
@@ -47,7 +47,7 @@ exports[`renders correctly: branch 1`] = `
>
<span
style={
- Object {
+ {
"marginLeft": 5,
"marginRight": 5,
}
@@ -72,7 +72,7 @@ exports[`renders correctly: branch 2`] = `
<ForwardRef(Link)
className="spacer-right"
to={
- Object {
+ {
"pathname": "/dashboard",
"search": "?branch=branch-6.7&id=foo",
}
@@ -85,7 +85,7 @@ exports[`renders correctly: branch 2`] = `
>
<span
style={
- Object {
+ {
"marginLeft": 5,
"marginRight": 5,
}
@@ -114,7 +114,7 @@ exports[`renders correctly: portfolio 1`] = `
<ForwardRef(Link)
className="spacer-right"
to={
- Object {
+ {
"pathname": "/portfolio",
"search": "?id=foo",
}
@@ -136,7 +136,7 @@ exports[`renders correctly: pull request 1`] = `
<ForwardRef(Link)
className="spacer-right"
to={
- Object {
+ {
"pathname": "/dashboard",
"search": "?id=foo&pullRequest=pr-89",
}
@@ -148,7 +148,7 @@ exports[`renders correctly: pull request 1`] = `
>
<span
style={
- Object {
+ {
"marginLeft": 5,
"marginRight": 5,
}
diff --git a/server/sonar-web/src/main/js/apps/background-tasks/components/__tests__/__snapshots__/WorkersForm-test.tsx.snap b/server/sonar-web/src/main/js/apps/background-tasks/components/__tests__/__snapshots__/WorkersForm-test.tsx.snap
index 077ddd74661..aa434b1ece9 100644
--- a/server/sonar-web/src/main/js/apps/background-tasks/components/__tests__/__snapshots__/WorkersForm-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/background-tasks/components/__tests__/__snapshots__/WorkersForm-test.tsx.snap
@@ -26,51 +26,51 @@ exports[`changes select 1`] = `
isSearchable={false}
onChange={[Function]}
options={
- Array [
- Object {
+ [
+ {
"label": "1",
"value": 1,
},
- Object {
+ {
"label": "2",
"value": 2,
},
- Object {
+ {
"label": "3",
"value": 3,
},
- Object {
+ {
"label": "4",
"value": 4,
},
- Object {
+ {
"label": "5",
"value": 5,
},
- Object {
+ {
"label": "6",
"value": 6,
},
- Object {
+ {
"label": "7",
"value": 7,
},
- Object {
+ {
"label": "8",
"value": 8,
},
- Object {
+ {
"label": "9",
"value": 9,
},
- Object {
+ {
"label": "10",
"value": 10,
},
]
}
value={
- Object {
+ {
"label": "1",
"value": 1,
}
@@ -129,51 +129,51 @@ exports[`changes select 2`] = `
isSearchable={false}
onChange={[Function]}
options={
- Array [
- Object {
+ [
+ {
"label": "1",
"value": 1,
},
- Object {
+ {
"label": "2",
"value": 2,
},
- Object {
+ {
"label": "3",
"value": 3,
},
- Object {
+ {
"label": "4",
"value": 4,
},
- Object {
+ {
"label": "5",
"value": 5,
},
- Object {
+ {
"label": "6",
"value": 6,
},
- Object {
+ {
"label": "7",
"value": 7,
},
- Object {
+ {
"label": "8",
"value": 8,
},
- Object {
+ {
"label": "9",
"value": 9,
},
- Object {
+ {
"label": "10",
"value": 10,
},
]
}
value={
- Object {
+ {
"label": "7",
"value": 7,
}
diff --git a/server/sonar-web/src/main/js/apps/code/__tests__/__snapshots__/utils-test.tsx.snap b/server/sonar-web/src/main/js/apps/code/__tests__/__snapshots__/utils-test.tsx.snap
index fe6727e859a..f6289e4d45d 100644
--- a/server/sonar-web/src/main/js/apps/code/__tests__/__snapshots__/utils-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/code/__tests__/__snapshots__/utils-test.tsx.snap
@@ -1,7 +1,7 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`getCodeMetrics should return the right metrics for apps 1`] = `
-Array [
+[
"alert_status",
"ncloc",
"bugs",
@@ -14,7 +14,7 @@ Array [
`;
exports[`getCodeMetrics should return the right metrics for portfolios 1`] = `
-Array [
+[
"releasability_rating",
"new_reliability_rating",
"new_security_rating",
@@ -31,7 +31,7 @@ Array [
`;
exports[`getCodeMetrics should return the right metrics for portfolios 2`] = `
-Array [
+[
"releasability_rating",
"new_reliability_rating",
"new_security_rating",
@@ -49,7 +49,7 @@ Array [
`;
exports[`getCodeMetrics should return the right metrics for portfolios 3`] = `
-Array [
+[
"releasability_rating",
"new_reliability_rating",
"new_security_rating",
@@ -61,7 +61,7 @@ Array [
`;
exports[`getCodeMetrics should return the right metrics for portfolios 4`] = `
-Array [
+[
"releasability_rating",
"reliability_rating",
"security_rating",
@@ -73,7 +73,7 @@ Array [
`;
exports[`getCodeMetrics should return the right metrics for projects 1`] = `
-Array [
+[
"ncloc",
"bugs",
"vulnerabilities",
@@ -85,7 +85,7 @@ Array [
`;
exports[`getCodeMetrics should return the right metrics for projects 2`] = `
-Array [
+[
"new_lines",
"bugs",
"vulnerabilities",
diff --git a/server/sonar-web/src/main/js/apps/code/components/__tests__/__snapshots__/CodeApp-test.tsx.snap b/server/sonar-web/src/main/js/apps/code/components/__tests__/__snapshots__/CodeApp-test.tsx.snap
index 56b99a9c95a..7844a278b33 100644
--- a/server/sonar-web/src/main/js/apps/code/components/__tests__/__snapshots__/CodeApp-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/code/components/__tests__/__snapshots__/CodeApp-test.tsx.snap
@@ -1,53 +1,53 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`should correcly display new/overall measure for portfolio: new metrics 1`] = `
-Object {
- "baseComponent": Object {
- "breadcrumbs": Array [],
+{
+ "baseComponent": {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "TRK",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
},
"branchLike": undefined,
- "components": Array [
- Object {
- "breadcrumbs": Array [],
+ "components": [
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "TRK",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
},
],
"cycle": true,
- "metrics": Array [
- Object {
+ "metrics": [
+ {
"domain": "new_reliability_rating",
"id": "4",
"key": "new_reliability_rating",
@@ -60,79 +60,79 @@ Object {
"onGoToParent": [Function],
"onHighlight": [Function],
"onSelect": [Function],
- "rootComponent": Object {
- "breadcrumbs": Array [],
+ "rootComponent": {
+ "breadcrumbs": [],
"canBrowseAllChildProjects": true,
"key": "my-project",
"name": "MyProject",
"qualifier": "VW",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
},
"selected": undefined,
}
`;
exports[`should correcly display new/overall measure for portfolio: overall metrics 1`] = `
-Object {
- "baseComponent": Object {
- "breadcrumbs": Array [],
+{
+ "baseComponent": {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "TRK",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
},
"branchLike": undefined,
- "components": Array [
- Object {
- "breadcrumbs": Array [],
+ "components": [
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "TRK",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
},
],
"cycle": true,
- "metrics": Array [
- Object {
+ "metrics": [
+ {
"domain": "reliability_rating",
"id": "2",
"key": "reliability_rating",
@@ -145,26 +145,26 @@ Object {
"onGoToParent": [Function],
"onHighlight": [Function],
"onSelect": [Function],
- "rootComponent": Object {
- "breadcrumbs": Array [],
+ "rootComponent": {
+ "breadcrumbs": [],
"canBrowseAllChildProjects": true,
"key": "my-project",
"name": "MyProject",
"qualifier": "VW",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
},
"selected": undefined,
}
@@ -265,8 +265,8 @@ exports[`should render correclty when no sub component for APP: no search 1`] =
/>
<withRouter(Search)
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"canBrowseAllChildProjects": true,
"key": "foo",
"name": "foo",
@@ -285,13 +285,13 @@ exports[`should render correclty when no sub component for APP: no search 1`] =
className="boxed-group spacer-top search-results"
>
<withKeyboardNavigation(Components)
- components={Array []}
- metrics={Array []}
+ components={[]}
+ metrics={[]}
onHighlight={[Function]}
onSelect={[Function]}
rootComponent={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"canBrowseAllChildProjects": true,
"key": "foo",
"name": "foo",
@@ -322,8 +322,8 @@ exports[`should render correclty when no sub component for APP: with sub compone
/>
<withRouter(Search)
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"canBrowseAllChildProjects": true,
"key": "foo",
"name": "foo",
@@ -343,8 +343,8 @@ exports[`should render correclty when no sub component for APP: with sub compone
>
<withKeyboardNavigation(Components)
baseComponent={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"canBrowseAllChildProjects": true,
"key": "foo",
"name": "foo",
@@ -352,33 +352,33 @@ exports[`should render correclty when no sub component for APP: with sub compone
}
}
components={
- Array [
- Object {
- "breadcrumbs": Array [],
+ [
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "FIL",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
},
]
}
cycle={true}
metrics={
- Array [
- Object {
+ [
+ {
"domain": "Coverage",
"id": "2",
"key": "coverage",
@@ -393,8 +393,8 @@ exports[`should render correclty when no sub component for APP: with sub compone
onHighlight={[Function]}
onSelect={[Function]}
rootComponent={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"canBrowseAllChildProjects": true,
"key": "foo",
"name": "foo",
@@ -462,8 +462,8 @@ exports[`should render correclty when no sub component for SVW: no search 1`] =
/>
<withRouter(Search)
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"canBrowseAllChildProjects": true,
"key": "foo",
"name": "foo",
@@ -482,13 +482,13 @@ exports[`should render correclty when no sub component for SVW: no search 1`] =
className="boxed-group spacer-top search-results"
>
<withKeyboardNavigation(Components)
- components={Array []}
- metrics={Array []}
+ components={[]}
+ metrics={[]}
onHighlight={[Function]}
onSelect={[Function]}
rootComponent={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"canBrowseAllChildProjects": true,
"key": "foo",
"name": "foo",
@@ -519,8 +519,8 @@ exports[`should render correclty when no sub component for SVW: with sub compone
/>
<withRouter(Search)
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"canBrowseAllChildProjects": true,
"key": "foo",
"name": "foo",
@@ -540,8 +540,8 @@ exports[`should render correclty when no sub component for SVW: with sub compone
>
<withKeyboardNavigation(Components)
baseComponent={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"canBrowseAllChildProjects": true,
"key": "foo",
"name": "foo",
@@ -549,39 +549,39 @@ exports[`should render correclty when no sub component for SVW: with sub compone
}
}
components={
- Array [
- Object {
- "breadcrumbs": Array [],
+ [
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "FIL",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
},
]
}
cycle={true}
- metrics={Array []}
+ metrics={[]}
newCodeSelected={true}
onEndOfList={[Function]}
onGoToParent={[Function]}
onHighlight={[Function]}
onSelect={[Function]}
rootComponent={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"canBrowseAllChildProjects": true,
"key": "foo",
"name": "foo",
@@ -649,8 +649,8 @@ exports[`should render correclty when no sub component for TRK: no search 1`] =
/>
<withRouter(Search)
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"canBrowseAllChildProjects": true,
"key": "foo",
"name": "foo",
@@ -669,13 +669,13 @@ exports[`should render correclty when no sub component for TRK: no search 1`] =
className="boxed-group spacer-top search-results"
>
<withKeyboardNavigation(Components)
- components={Array []}
- metrics={Array []}
+ components={[]}
+ metrics={[]}
onHighlight={[Function]}
onSelect={[Function]}
rootComponent={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"canBrowseAllChildProjects": true,
"key": "foo",
"name": "foo",
@@ -706,8 +706,8 @@ exports[`should render correclty when no sub component for TRK: with sub compone
/>
<withRouter(Search)
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"canBrowseAllChildProjects": true,
"key": "foo",
"name": "foo",
@@ -727,8 +727,8 @@ exports[`should render correclty when no sub component for TRK: with sub compone
>
<withKeyboardNavigation(Components)
baseComponent={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"canBrowseAllChildProjects": true,
"key": "foo",
"name": "foo",
@@ -736,33 +736,33 @@ exports[`should render correclty when no sub component for TRK: with sub compone
}
}
components={
- Array [
- Object {
- "breadcrumbs": Array [],
+ [
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "FIL",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
},
]
}
cycle={true}
metrics={
- Array [
- Object {
+ [
+ {
"domain": "Coverage",
"id": "2",
"key": "coverage",
@@ -777,8 +777,8 @@ exports[`should render correclty when no sub component for TRK: with sub compone
onHighlight={[Function]}
onSelect={[Function]}
rootComponent={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"canBrowseAllChildProjects": true,
"key": "foo",
"name": "foo",
@@ -846,8 +846,8 @@ exports[`should render correclty when no sub component for VW: no search 1`] = `
/>
<withRouter(Search)
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"canBrowseAllChildProjects": true,
"key": "foo",
"name": "foo",
@@ -866,13 +866,13 @@ exports[`should render correclty when no sub component for VW: no search 1`] = `
className="boxed-group spacer-top search-results"
>
<withKeyboardNavigation(Components)
- components={Array []}
- metrics={Array []}
+ components={[]}
+ metrics={[]}
onHighlight={[Function]}
onSelect={[Function]}
rootComponent={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"canBrowseAllChildProjects": true,
"key": "foo",
"name": "foo",
@@ -903,8 +903,8 @@ exports[`should render correclty when no sub component for VW: with sub componen
/>
<withRouter(Search)
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"canBrowseAllChildProjects": true,
"key": "foo",
"name": "foo",
@@ -924,8 +924,8 @@ exports[`should render correclty when no sub component for VW: with sub componen
>
<withKeyboardNavigation(Components)
baseComponent={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"canBrowseAllChildProjects": true,
"key": "foo",
"name": "foo",
@@ -933,39 +933,39 @@ exports[`should render correclty when no sub component for VW: with sub componen
}
}
components={
- Array [
- Object {
- "breadcrumbs": Array [],
+ [
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "FIL",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
},
]
}
cycle={true}
- metrics={Array []}
+ metrics={[]}
newCodeSelected={true}
onEndOfList={[Function]}
onGoToParent={[Function]}
onHighlight={[Function]}
onSelect={[Function]}
rootComponent={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"canBrowseAllChildProjects": true,
"key": "foo",
"name": "foo",
diff --git a/server/sonar-web/src/main/js/apps/code/components/__tests__/__snapshots__/ComponentName-test.tsx.snap b/server/sonar-web/src/main/js/apps/code/components/__tests__/__snapshots__/ComponentName-test.tsx.snap
index 46034a852f6..a4ac8a570ab 100644
--- a/server/sonar-web/src/main/js/apps/code/components/__tests__/__snapshots__/ComponentName-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/code/components/__tests__/__snapshots__/ComponentName-test.tsx.snap
@@ -111,7 +111,7 @@ foo"
<span>
<span
style={
- Object {
+ {
"color": "#656565",
}
}
@@ -172,7 +172,7 @@ foo:src/index.tsx"
<ForwardRef(Link)
className="display-inline-flex-center link-no-underline"
to={
- Object {
+ {
"pathname": "/code",
"search": "?id=foo&selected=foo%3Asrc%2Findex.tsx",
}
@@ -292,7 +292,7 @@ foo"
<ForwardRef(Link)
className="display-inline-flex-center link-no-underline"
to={
- Object {
+ {
"pathname": "/dashboard",
"search": "?id=src%2Fmain%2Fts%2Fapp&code_scope=new",
}
@@ -325,7 +325,7 @@ foo"
<ForwardRef(Link)
className="display-inline-flex-center link-no-underline"
to={
- Object {
+ {
"pathname": "/dashboard",
"search": "?id=src%2Fmain%2Fts%2Fapp&branch=foo&code_scope=new",
}
@@ -369,7 +369,7 @@ foo"
<ForwardRef(Link)
className="display-inline-flex-center link-no-underline"
to={
- Object {
+ {
"pathname": "/dashboard",
"search": "?id=src%2Fmain%2Fts%2Fapp&code_scope=new",
}
diff --git a/server/sonar-web/src/main/js/apps/code/components/__tests__/__snapshots__/Components-test.tsx.snap b/server/sonar-web/src/main/js/apps/code/components/__tests__/__snapshots__/Components-test.tsx.snap
index 7e0f6534cb4..07a04fa4dfd 100644
--- a/server/sonar-web/src/main/js/apps/code/components/__tests__/__snapshots__/Components-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/code/components/__tests__/__snapshots__/Components-test.tsx.snap
@@ -6,7 +6,7 @@ exports[`renders correctly 1`] = `
>
<ComponentsHeader
baseComponent={
- Object {
+ {
"branch": "develop",
"key": "foo",
"name": "Foo",
@@ -15,12 +15,12 @@ exports[`renders correctly 1`] = `
}
canBePinned={true}
metrics={
- Array [
+ [
"coverage",
]
}
rootComponent={
- Object {
+ {
"branch": "develop",
"key": "foo",
"name": "Foo",
@@ -32,7 +32,7 @@ exports[`renders correctly 1`] = `
<withScrollTo(Component)
canBePinned={true}
component={
- Object {
+ {
"branch": "develop",
"key": "foo",
"name": "Foo",
@@ -43,8 +43,8 @@ exports[`renders correctly 1`] = `
isBaseComponent={true}
key="foo"
metrics={
- Array [
- Object {
+ [
+ {
"id": "1",
"key": "coverage",
"name": "Coverage",
@@ -53,7 +53,7 @@ exports[`renders correctly 1`] = `
]
}
rootComponent={
- Object {
+ {
"branch": "develop",
"key": "foo",
"name": "Foo",
@@ -83,7 +83,7 @@ exports[`renders correctly 1`] = `
canBePinned={true}
canBrowse={true}
component={
- Object {
+ {
"branch": "develop",
"key": "foo",
"name": "Foo",
@@ -93,8 +93,8 @@ exports[`renders correctly 1`] = `
hasBaseComponent={true}
key="foo/develop"
metrics={
- Array [
- Object {
+ [
+ {
"id": "1",
"key": "coverage",
"name": "Coverage",
@@ -103,7 +103,7 @@ exports[`renders correctly 1`] = `
]
}
rootComponent={
- Object {
+ {
"branch": "develop",
"key": "foo",
"name": "Foo",
@@ -133,7 +133,7 @@ exports[`renders correctly for a search 1`] = `
<withScrollTo(Component)
canBrowse={true}
component={
- Object {
+ {
"branch": "develop",
"key": "foo",
"name": "Foo",
@@ -142,9 +142,9 @@ exports[`renders correctly for a search 1`] = `
}
hasBaseComponent={false}
key="foo/develop"
- metrics={Array []}
+ metrics={[]}
rootComponent={
- Object {
+ {
"branch": "develop",
"key": "foo",
"name": "Foo",
@@ -172,7 +172,7 @@ exports[`renders correctly for leak 1`] = `
>
<ComponentsHeader
baseComponent={
- Object {
+ {
"branch": "develop",
"key": "foo",
"name": "Foo",
@@ -181,12 +181,12 @@ exports[`renders correctly for leak 1`] = `
}
canBePinned={true}
metrics={
- Array [
+ [
"coverage",
]
}
rootComponent={
- Object {
+ {
"branch": "develop",
"key": "foo",
"name": "Foo",
@@ -197,7 +197,7 @@ exports[`renders correctly for leak 1`] = `
<tbody>
<withScrollTo(Component)
branchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": false,
@@ -206,7 +206,7 @@ exports[`renders correctly for leak 1`] = `
}
canBePinned={true}
component={
- Object {
+ {
"branch": "develop",
"key": "foo",
"name": "Foo",
@@ -217,8 +217,8 @@ exports[`renders correctly for leak 1`] = `
isBaseComponent={true}
key="foo"
metrics={
- Array [
- Object {
+ [
+ {
"id": "1",
"key": "coverage",
"name": "Coverage",
@@ -227,7 +227,7 @@ exports[`renders correctly for leak 1`] = `
]
}
rootComponent={
- Object {
+ {
"branch": "develop",
"key": "foo",
"name": "Foo",
@@ -255,7 +255,7 @@ exports[`renders correctly for leak 1`] = `
</tr>
<withScrollTo(Component)
branchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": false,
@@ -265,7 +265,7 @@ exports[`renders correctly for leak 1`] = `
canBePinned={true}
canBrowse={true}
component={
- Object {
+ {
"branch": "develop",
"key": "foo",
"name": "Foo",
@@ -275,8 +275,8 @@ exports[`renders correctly for leak 1`] = `
hasBaseComponent={true}
key="foo/develop"
metrics={
- Array [
- Object {
+ [
+ {
"id": "1",
"key": "coverage",
"name": "Coverage",
@@ -285,7 +285,7 @@ exports[`renders correctly for leak 1`] = `
]
}
rootComponent={
- Object {
+ {
"branch": "develop",
"key": "foo",
"name": "Foo",
diff --git a/server/sonar-web/src/main/js/apps/code/components/__tests__/__snapshots__/Search-test.tsx.snap b/server/sonar-web/src/main/js/apps/code/components/__tests__/__snapshots__/Search-test.tsx.snap
index 9fa3873195f..6dc5fb62d22 100644
--- a/server/sonar-web/src/main/js/apps/code/components/__tests__/__snapshots__/Search-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/code/components/__tests__/__snapshots__/Search-test.tsx.snap
@@ -31,12 +31,12 @@ exports[`should render correcly: new code toggle for portfolio 1`] = `
disabled={false}
onCheck={[MockFunction]}
options={
- Array [
- Object {
+ [
+ {
"label": "projects.view.new_code",
"value": true,
},
- Object {
+ {
"label": "projects.view.overall_code",
"value": false,
},
@@ -71,12 +71,12 @@ exports[`should render correcly: new code toggle for portfolio disabled 1`] = `
disabled={true}
onCheck={[MockFunction]}
options={
- Array [
- Object {
+ [
+ {
"label": "projects.view.new_code",
"value": true,
},
- Object {
+ {
"label": "projects.view.overall_code",
"value": false,
},
diff --git a/server/sonar-web/src/main/js/apps/coding-rules/components/__tests__/__snapshots__/ActivationFormModal-test.tsx.snap b/server/sonar-web/src/main/js/apps/coding-rules/components/__tests__/__snapshots__/ActivationFormModal-test.tsx.snap
index 34691d7a35c..218e1a3d16e 100644
--- a/server/sonar-web/src/main/js/apps/coding-rules/components/__tests__/__snapshots__/ActivationFormModal-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/coding-rules/components/__tests__/__snapshots__/ActivationFormModal-test.tsx.snap
@@ -39,7 +39,7 @@ exports[`should render correctly: custom rule 1`] = `
isClearable={false}
isDisabled={false}
onChange={[Function]}
- options={Array []}
+ options={[]}
/>
</div>
<div
@@ -125,7 +125,7 @@ exports[`should render correctly: default 1`] = `
isClearable={false}
isDisabled={false}
onChange={[Function]}
- options={Array []}
+ options={[]}
/>
</div>
<div
@@ -163,7 +163,7 @@ exports[`should render correctly: default 1`] = `
<div
className="note"
dangerouslySetInnerHTML={
- Object {
+ {
"__html": "description",
}
}
@@ -246,7 +246,7 @@ exports[`should render correctly: submitting 1`] = `
isClearable={false}
isDisabled={true}
onChange={[Function]}
- options={Array []}
+ options={[]}
/>
</div>
<div
@@ -284,7 +284,7 @@ exports[`should render correctly: submitting 1`] = `
<div
className="note"
dangerouslySetInnerHTML={
- Object {
+ {
"__html": "description",
}
}
@@ -365,7 +365,7 @@ exports[`should render correctly: update mode 1`] = `
isClearable={false}
isDisabled={false}
onChange={[Function]}
- options={Array []}
+ options={[]}
/>
</div>
<div
@@ -403,7 +403,7 @@ exports[`should render correctly: update mode 1`] = `
<div
className="note"
dangerouslySetInnerHTML={
- Object {
+ {
"__html": "description",
}
}
@@ -482,9 +482,9 @@ exports[`should render correctly: with deep profiles 1`] = `
isDisabled={true}
onChange={[Function]}
options={
- Array [
- Object {
- "actions": Object {
+ [
+ {
+ "actions": {
"edit": true,
},
"activeDeprecatedRuleCount": 2,
@@ -503,8 +503,8 @@ exports[`should render correctly: with deep profiles 1`] = `
]
}
value={
- Object {
- "actions": Object {
+ {
+ "actions": {
"edit": true,
},
"activeDeprecatedRuleCount": 2,
@@ -558,7 +558,7 @@ exports[`should render correctly: with deep profiles 1`] = `
<div
className="note"
dangerouslySetInnerHTML={
- Object {
+ {
"__html": "description",
}
}
diff --git a/server/sonar-web/src/main/js/apps/coding-rules/components/__tests__/__snapshots__/App-test.tsx.snap b/server/sonar-web/src/main/js/apps/coding-rules/components/__tests__/__snapshots__/App-test.tsx.snap
index c21831ed804..c063cd23eae 100644
--- a/server/sonar-web/src/main/js/apps/coding-rules/components/__tests__/__snapshots__/App-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/coding-rules/components/__tests__/__snapshots__/App-test.tsx.snap
@@ -7,33 +7,33 @@ exports[`renderBulkButton should be null when the user is not logged in 1`] = `<
exports[`renderBulkButton should show bulk change button when user has edit rights on specific quality profile 1`] = `
<BulkChange
query={
- Object {
+ {
"activation": undefined,
- "activationSeverities": Array [],
+ "activationSeverities": [],
"availableSince": undefined,
"compareToProfile": undefined,
- "cwe": Array [],
+ "cwe": [],
"inheritance": undefined,
- "languages": Array [],
- "owaspTop10": Array [],
- "owaspTop10-2021": Array [],
+ "languages": [],
+ "owaspTop10": [],
+ "owaspTop10-2021": [],
"profile": undefined,
- "repositories": Array [],
+ "repositories": [],
"ruleKey": undefined,
- "sansTop25": Array [],
+ "sansTop25": [],
"searchQuery": undefined,
- "severities": Array [],
- "sonarsourceSecurity": Array [],
- "statuses": Array [],
- "tags": Array [],
+ "severities": [],
+ "sonarsourceSecurity": [],
+ "statuses": [],
+ "tags": [],
"template": undefined,
- "types": Array [],
+ "types": [],
}
}
referencedProfiles={
- Object {
- "foo": Object {
- "actions": Object {
+ {
+ "foo": {
+ "actions": {
"edit": true,
},
"activeDeprecatedRuleCount": 2,
@@ -49,7 +49,7 @@ exports[`renderBulkButton should show bulk change button when user has edit righ
"name": "name",
"projectCount": 3,
},
- "key": Object {
+ "key": {
"activeDeprecatedRuleCount": 2,
"activeRuleCount": 10,
"childrenCount": 0,
@@ -72,30 +72,30 @@ exports[`renderBulkButton should show bulk change button when user has edit righ
exports[`renderBulkButton should show bulk change button when user has global admin rights on quality profiles 1`] = `
<BulkChange
query={
- Object {
+ {
"activation": undefined,
- "activationSeverities": Array [],
+ "activationSeverities": [],
"availableSince": undefined,
"compareToProfile": undefined,
- "cwe": Array [],
+ "cwe": [],
"inheritance": undefined,
- "languages": Array [],
- "owaspTop10": Array [],
- "owaspTop10-2021": Array [],
+ "languages": [],
+ "owaspTop10": [],
+ "owaspTop10-2021": [],
"profile": undefined,
- "repositories": Array [],
+ "repositories": [],
"ruleKey": undefined,
- "sansTop25": Array [],
+ "sansTop25": [],
"searchQuery": undefined,
- "severities": Array [],
- "sonarsourceSecurity": Array [],
- "statuses": Array [],
- "tags": Array [],
+ "severities": [],
+ "sonarsourceSecurity": [],
+ "statuses": [],
+ "tags": [],
"template": undefined,
- "types": Array [],
+ "types": [],
}
}
- referencedProfiles={Object {}}
+ referencedProfiles={{}}
total={0}
/>
`;
@@ -104,7 +104,7 @@ exports[`should render correctly: loaded (ScreenPositionHelper) 1`] = `
<div
className="layout-page-side"
style={
- Object {
+ {
"top": 0,
}
}
@@ -134,11 +134,11 @@ exports[`should render correctly: loaded (ScreenPositionHelper) 1`] = `
value=""
/>
<FacetsList
- facets={Object {}}
+ facets={{}}
onFacetToggle={[Function]}
onFilterChange={[Function]}
openFacets={
- Object {
+ {
"languages": true,
"owaspTop10": false,
"owaspTop10-2021": false,
@@ -149,31 +149,31 @@ exports[`should render correctly: loaded (ScreenPositionHelper) 1`] = `
}
}
query={
- Object {
+ {
"activation": undefined,
- "activationSeverities": Array [],
+ "activationSeverities": [],
"availableSince": undefined,
"compareToProfile": undefined,
- "cwe": Array [],
+ "cwe": [],
"inheritance": undefined,
- "languages": Array [],
- "owaspTop10": Array [],
- "owaspTop10-2021": Array [],
+ "languages": [],
+ "owaspTop10": [],
+ "owaspTop10-2021": [],
"profile": undefined,
- "repositories": Array [],
+ "repositories": [],
"ruleKey": undefined,
- "sansTop25": Array [],
+ "sansTop25": [],
"searchQuery": undefined,
- "severities": Array [],
- "sonarsourceSecurity": Array [],
- "statuses": Array [],
- "tags": Array [],
+ "severities": [],
+ "sonarsourceSecurity": [],
+ "statuses": [],
+ "tags": [],
"template": undefined,
- "types": Array [],
+ "types": [],
}
}
- referencedProfiles={Object {}}
- referencedRepositories={Object {}}
+ referencedProfiles={{}}
+ referencedRepositories={{}}
/>
</div>
</div>
@@ -225,35 +225,35 @@ exports[`should render correctly: loaded 1`] = `
>
<BulkChange
query={
- Object {
+ {
"activation": undefined,
- "activationSeverities": Array [],
+ "activationSeverities": [],
"availableSince": undefined,
"compareToProfile": undefined,
- "cwe": Array [],
+ "cwe": [],
"inheritance": undefined,
- "languages": Array [],
- "owaspTop10": Array [],
- "owaspTop10-2021": Array [],
+ "languages": [],
+ "owaspTop10": [],
+ "owaspTop10-2021": [],
"profile": undefined,
- "repositories": Array [],
+ "repositories": [],
"ruleKey": undefined,
- "sansTop25": Array [],
+ "sansTop25": [],
"searchQuery": undefined,
- "severities": Array [],
- "sonarsourceSecurity": Array [],
- "statuses": Array [],
- "tags": Array [],
+ "severities": [],
+ "sonarsourceSecurity": [],
+ "statuses": [],
+ "tags": [],
"template": undefined,
- "types": Array [],
+ "types": [],
}
}
- referencedProfiles={Object {}}
+ referencedProfiles={{}}
total={0}
/>
<PageActions
paging={
- Object {
+ {
"pageIndex": 0,
"pageSize": 100,
"total": 0,
@@ -276,18 +276,18 @@ exports[`should render correctly: loaded 1`] = `
onFilterChange={[Function]}
onOpen={[Function]}
rule={
- Object {
+ {
"key": "javascript:S1067",
"lang": "js",
"langName": "JavaScript",
"name": "Use foo",
"severity": "MAJOR",
"status": "READY",
- "sysTags": Array [
+ "sysTags": [
"a",
"b",
],
- "tags": Array [
+ "tags": [
"x",
],
"type": "CODE_SMELL",
@@ -303,18 +303,18 @@ exports[`should render correctly: loaded 1`] = `
onFilterChange={[Function]}
onOpen={[Function]}
rule={
- Object {
+ {
"key": "javascript:S1067",
"lang": "js",
"langName": "JavaScript",
"name": "Use foo",
"severity": "MAJOR",
"status": "READY",
- "sysTags": Array [
+ "sysTags": [
"a",
"b",
],
- "tags": Array [
+ "tags": [
"x",
],
"type": "CODE_SMELL",
diff --git a/server/sonar-web/src/main/js/apps/coding-rules/components/__tests__/__snapshots__/CustomRuleFormModal-test.tsx.snap b/server/sonar-web/src/main/js/apps/coding-rules/components/__tests__/__snapshots__/CustomRuleFormModal-test.tsx.snap
index d2d08357848..77ad50e79a5 100644
--- a/server/sonar-web/src/main/js/apps/coding-rules/components/__tests__/__snapshots__/CustomRuleFormModal-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/coding-rules/components/__tests__/__snapshots__/CustomRuleFormModal-test.tsx.snap
@@ -79,7 +79,7 @@ exports[`should handle re-activation 1`] = `
<Select
aria-labelledby="coding-rules-custom-rule-type"
components={
- Object {
+ {
"Option": [Function],
"SingleValue": [Function],
}
@@ -89,27 +89,27 @@ exports[`should handle re-activation 1`] = `
isSearchable={false}
onChange={[Function]}
options={
- Array [
- Object {
+ [
+ {
"label": "issue.type.BUG",
"value": "BUG",
},
- Object {
+ {
"label": "issue.type.VULNERABILITY",
"value": "VULNERABILITY",
},
- Object {
+ {
"label": "issue.type.CODE_SMELL",
"value": "CODE_SMELL",
},
- Object {
+ {
"label": "issue.type.SECURITY_HOTSPOT",
"value": "SECURITY_HOTSPOT",
},
]
}
value={
- Object {
+ {
"label": "issue.type.BUG",
"value": "BUG",
}
@@ -146,23 +146,23 @@ exports[`should handle re-activation 1`] = `
isSearchable={false}
onChange={[Function]}
options={
- Array [
- Object {
+ [
+ {
"label": "rules.status.READY",
"value": "READY",
},
- Object {
+ {
"label": "rules.status.BETA",
"value": "BETA",
},
- Object {
+ {
"label": "rules.status.DEPRECATED",
"value": "DEPRECATED",
},
]
}
value={
- Object {
+ {
"label": "rules.status.READY",
"value": "READY",
}
@@ -213,7 +213,7 @@ exports[`should handle re-activation 1`] = `
<div
className="modal-field-description"
dangerouslySetInnerHTML={
- Object {
+ {
"__html": "description",
}
}
@@ -334,7 +334,7 @@ exports[`should render correctly: default 1`] = `
<Select
aria-labelledby="coding-rules-custom-rule-type"
components={
- Object {
+ {
"Option": [Function],
"SingleValue": [Function],
}
@@ -344,27 +344,27 @@ exports[`should render correctly: default 1`] = `
isSearchable={false}
onChange={[Function]}
options={
- Array [
- Object {
+ [
+ {
"label": "issue.type.BUG",
"value": "BUG",
},
- Object {
+ {
"label": "issue.type.VULNERABILITY",
"value": "VULNERABILITY",
},
- Object {
+ {
"label": "issue.type.CODE_SMELL",
"value": "CODE_SMELL",
},
- Object {
+ {
"label": "issue.type.SECURITY_HOTSPOT",
"value": "SECURITY_HOTSPOT",
},
]
}
value={
- Object {
+ {
"label": "issue.type.BUG",
"value": "BUG",
}
@@ -401,23 +401,23 @@ exports[`should render correctly: default 1`] = `
isSearchable={false}
onChange={[Function]}
options={
- Array [
- Object {
+ [
+ {
"label": "rules.status.READY",
"value": "READY",
},
- Object {
+ {
"label": "rules.status.BETA",
"value": "BETA",
},
- Object {
+ {
"label": "rules.status.DEPRECATED",
"value": "DEPRECATED",
},
]
}
value={
- Object {
+ {
"label": "rules.status.READY",
"value": "READY",
}
@@ -468,7 +468,7 @@ exports[`should render correctly: default 1`] = `
<div
className="modal-field-description"
dangerouslySetInnerHTML={
- Object {
+ {
"__html": "description",
}
}
diff --git a/server/sonar-web/src/main/js/apps/coding-rules/components/__tests__/__snapshots__/FacetsList-test.tsx.snap b/server/sonar-web/src/main/js/apps/coding-rules/components/__tests__/__snapshots__/FacetsList-test.tsx.snap
index 809ba918cf2..aab0fc78ec4 100644
--- a/server/sonar-web/src/main/js/apps/coding-rules/components/__tests__/__snapshots__/FacetsList-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/coding-rules/components/__tests__/__snapshots__/FacetsList-test.tsx.snap
@@ -22,7 +22,7 @@ exports[`should render correctly 1`] = `
onChange={[MockFunction]}
onToggle={[MockFunction]}
open={false}
- referencedRepositories={Object {}}
+ referencedRepositories={{}}
/>
<DefaultSeverityFacet
onChange={[MockFunction]}
@@ -46,7 +46,7 @@ exports[`should render correctly 1`] = `
open={false}
owaspTop10-2021Open={false}
owaspTop10Open={false}
- query={Object {}}
+ query={{}}
sansTop25Open={false}
sonarsourceSecurityOpen={false}
/>
@@ -64,7 +64,7 @@ exports[`should render correctly 1`] = `
onChange={[MockFunction]}
onToggle={[MockFunction]}
open={false}
- referencedProfiles={Object {}}
+ referencedProfiles={{}}
/>
<InheritanceFacet
disabled={true}
diff --git a/server/sonar-web/src/main/js/apps/coding-rules/components/__tests__/__snapshots__/RuleDetails-test.tsx.snap b/server/sonar-web/src/main/js/apps/coding-rules/components/__tests__/__snapshots__/RuleDetails-test.tsx.snap
index 450d9d3ecc0..1ac517499da 100644
--- a/server/sonar-web/src/main/js/apps/coding-rules/components/__tests__/__snapshots__/RuleDetails-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/coding-rules/components/__tests__/__snapshots__/RuleDetails-test.tsx.snap
@@ -11,8 +11,8 @@ exports[`should render correctly: loaded 1`] = `
onFilterChange={[MockFunction]}
onTagsChange={[Function]}
referencedRepositories={
- Object {
- "javascript": Object {
+ {
+ "javascript": {
"key": "javascript",
"language": "js",
"name": "SonarAnalyzer",
@@ -20,7 +20,7 @@ exports[`should render correctly: loaded 1`] = `
}
}
ruleDetails={
- Object {
+ {
"createdAt": "2014-12-16T17:26:54+0100",
"debtOverloaded": false,
"debtRemFnOffset": "5min",
@@ -29,8 +29,8 @@ exports[`should render correctly: loaded 1`] = `
"defaultDebtRemFnType": "CONSTANT_ISSUE",
"defaultRemFnBaseEffort": "5min",
"defaultRemFnType": "CONSTANT_ISSUE",
- "descriptionSections": Array [
- Object {
+ "descriptionSections": [
+ {
"content": "<b>Why</b> Because",
"key": "default",
},
@@ -42,8 +42,8 @@ exports[`should render correctly: loaded 1`] = `
"lang": "java",
"langName": "Java",
"mdDesc": "",
- "name": "\\".equals()\\" should not be used to test the values of \\"Atomic\\" classes",
- "params": Array [],
+ "name": "".equals()" should not be used to test the values of "Atomic" classes",
+ "params": [],
"remFnBaseEffort": "5min",
"remFnOverloaded": false,
"remFnType": "CONSTANT_ISSUE",
@@ -51,10 +51,10 @@ exports[`should render correctly: loaded 1`] = `
"scope": "MAIN",
"severity": "MAJOR",
"status": "READY",
- "sysTags": Array [
+ "sysTags": [
"multi-threading",
],
- "tags": Array [],
+ "tags": [],
"type": "BUG",
}
}
@@ -62,7 +62,7 @@ exports[`should render correctly: loaded 1`] = `
<RuleDetailsDescription
onChange={[Function]}
ruleDetails={
- Object {
+ {
"createdAt": "2014-12-16T17:26:54+0100",
"debtOverloaded": false,
"debtRemFnOffset": "5min",
@@ -71,8 +71,8 @@ exports[`should render correctly: loaded 1`] = `
"defaultDebtRemFnType": "CONSTANT_ISSUE",
"defaultRemFnBaseEffort": "5min",
"defaultRemFnType": "CONSTANT_ISSUE",
- "descriptionSections": Array [
- Object {
+ "descriptionSections": [
+ {
"content": "<b>Why</b> Because",
"key": "default",
},
@@ -84,8 +84,8 @@ exports[`should render correctly: loaded 1`] = `
"lang": "java",
"langName": "Java",
"mdDesc": "",
- "name": "\\".equals()\\" should not be used to test the values of \\"Atomic\\" classes",
- "params": Array [],
+ "name": "".equals()" should not be used to test the values of "Atomic" classes",
+ "params": [],
"remFnBaseEffort": "5min",
"remFnOverloaded": false,
"remFnType": "CONSTANT_ISSUE",
@@ -93,21 +93,21 @@ exports[`should render correctly: loaded 1`] = `
"scope": "MAIN",
"severity": "MAJOR",
"status": "READY",
- "sysTags": Array [
+ "sysTags": [
"multi-threading",
],
- "tags": Array [],
+ "tags": [],
"type": "BUG",
}
}
/>
<RuleDetailsProfiles
activations={
- Array [
- Object {
+ [
+ {
"createdAt": "2017-06-16T16:13:38+0200",
"inherit": "NONE",
- "params": Array [],
+ "params": [],
"qProfile": "foo",
"severity": "MAJOR",
"updatedAt": "2017-06-16T16:13:38+0200",
@@ -117,8 +117,8 @@ exports[`should render correctly: loaded 1`] = `
onActivate={[Function]}
onDeactivate={[Function]}
referencedProfiles={
- Object {
- "key": Object {
+ {
+ "key": {
"activeDeprecatedRuleCount": 2,
"activeRuleCount": 10,
"childrenCount": 0,
@@ -135,7 +135,7 @@ exports[`should render correctly: loaded 1`] = `
}
}
ruleDetails={
- Object {
+ {
"createdAt": "2014-12-16T17:26:54+0100",
"debtOverloaded": false,
"debtRemFnOffset": "5min",
@@ -144,8 +144,8 @@ exports[`should render correctly: loaded 1`] = `
"defaultDebtRemFnType": "CONSTANT_ISSUE",
"defaultRemFnBaseEffort": "5min",
"defaultRemFnType": "CONSTANT_ISSUE",
- "descriptionSections": Array [
- Object {
+ "descriptionSections": [
+ {
"content": "<b>Why</b> Because",
"key": "default",
},
@@ -157,8 +157,8 @@ exports[`should render correctly: loaded 1`] = `
"lang": "java",
"langName": "Java",
"mdDesc": "",
- "name": "\\".equals()\\" should not be used to test the values of \\"Atomic\\" classes",
- "params": Array [],
+ "name": "".equals()" should not be used to test the values of "Atomic" classes",
+ "params": [],
"remFnBaseEffort": "5min",
"remFnOverloaded": false,
"remFnType": "CONSTANT_ISSUE",
@@ -166,17 +166,17 @@ exports[`should render correctly: loaded 1`] = `
"scope": "MAIN",
"severity": "MAJOR",
"status": "READY",
- "sysTags": Array [
+ "sysTags": [
"multi-threading",
],
- "tags": Array [],
+ "tags": [],
"type": "BUG",
}
}
/>
<withAvailableFeaturesContext(RuleDetailsIssues)
ruleDetails={
- Object {
+ {
"createdAt": "2014-12-16T17:26:54+0100",
"debtOverloaded": false,
"debtRemFnOffset": "5min",
@@ -185,8 +185,8 @@ exports[`should render correctly: loaded 1`] = `
"defaultDebtRemFnType": "CONSTANT_ISSUE",
"defaultRemFnBaseEffort": "5min",
"defaultRemFnType": "CONSTANT_ISSUE",
- "descriptionSections": Array [
- Object {
+ "descriptionSections": [
+ {
"content": "<b>Why</b> Because",
"key": "default",
},
@@ -198,8 +198,8 @@ exports[`should render correctly: loaded 1`] = `
"lang": "java",
"langName": "Java",
"mdDesc": "",
- "name": "\\".equals()\\" should not be used to test the values of \\"Atomic\\" classes",
- "params": Array [],
+ "name": "".equals()" should not be used to test the values of "Atomic" classes",
+ "params": [],
"remFnBaseEffort": "5min",
"remFnOverloaded": false,
"remFnType": "CONSTANT_ISSUE",
@@ -207,10 +207,10 @@ exports[`should render correctly: loaded 1`] = `
"scope": "MAIN",
"severity": "MAJOR",
"status": "READY",
- "sysTags": Array [
+ "sysTags": [
"multi-threading",
],
- "tags": Array [],
+ "tags": [],
"type": "BUG",
}
}
diff --git a/server/sonar-web/src/main/js/apps/coding-rules/components/__tests__/__snapshots__/RuleDetailsIssues-test.tsx.snap b/server/sonar-web/src/main/js/apps/coding-rules/components/__tests__/__snapshots__/RuleDetailsIssues-test.tsx.snap
index 4c6016c40b9..17a67804b2e 100644
--- a/server/sonar-web/src/main/js/apps/coding-rules/components/__tests__/__snapshots__/RuleDetailsIssues-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/coding-rules/components/__tests__/__snapshots__/RuleDetailsIssues-test.tsx.snap
@@ -17,7 +17,7 @@ exports[`should fetch issues and render 1`] = `
(
<ForwardRef(Link)
to={
- Object {
+ {
"pathname": "/issues",
"search": "?resolved=false&rules=foo",
}
@@ -53,7 +53,7 @@ exports[`should fetch issues and render 1`] = `
>
<ForwardRef(Link)
to={
- Object {
+ {
"pathname": "/issues",
"search": "?resolved=false&rules=foo&projects=sample-key",
}
@@ -76,7 +76,7 @@ exports[`should fetch issues and render 1`] = `
>
<ForwardRef(Link)
to={
- Object {
+ {
"pathname": "/issues",
"search": "?resolved=false&rules=foo&projects=example-key",
}
diff --git a/server/sonar-web/src/main/js/apps/coding-rules/components/__tests__/__snapshots__/RuleDetailsMeta-test.tsx.snap b/server/sonar-web/src/main/js/apps/coding-rules/components/__tests__/__snapshots__/RuleDetailsMeta-test.tsx.snap
index 4308e9f8eb1..94f8953d085 100644
--- a/server/sonar-web/src/main/js/apps/coding-rules/components/__tests__/__snapshots__/RuleDetailsMeta-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/coding-rules/components/__tests__/__snapshots__/RuleDetailsMeta-test.tsx.snap
@@ -19,7 +19,7 @@ exports[`should display right meta info 1`] = `
className="coding-rules-detail-permalink link-no-underline spacer-left text-middle"
title="permalink"
to={
- Object {
+ {
"pathname": "/coding_rules",
"search": "?open=squid%3AS1133&rule_key=squid%3AS1133",
}
@@ -30,9 +30,9 @@ exports[`should display right meta info 1`] = `
<SimilarRulesFilter
onFilterChange={[MockFunction]}
rule={
- Object {
+ {
"createdAt": "2013-07-26T09:40:51+0200",
- "descriptionSections": Array [],
+ "descriptionSections": [],
"key": "squid:S1133",
"lang": "java",
"langName": "Java",
@@ -94,8 +94,8 @@ exports[`should display right meta info 1`] = `
overlay={
<RuleDetailsTagsPopup
setTags={[MockFunction]}
- sysTags={Array []}
- tags={Array []}
+ sysTags={[]}
+ tags={[]}
/>
}
overlayPlacement="bottom-left"
@@ -104,7 +104,7 @@ exports[`should display right meta info 1`] = `
<TagsList
allowUpdate={true}
tags={
- Array [
+ [
"coding_rules.no_tags",
]
}
@@ -220,9 +220,9 @@ exports[`should display right meta info 3`] = `
overlay={
<RuleDetailsTagsPopup
setTags={[MockFunction]}
- sysTags={Array []}
+ sysTags={[]}
tags={
- Array [
+ [
"tag",
]
}
@@ -234,7 +234,7 @@ exports[`should display right meta info 3`] = `
<TagsList
allowUpdate={true}
tags={
- Array [
+ [
"tag",
]
}
@@ -270,8 +270,8 @@ exports[`should edit tags 1`] = `
overlay={
<RuleDetailsTagsPopup
setTags={[MockFunction]}
- sysTags={Array []}
- tags={Array []}
+ sysTags={[]}
+ tags={[]}
/>
}
overlayPlacement="bottom-left"
@@ -280,7 +280,7 @@ exports[`should edit tags 1`] = `
<TagsList
allowUpdate={true}
tags={
- Array [
+ [
"coding_rules.no_tags",
]
}
diff --git a/server/sonar-web/src/main/js/apps/coding-rules/components/__tests__/__snapshots__/RuleDetailsParameters-test.tsx.snap b/server/sonar-web/src/main/js/apps/coding-rules/components/__tests__/__snapshots__/RuleDetailsParameters-test.tsx.snap
index 374a33057d7..1c441e4738e 100644
--- a/server/sonar-web/src/main/js/apps/coding-rules/components/__tests__/__snapshots__/RuleDetailsParameters-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/coding-rules/components/__tests__/__snapshots__/RuleDetailsParameters-test.tsx.snap
@@ -27,7 +27,7 @@ exports[`should render correctly 1`] = `
>
<p
dangerouslySetInnerHTML={
- Object {
+ {
"__html": "description",
}
}
@@ -59,7 +59,7 @@ exports[`should render correctly 1`] = `
>
<p
dangerouslySetInnerHTML={
- Object {
+ {
"__html": "description",
}
}
diff --git a/server/sonar-web/src/main/js/apps/coding-rules/components/__tests__/__snapshots__/RuleDetailsTagsPopup-test.tsx.snap b/server/sonar-web/src/main/js/apps/coding-rules/components/__tests__/__snapshots__/RuleDetailsTagsPopup-test.tsx.snap
index 9b97b5d01f4..908a893b4b7 100644
--- a/server/sonar-web/src/main/js/apps/coding-rules/components/__tests__/__snapshots__/RuleDetailsTagsPopup-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/coding-rules/components/__tests__/__snapshots__/RuleDetailsTagsPopup-test.tsx.snap
@@ -7,10 +7,10 @@ exports[`should render tags 1`] = `
onSelect={[Function]}
onUnselect={[Function]}
selectedTags={
- Array [
+ [
"foo",
]
}
- tags={Array []}
+ tags={[]}
/>
`;
diff --git a/server/sonar-web/src/main/js/apps/coding-rules/components/__tests__/__snapshots__/RuleListItem-test.tsx.snap b/server/sonar-web/src/main/js/apps/coding-rules/components/__tests__/__snapshots__/RuleListItem-test.tsx.snap
index 2ae4d1df139..7d0ea3c9c88 100644
--- a/server/sonar-web/src/main/js/apps/coding-rules/components/__tests__/__snapshots__/RuleListItem-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/coding-rules/components/__tests__/__snapshots__/RuleListItem-test.tsx.snap
@@ -42,9 +42,9 @@ exports[`renderActions should render the activate button 1`] = `
modalHeader="coding_rules.activate_in_quality_profile"
onDone={[Function]}
profiles={
- Array [
- Object {
- "actions": Object {
+ [
+ {
+ "actions": {
"edit": true,
},
"activeDeprecatedRuleCount": 2,
@@ -63,7 +63,7 @@ exports[`renderActions should render the activate button 1`] = `
]
}
rule={
- Object {
+ {
"isTemplate": false,
"key": "javascript:S1067",
"lang": "js",
@@ -71,11 +71,11 @@ exports[`renderActions should render the activate button 1`] = `
"name": "Use foo",
"severity": "MAJOR",
"status": "READY",
- "sysTags": Array [
+ "sysTags": [
"a",
"b",
],
- "tags": Array [
+ "tags": [
"x",
],
"type": "CODE_SMELL",
@@ -120,7 +120,7 @@ exports[`should render correctly: default 1`] = `
className="link-no-underline"
onClick={[Function]}
to={
- Object {
+ {
"pathname": "/coding_rules",
"search": "?open=javascript%3AS1067&rule_key=javascript%3AS1067",
}
@@ -161,7 +161,7 @@ exports[`should render correctly: default 1`] = `
allowUpdate={false}
className="display-inline-flex-center note spacer-left"
tags={
- Array [
+ [
"x",
"a",
"b",
@@ -171,18 +171,18 @@ exports[`should render correctly: default 1`] = `
<SimilarRulesFilter
onFilterChange={[MockFunction]}
rule={
- Object {
+ {
"key": "javascript:S1067",
"lang": "js",
"langName": "JavaScript",
"name": "Use foo",
"severity": "MAJOR",
"status": "READY",
- "sysTags": Array [
+ "sysTags": [
"a",
"b",
],
- "tags": Array [
+ "tags": [
"x",
],
"type": "CODE_SMELL",
@@ -217,7 +217,7 @@ exports[`should render correctly: with activation 1`] = `
className="link-no-underline"
onClick={[Function]}
to={
- Object {
+ {
"pathname": "/coding_rules",
"search": "?open=javascript%3AS1067&rule_key=javascript%3AS1067",
}
@@ -258,7 +258,7 @@ exports[`should render correctly: with activation 1`] = `
allowUpdate={false}
className="display-inline-flex-center note spacer-left"
tags={
- Array [
+ [
"x",
"a",
"b",
@@ -268,18 +268,18 @@ exports[`should render correctly: with activation 1`] = `
<SimilarRulesFilter
onFilterChange={[MockFunction]}
rule={
- Object {
+ {
"key": "javascript:S1067",
"lang": "js",
"langName": "JavaScript",
"name": "Use foo",
"severity": "MAJOR",
"status": "READY",
- "sysTags": Array [
+ "sysTags": [
"a",
"b",
],
- "tags": Array [
+ "tags": [
"x",
],
"type": "CODE_SMELL",
diff --git a/server/sonar-web/src/main/js/apps/coding-rules/components/__tests__/__snapshots__/TagFacet-test.tsx.snap b/server/sonar-web/src/main/js/apps/coding-rules/components/__tests__/__snapshots__/TagFacet-test.tsx.snap
index 7f3cf237956..cabca9e9a09 100644
--- a/server/sonar-web/src/main/js/apps/coding-rules/components/__tests__/__snapshots__/TagFacet-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/coding-rules/components/__tests__/__snapshots__/TagFacet-test.tsx.snap
@@ -43,7 +43,7 @@ exports[`should render correctly 1`] = `
renderFacetItem={[Function]}
renderSearchResult={[Function]}
searchPlaceholder="search.search_for_tags"
- stats={Object {}}
- values={Array []}
+ stats={{}}
+ values={[]}
/>
`;
diff --git a/server/sonar-web/src/main/js/apps/component-measures/__tests__/__snapshots__/utils-test.ts.snap b/server/sonar-web/src/main/js/apps/component-measures/__tests__/__snapshots__/utils-test.ts.snap
index 607d0107af0..2085725441f 100644
--- a/server/sonar-web/src/main/js/apps/component-measures/__tests__/__snapshots__/utils-test.ts.snap
+++ b/server/sonar-web/src/main/js/apps/component-measures/__tests__/__snapshots__/utils-test.ts.snap
@@ -1,34 +1,34 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`groupByDomains should correctly group by domains 1`] = `
-Array [
- Object {
- "measures": Array [
- Object {
+[
+ {
+ "measures": [
+ {
"leak": "70",
- "metric": Object {
+ "metric": {
"domain": "Coverage",
"id": "1",
"key": "lines_to_cover",
"name": "Lines to Cover",
"type": "INT",
},
- "period": Object {
+ "period": {
"index": 1,
"value": "70",
},
"value": "431",
},
- Object {
+ {
"leak": "0.0999999999999943",
- "metric": Object {
+ "metric": {
"domain": "Coverage",
"id": "2",
"key": "coverage",
"name": "Coverage",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"index": 1,
"value": "0.0999999999999943",
},
@@ -37,18 +37,18 @@ Array [
],
"name": "Coverage",
},
- Object {
- "measures": Array [
- Object {
+ {
+ "measures": [
+ {
"leak": "0.0",
- "metric": Object {
+ "metric": {
"domain": "Duplications",
"id": "3",
"key": "duplicated_lines_density",
"name": "Duplicated Lines (%)",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"index": 1,
"value": "0.0",
},
@@ -61,17 +61,17 @@ Array [
`;
exports[`sortMeasures should sort based on the config 1`] = `
-Array [
- Object {
- "metric": Object {
+[
+ {
+ "metric": {
"id": "3",
"key": "new_bugs",
"name": "new_bugs",
"type": "INT",
},
},
- Object {
- "metric": Object {
+ {
+ "metric": {
"id": "2",
"key": "new_reliability_remediation_effort",
"name": "bugs",
@@ -79,16 +79,16 @@ Array [
},
},
"overall_category",
- Object {
- "metric": Object {
+ {
+ "metric": {
"id": "4",
"key": "bugs",
"name": "bugs",
"type": "INT",
},
},
- Object {
- "metric": Object {
+ {
+ "metric": {
"id": "1",
"key": "reliability_remediation_effort",
"name": "new_bugs",
diff --git a/server/sonar-web/src/main/js/apps/component-measures/components/__tests__/__snapshots__/App-test.tsx.snap b/server/sonar-web/src/main/js/apps/component-measures/components/__tests__/__snapshots__/App-test.tsx.snap
index 6a6c0f51402..17e692d4ad3 100644
--- a/server/sonar-web/src/main/js/apps/component-measures/components/__tests__/__snapshots__/App-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/component-measures/components/__tests__/__snapshots__/App-test.tsx.snap
@@ -62,7 +62,7 @@ exports[`should render a warning message when user does not have access to all p
<div
className="layout-page-side"
style={
- Object {
+ {
"top": 0,
}
}
@@ -88,10 +88,10 @@ exports[`should render a warning message when user does not have access to all p
>
<Sidebar
measures={
- Array [
- Object {
+ [
+ {
"leak": undefined,
- "metric": Object {
+ "metric": {
"domain": "Coverage",
"id": "2",
"key": "coverage",
@@ -135,7 +135,7 @@ exports[`should render correctly 1`] = `
</ScreenPositionHelper>
<MeasureContent
branchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": true,
@@ -143,29 +143,29 @@ exports[`should render correctly 1`] = `
}
}
metrics={
- Object {
- "coverage": Object {
+ {
+ "coverage": {
"domain": "Coverage",
"id": "2",
"key": "coverage",
"name": "Coverage",
"type": "PERCENT",
},
- "duplicated_lines_density": Object {
+ "duplicated_lines_density": {
"domain": "Duplications",
"id": "3",
"key": "duplicated_lines_density",
"name": "Duplicated Lines (%)",
"type": "PERCENT",
},
- "lines_to_cover": Object {
+ "lines_to_cover": {
"domain": "Coverage",
"id": "1",
"key": "lines_to_cover",
"name": "Lines to Cover",
"type": "INT",
},
- "new_bugs": Object {
+ "new_bugs": {
"domain": "Reliability",
"id": "4",
"key": "new_bugs",
@@ -176,7 +176,7 @@ exports[`should render correctly 1`] = `
}
onIssueChange={[Function]}
requestedMetric={
- Object {
+ {
"domain": "Coverage",
"id": "2",
"key": "coverage",
@@ -185,29 +185,29 @@ exports[`should render correctly 1`] = `
}
}
rootComponent={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "foo",
"name": "Foo",
"qualifier": "TRK",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
router={
- Object {
+ {
"createHref": [MockFunction],
"createPath": [MockFunction],
"go": [MockFunction],
diff --git a/server/sonar-web/src/main/js/apps/component-measures/components/__tests__/__snapshots__/Breadcrumbs-test.tsx.snap b/server/sonar-web/src/main/js/apps/component-measures/components/__tests__/__snapshots__/Breadcrumbs-test.tsx.snap
index d950fb2a883..1ecce41d367 100644
--- a/server/sonar-web/src/main/js/apps/component-measures/components/__tests__/__snapshots__/Breadcrumbs-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/component-measures/components/__tests__/__snapshots__/Breadcrumbs-test.tsx.snap
@@ -4,7 +4,7 @@ exports[`should display correctly for the list view 1`] = `
<Breadcrumbs
backToFirst={false}
component={
- Object {
+ {
"key": "bar",
"name": "Bar",
"qualifier": "TRK",
@@ -12,7 +12,7 @@ exports[`should display correctly for the list view 1`] = `
}
handleSelect={[Function]}
rootComponent={
- Object {
+ {
"key": "foo",
"name": "Foo",
"qualifier": "TRK",
@@ -22,9 +22,9 @@ exports[`should display correctly for the list view 1`] = `
`;
exports[`should display only the root component 1`] = `
-Object {
- "breadcrumbs": Array [
- Object {
+{
+ "breadcrumbs": [
+ {
"key": "foo",
"name": "Foo",
"qualifier": "TRK",
diff --git a/server/sonar-web/src/main/js/apps/component-measures/components/__tests__/__snapshots__/MeasureContent-test.tsx.snap b/server/sonar-web/src/main/js/apps/component-measures/components/__tests__/__snapshots__/MeasureContent-test.tsx.snap
index 58696b8c502..ba4200d3b46 100644
--- a/server/sonar-web/src/main/js/apps/component-measures/components/__tests__/__snapshots__/MeasureContent-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/component-measures/components/__tests__/__snapshots__/MeasureContent-test.tsx.snap
@@ -22,10 +22,10 @@ exports[`should render correctly for a file 1`] = `
backToFirst={true}
className="text-ellipsis flex-1"
component={
- Object {
+ {
"key": "foo:src/index.tsx",
- "measures": Array [
- Object {
+ "measures": [
+ {
"bestValue": false,
"metric": "bugs",
"value": "1",
@@ -38,10 +38,10 @@ exports[`should render correctly for a file 1`] = `
}
handleSelect={[Function]}
rootComponent={
- Object {
+ {
"key": "foo",
- "measures": Array [
- Object {
+ "measures": [
+ {
"bestValue": false,
"metric": "bugs",
"value": "12",
@@ -67,10 +67,10 @@ exports[`should render correctly for a file 1`] = `
>
<MeasureHeader
component={
- Object {
+ {
"key": "foo:src/index.tsx",
- "measures": Array [
- Object {
+ "measures": [
+ {
"bestValue": false,
"metric": "bugs",
"value": "1",
@@ -83,7 +83,7 @@ exports[`should render correctly for a file 1`] = `
}
measureValue="12"
metric={
- Object {
+ {
"direction": 1,
"domain": "Reliability",
"id": "1",
@@ -131,10 +131,10 @@ exports[`should render correctly for a project 1`] = `
backToFirst={true}
className="text-ellipsis flex-1"
component={
- Object {
+ {
"key": "foo",
- "measures": Array [
- Object {
+ "measures": [
+ {
"bestValue": false,
"metric": "bugs",
"value": "12",
@@ -146,10 +146,10 @@ exports[`should render correctly for a project 1`] = `
}
handleSelect={[Function]}
rootComponent={
- Object {
+ {
"key": "foo",
- "measures": Array [
- Object {
+ "measures": [
+ {
"bestValue": false,
"metric": "bugs",
"value": "12",
@@ -175,7 +175,7 @@ exports[`should render correctly for a project 1`] = `
className="measure-view-select spacer-left big-spacer-right"
handleViewChange={[Function]}
metric={
- Object {
+ {
"bestValue": "0",
"custom": false,
"description": "Bugs",
@@ -208,10 +208,10 @@ exports[`should render correctly for a project 1`] = `
>
<MeasureHeader
component={
- Object {
+ {
"key": "foo",
- "measures": Array [
- Object {
+ "measures": [
+ {
"bestValue": false,
"metric": "bugs",
"value": "12",
@@ -223,7 +223,7 @@ exports[`should render correctly for a project 1`] = `
}
measureValue="12"
metric={
- Object {
+ {
"bestValue": "0",
"custom": false,
"description": "Bugs",
@@ -240,15 +240,15 @@ exports[`should render correctly for a project 1`] = `
/>
<FilesView
components={
- Array [
- Object {
+ [
+ {
"key": "foo:src/index.tsx",
"leak": undefined,
- "measures": Array [
- Object {
+ "measures": [
+ {
"bestValue": false,
"leak": undefined,
- "metric": Object {
+ "metric": {
"domain": "Reliability",
"id": "1",
"key": "bugs",
@@ -271,7 +271,7 @@ exports[`should render correctly for a project 1`] = `
handleSelect={[Function]}
loadingMore={false}
metric={
- Object {
+ {
"bestValue": "0",
"custom": false,
"description": "Bugs",
@@ -286,8 +286,8 @@ exports[`should render correctly for a project 1`] = `
}
}
metrics={
- Object {
- "bugs": Object {
+ {
+ "bugs": {
"domain": "Reliability",
"id": "1",
"key": "bugs",
@@ -297,17 +297,17 @@ exports[`should render correctly for a project 1`] = `
}
}
paging={
- Object {
+ {
"pageIndex": 1,
"pageSize": 500,
"total": 2,
}
}
rootComponent={
- Object {
+ {
"key": "foo",
- "measures": Array [
- Object {
+ "measures": [
+ {
"bestValue": false,
"metric": "bugs",
"value": "12",
@@ -345,10 +345,10 @@ exports[`should render correctly when asc prop is defined 1`] = `
backToFirst={true}
className="text-ellipsis flex-1"
component={
- Object {
+ {
"key": "foo",
- "measures": Array [
- Object {
+ "measures": [
+ {
"bestValue": false,
"metric": "bugs",
"value": "12",
@@ -360,10 +360,10 @@ exports[`should render correctly when asc prop is defined 1`] = `
}
handleSelect={[Function]}
rootComponent={
- Object {
+ {
"key": "foo",
- "measures": Array [
- Object {
+ "measures": [
+ {
"bestValue": false,
"metric": "bugs",
"value": "12",
@@ -389,7 +389,7 @@ exports[`should render correctly when asc prop is defined 1`] = `
className="measure-view-select spacer-left big-spacer-right"
handleViewChange={[Function]}
metric={
- Object {
+ {
"bestValue": "0",
"custom": false,
"description": "Bugs",
@@ -422,10 +422,10 @@ exports[`should render correctly when asc prop is defined 1`] = `
>
<MeasureHeader
component={
- Object {
+ {
"key": "foo",
- "measures": Array [
- Object {
+ "measures": [
+ {
"bestValue": false,
"metric": "bugs",
"value": "12",
@@ -437,7 +437,7 @@ exports[`should render correctly when asc prop is defined 1`] = `
}
measureValue="12"
metric={
- Object {
+ {
"bestValue": "0",
"custom": false,
"description": "Bugs",
@@ -454,15 +454,15 @@ exports[`should render correctly when asc prop is defined 1`] = `
/>
<FilesView
components={
- Array [
- Object {
+ [
+ {
"key": "foo:src/index.tsx",
"leak": undefined,
- "measures": Array [
- Object {
+ "measures": [
+ {
"bestValue": false,
"leak": undefined,
- "metric": Object {
+ "metric": {
"domain": "Reliability",
"id": "1",
"key": "bugs",
@@ -485,7 +485,7 @@ exports[`should render correctly when asc prop is defined 1`] = `
handleSelect={[Function]}
loadingMore={false}
metric={
- Object {
+ {
"bestValue": "0",
"custom": false,
"description": "Bugs",
@@ -500,8 +500,8 @@ exports[`should render correctly when asc prop is defined 1`] = `
}
}
metrics={
- Object {
- "bugs": Object {
+ {
+ "bugs": {
"domain": "Reliability",
"id": "1",
"key": "bugs",
@@ -511,17 +511,17 @@ exports[`should render correctly when asc prop is defined 1`] = `
}
}
paging={
- Object {
+ {
"pageIndex": 1,
"pageSize": 500,
"total": 2,
}
}
rootComponent={
- Object {
+ {
"key": "foo",
- "measures": Array [
- Object {
+ "measures": [
+ {
"bestValue": false,
"metric": "bugs",
"value": "12",
@@ -559,10 +559,10 @@ exports[`should render correctly when view prop is tree 1`] = `
backToFirst={false}
className="text-ellipsis flex-1"
component={
- Object {
+ {
"key": "foo",
- "measures": Array [
- Object {
+ "measures": [
+ {
"bestValue": false,
"metric": "bugs",
"value": "12",
@@ -574,10 +574,10 @@ exports[`should render correctly when view prop is tree 1`] = `
}
handleSelect={[Function]}
rootComponent={
- Object {
+ {
"key": "foo",
- "measures": Array [
- Object {
+ "measures": [
+ {
"bestValue": false,
"metric": "bugs",
"value": "12",
@@ -603,7 +603,7 @@ exports[`should render correctly when view prop is tree 1`] = `
className="measure-view-select spacer-left big-spacer-right"
handleViewChange={[Function]}
metric={
- Object {
+ {
"bestValue": "0",
"custom": false,
"description": "Bugs",
@@ -636,10 +636,10 @@ exports[`should render correctly when view prop is tree 1`] = `
>
<MeasureHeader
component={
- Object {
+ {
"key": "foo",
- "measures": Array [
- Object {
+ "measures": [
+ {
"bestValue": false,
"metric": "bugs",
"value": "12",
@@ -651,7 +651,7 @@ exports[`should render correctly when view prop is tree 1`] = `
}
measureValue="12"
metric={
- Object {
+ {
"bestValue": "0",
"custom": false,
"description": "Bugs",
@@ -668,15 +668,15 @@ exports[`should render correctly when view prop is tree 1`] = `
/>
<FilesView
components={
- Array [
- Object {
+ [
+ {
"key": "foo:src/index.tsx",
"leak": undefined,
- "measures": Array [
- Object {
+ "measures": [
+ {
"bestValue": false,
"leak": undefined,
- "metric": Object {
+ "metric": {
"domain": "Reliability",
"id": "1",
"key": "bugs",
@@ -699,7 +699,7 @@ exports[`should render correctly when view prop is tree 1`] = `
handleSelect={[Function]}
loadingMore={false}
metric={
- Object {
+ {
"bestValue": "0",
"custom": false,
"description": "Bugs",
@@ -714,8 +714,8 @@ exports[`should render correctly when view prop is tree 1`] = `
}
}
metrics={
- Object {
- "bugs": Object {
+ {
+ "bugs": {
"domain": "Reliability",
"id": "1",
"key": "bugs",
@@ -725,17 +725,17 @@ exports[`should render correctly when view prop is tree 1`] = `
}
}
paging={
- Object {
+ {
"pageIndex": 1,
"pageSize": 500,
"total": 2,
}
}
rootComponent={
- Object {
+ {
"key": "foo",
- "measures": Array [
- Object {
+ "measures": [
+ {
"bestValue": false,
"metric": "bugs",
"value": "12",
@@ -773,10 +773,10 @@ exports[`should test fetchMoreComponents to work correctly 1`] = `
backToFirst={true}
className="text-ellipsis flex-1"
component={
- Object {
+ {
"key": "foo",
- "measures": Array [
- Object {
+ "measures": [
+ {
"bestValue": false,
"metric": "bugs",
"value": "12",
@@ -788,10 +788,10 @@ exports[`should test fetchMoreComponents to work correctly 1`] = `
}
handleSelect={[Function]}
rootComponent={
- Object {
+ {
"key": "foo",
- "measures": Array [
- Object {
+ "measures": [
+ {
"bestValue": false,
"metric": "bugs",
"value": "12",
@@ -817,7 +817,7 @@ exports[`should test fetchMoreComponents to work correctly 1`] = `
className="measure-view-select spacer-left big-spacer-right"
handleViewChange={[Function]}
metric={
- Object {
+ {
"direction": 1,
"domain": "Reliability",
"id": "1",
@@ -845,10 +845,10 @@ exports[`should test fetchMoreComponents to work correctly 1`] = `
>
<MeasureHeader
component={
- Object {
+ {
"key": "foo",
- "measures": Array [
- Object {
+ "measures": [
+ {
"bestValue": false,
"metric": "bugs",
"value": "12",
@@ -860,7 +860,7 @@ exports[`should test fetchMoreComponents to work correctly 1`] = `
}
measureValue="12"
metric={
- Object {
+ {
"direction": 1,
"domain": "Reliability",
"id": "1",
@@ -871,14 +871,14 @@ exports[`should test fetchMoreComponents to work correctly 1`] = `
}
/>
<FilesView
- components={Array []}
+ components={[]}
defaultShowBestMeasures={false}
fetchMore={[Function]}
handleOpen={[Function]}
handleSelect={[Function]}
loadingMore={true}
metric={
- Object {
+ {
"direction": 1,
"domain": "Reliability",
"id": "1",
@@ -888,8 +888,8 @@ exports[`should test fetchMoreComponents to work correctly 1`] = `
}
}
metrics={
- Object {
- "bugs": Object {
+ {
+ "bugs": {
"direction": 1,
"domain": "Reliability",
"id": "1",
@@ -900,17 +900,17 @@ exports[`should test fetchMoreComponents to work correctly 1`] = `
}
}
paging={
- Object {
+ {
"pageIndex": 12,
"pageSize": 500,
"total": 0,
}
}
rootComponent={
- Object {
+ {
"key": "foo",
- "measures": Array [
- Object {
+ "measures": [
+ {
"bestValue": false,
"metric": "bugs",
"value": "12",
diff --git a/server/sonar-web/src/main/js/apps/component-measures/components/__tests__/__snapshots__/MeasureHeader-test.tsx.snap b/server/sonar-web/src/main/js/apps/component-measures/components/__tests__/__snapshots__/MeasureHeader-test.tsx.snap
index 3e7a651341c..787577a0fa7 100644
--- a/server/sonar-web/src/main/js/apps/component-measures/components/__tests__/__snapshots__/MeasureHeader-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/component-measures/components/__tests__/__snapshots__/MeasureHeader-test.tsx.snap
@@ -32,7 +32,7 @@ exports[`should render correctly 1`] = `
<ForwardRef(Link)
className="js-show-history spacer-left button button-small"
to={
- Object {
+ {
"pathname": "/project/activity",
"search": "?id=foo&graph=custom&custom_metrics=reliability_rating",
}
@@ -48,14 +48,14 @@ exports[`should render correctly 1`] = `
<injectIntl(LeakPeriodLegend)
className="spacer-left"
component={
- Object {
+ {
"key": "foo",
"name": "Foo",
"qualifier": "TRK",
}
}
period={
- Object {
+ {
"date": "2017-05-16T13:50:02+0200",
"index": 1,
"mode": "previous_version",
@@ -102,14 +102,14 @@ exports[`should render correctly for leak 1`] = `
<injectIntl(LeakPeriodLegend)
className="spacer-left"
component={
- Object {
+ {
"key": "foo",
"name": "Foo",
"qualifier": "TRK",
}
}
period={
- Object {
+ {
"date": "2017-05-16T13:50:02+0200",
"index": 1,
"mode": "previous_version",
@@ -156,14 +156,14 @@ exports[`should render with a branch 1`] = `
<injectIntl(LeakPeriodLegend)
className="spacer-left"
component={
- Object {
+ {
"key": "foo",
"name": "Foo",
"qualifier": "TRK",
}
}
period={
- Object {
+ {
"date": "2017-05-16T13:50:02+0200",
"index": 1,
"mode": "previous_version",
@@ -207,7 +207,7 @@ exports[`should work with measure without value 1`] = `
<ForwardRef(Link)
className="js-show-history spacer-left button button-small"
to={
- Object {
+ {
"pathname": "/project/activity",
"search": "?id=foo&graph=custom&custom_metrics=reliability_rating",
}
@@ -223,14 +223,14 @@ exports[`should work with measure without value 1`] = `
<injectIntl(LeakPeriodLegend)
className="spacer-left"
component={
- Object {
+ {
"key": "foo",
"name": "Foo",
"qualifier": "TRK",
}
}
period={
- Object {
+ {
"date": "2017-05-16T13:50:02+0200",
"index": 1,
"mode": "previous_version",
diff --git a/server/sonar-web/src/main/js/apps/component-measures/components/__tests__/__snapshots__/MeasureOverview-test.tsx.snap b/server/sonar-web/src/main/js/apps/component-measures/components/__tests__/__snapshots__/MeasureOverview-test.tsx.snap
index 67b8d518382..002e5241a15 100644
--- a/server/sonar-web/src/main/js/apps/component-measures/components/__tests__/__snapshots__/MeasureOverview-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/component-measures/components/__tests__/__snapshots__/MeasureOverview-test.tsx.snap
@@ -20,10 +20,10 @@ exports[`should render correctly: default 1`] = `
backToFirst={true}
className="text-ellipsis"
component={
- Object {
+ {
"key": "foo",
- "measures": Array [
- Object {
+ "measures": [
+ {
"bestValue": false,
"metric": "bugs",
"value": "12",
@@ -35,10 +35,10 @@ exports[`should render correctly: default 1`] = `
}
handleSelect={[MockFunction]}
rootComponent={
- Object {
+ {
"key": "foo",
- "measures": Array [
- Object {
+ "measures": [
+ {
"bestValue": false,
"metric": "bugs",
"value": "12",
@@ -71,29 +71,29 @@ exports[`should render correctly: default 1`] = `
/>
<BubbleChart
componentKey="foo"
- components={Array []}
+ components={[]}
domain="Reliability"
metrics={
- Object {
- "bugs": Object {
+ {
+ "bugs": {
"id": "bugs",
"key": "bugs",
"name": "bugs",
"type": "INT",
},
- "ncloc": Object {
+ "ncloc": {
"id": "ncloc",
"key": "ncloc",
"name": "ncloc",
"type": "INT",
},
- "reliability_rating": Object {
+ "reliability_rating": {
"id": "reliability_rating",
"key": "reliability_rating",
"name": "reliability_rating",
"type": "DATA",
},
- "reliability_remediation_effort": Object {
+ "reliability_remediation_effort": {
"id": "reliability_remediation_effort",
"key": "reliability_remediation_effort",
"name": "reliability_remediation_effort",
@@ -126,7 +126,7 @@ exports[`should render correctly: has leak period 1`] = `
<Breadcrumbs
backToFirst={true}
branchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": false,
@@ -135,10 +135,10 @@ exports[`should render correctly: has leak period 1`] = `
}
className="text-ellipsis"
component={
- Object {
+ {
"key": "foo",
- "measures": Array [
- Object {
+ "measures": [
+ {
"bestValue": false,
"metric": "bugs",
"value": "12",
@@ -150,10 +150,10 @@ exports[`should render correctly: has leak period 1`] = `
}
handleSelect={[MockFunction]}
rootComponent={
- Object {
+ {
"key": "foo",
- "measures": Array [
- Object {
+ "measures": [
+ {
"bestValue": false,
"metric": "bugs",
"value": "12",
@@ -184,10 +184,10 @@ exports[`should render correctly: has leak period 1`] = `
<injectIntl(LeakPeriodLegend)
className="pull-right"
component={
- Object {
+ {
"key": "foo",
- "measures": Array [
- Object {
+ "measures": [
+ {
"bestValue": false,
"metric": "bugs",
"value": "12",
@@ -198,7 +198,7 @@ exports[`should render correctly: has leak period 1`] = `
}
}
period={
- Object {
+ {
"date": "2019-04-23T02:12:32+0100",
"index": 0,
"mode": "previous_version",
@@ -211,7 +211,7 @@ exports[`should render correctly: has leak period 1`] = `
/>
<BubbleChart
branchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": false,
@@ -219,29 +219,29 @@ exports[`should render correctly: has leak period 1`] = `
}
}
componentKey="foo"
- components={Array []}
+ components={[]}
domain="Reliability"
metrics={
- Object {
- "bugs": Object {
+ {
+ "bugs": {
"id": "bugs",
"key": "bugs",
"name": "bugs",
"type": "INT",
},
- "ncloc": Object {
+ "ncloc": {
"id": "ncloc",
"key": "ncloc",
"name": "ncloc",
"type": "INT",
},
- "reliability_rating": Object {
+ "reliability_rating": {
"id": "reliability_rating",
"key": "reliability_rating",
"name": "reliability_rating",
"type": "DATA",
},
- "reliability_remediation_effort": Object {
+ "reliability_remediation_effort": {
"id": "reliability_remediation_effort",
"key": "reliability_remediation_effort",
"name": "reliability_remediation_effort",
@@ -275,10 +275,10 @@ exports[`should render correctly: is file 1`] = `
backToFirst={true}
className="text-ellipsis"
component={
- Object {
+ {
"key": "foo:src/index.tsx",
- "measures": Array [
- Object {
+ "measures": [
+ {
"bestValue": false,
"metric": "bugs",
"value": "1",
@@ -291,10 +291,10 @@ exports[`should render correctly: is file 1`] = `
}
handleSelect={[MockFunction]}
rootComponent={
- Object {
+ {
"key": "foo",
- "measures": Array [
- Object {
+ "measures": [
+ {
"bestValue": false,
"metric": "bugs",
"value": "12",
@@ -360,10 +360,10 @@ exports[`should render correctly: loading 1`] = `
backToFirst={true}
className="text-ellipsis"
component={
- Object {
+ {
"key": "foo",
- "measures": Array [
- Object {
+ "measures": [
+ {
"bestValue": false,
"metric": "bugs",
"value": "12",
@@ -375,10 +375,10 @@ exports[`should render correctly: loading 1`] = `
}
handleSelect={[MockFunction]}
rootComponent={
- Object {
+ {
"key": "foo",
- "measures": Array [
- Object {
+ "measures": [
+ {
"bestValue": false,
"metric": "bugs",
"value": "12",
diff --git a/server/sonar-web/src/main/js/apps/component-measures/components/__tests__/__snapshots__/MeasureViewSelect-test.tsx.snap b/server/sonar-web/src/main/js/apps/component-measures/components/__tests__/__snapshots__/MeasureViewSelect-test.tsx.snap
index ca6e1b17787..20414789789 100644
--- a/server/sonar-web/src/main/js/apps/component-measures/components/__tests__/__snapshots__/MeasureViewSelect-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/component-measures/components/__tests__/__snapshots__/MeasureViewSelect-test.tsx.snap
@@ -5,7 +5,7 @@ exports[`should render correctly: has no list 1`] = `
aria-labelledby="measures-view-selection-label"
blurInputOnSelect={true}
components={
- Object {
+ {
"Option": [Function],
"SingleValue": [Function],
}
@@ -13,13 +13,13 @@ exports[`should render correctly: has no list 1`] = `
isSearchable={false}
onChange={[Function]}
options={
- Array [
- Object {
+ [
+ {
"icon": <TreeIcon />,
"label": "component_measures.tab.tree",
"value": "tree",
},
- Object {
+ {
"icon": <TreemapIcon />,
"label": "component_measures.tab.treemap",
"value": "treemap",
@@ -34,7 +34,7 @@ exports[`should render correctly: has no tree 1`] = `
aria-labelledby="measures-view-selection-label"
blurInputOnSelect={true}
components={
- Object {
+ {
"Option": [Function],
"SingleValue": [Function],
}
@@ -42,8 +42,8 @@ exports[`should render correctly: has no tree 1`] = `
isSearchable={false}
onChange={[Function]}
options={
- Array [
- Object {
+ [
+ {
"icon": <ListIcon />,
"label": "component_measures.tab.list",
"value": "list",
@@ -51,7 +51,7 @@ exports[`should render correctly: has no tree 1`] = `
]
}
value={
- Object {
+ {
"icon": <ListIcon />,
"label": "component_measures.tab.list",
"value": "list",
@@ -65,7 +65,7 @@ exports[`should render correctly: has no treemap 1`] = `
aria-labelledby="measures-view-selection-label"
blurInputOnSelect={true}
components={
- Object {
+ {
"Option": [Function],
"SingleValue": [Function],
}
@@ -73,18 +73,18 @@ exports[`should render correctly: has no treemap 1`] = `
isSearchable={false}
onChange={[Function]}
options={
- Array [
- Object {
+ [
+ {
"icon": <TreeIcon />,
"label": "component_measures.tab.tree",
"value": "tree",
},
- Object {
+ {
"icon": <ListIcon />,
"label": "component_measures.tab.list",
"value": "list",
},
- Object {
+ {
"icon": <TreemapIcon />,
"label": "component_measures.tab.treemap",
"value": "treemap",
@@ -92,7 +92,7 @@ exports[`should render correctly: has no treemap 1`] = `
]
}
value={
- Object {
+ {
"icon": <ListIcon />,
"label": "component_measures.tab.list",
"value": "list",
diff --git a/server/sonar-web/src/main/js/apps/component-measures/drilldown/__tests__/__snapshots__/BubbleChart-test.tsx.snap b/server/sonar-web/src/main/js/apps/component-measures/drilldown/__tests__/__snapshots__/BubbleChart-test.tsx.snap
index 955414241f7..5c1419f015f 100644
--- a/server/sonar-web/src/main/js/apps/component-measures/drilldown/__tests__/__snapshots__/BubbleChart-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/component-measures/drilldown/__tests__/__snapshots__/BubbleChart-test.tsx.snap
@@ -35,7 +35,7 @@ exports[`should render correctly: all on x=0 1`] = `
</span>
<ColorRatingsLegend
className="spacer-top"
- filters={Object {}}
+ filters={{}}
onRatingClick={[Function]}
/>
</span>
@@ -48,7 +48,7 @@ exports[`should render correctly: all on x=0 1`] = `
>
<ForwardRef(Link)
to={
- Object {
+ {
"pathname": "/component_measures",
"search": "?id=foo&metric=vulnerabilities&view=list",
}
@@ -66,71 +66,71 @@ exports[`should render correctly: all on x=0 1`] = `
formatYTick={[Function]}
height={500}
items={
- Array [
- Object {
+ [
+ {
"color": undefined,
- "data": Object {
+ "data": {
"key": "foo:src/index.tsx",
"leak": "1.0",
- "measures": Array [
- Object {
+ "measures": [
+ {
"bestValue": true,
"leak": "1.0",
- "metric": Object {
+ "metric": {
"id": "ncloc",
"key": "ncloc",
"name": "ncloc",
"type": "INT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "0",
},
- Object {
+ {
"bestValue": true,
"leak": "1.0",
- "metric": Object {
+ "metric": {
"id": "security_remediation_effort",
"key": "security_remediation_effort",
"name": "security_remediation_effort",
"type": "DATA",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "0",
},
- Object {
+ {
"bestValue": true,
"leak": "1.0",
- "metric": Object {
+ "metric": {
"id": "vulnerabilities",
"key": "vulnerabilities",
"name": "vulnerabilities",
"type": "INT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "0",
},
- Object {
+ {
"bestValue": true,
"leak": "1.0",
- "metric": Object {
+ "metric": {
"id": "security_rating",
"key": "security_rating",
"name": "security_rating",
"type": "RATING",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
@@ -174,7 +174,7 @@ exports[`should render correctly: all on x=0 1`] = `
}
onBubbleClick={[Function]}
padding={
- Array [
+ [
25,
60,
50,
@@ -182,13 +182,13 @@ exports[`should render correctly: all on x=0 1`] = `
]
}
sizeRange={
- Array [
+ [
5,
45,
]
}
xDomain={
- Array [
+ [
0,
100,
]
@@ -243,7 +243,7 @@ exports[`should render correctly: default 1`] = `
</span>
<ColorRatingsLegend
className="spacer-top"
- filters={Object {}}
+ filters={{}}
onRatingClick={[Function]}
/>
</span>
@@ -256,7 +256,7 @@ exports[`should render correctly: default 1`] = `
>
<ForwardRef(Link)
to={
- Object {
+ {
"pathname": "/component_measures",
"search": "?id=foo&metric=vulnerabilities&view=list",
}
@@ -274,75 +274,75 @@ exports[`should render correctly: default 1`] = `
formatYTick={[Function]}
height={500}
items={
- Array [
- Object {
- "color": Object {
+ [
+ {
+ "color": {
"fill": "#C6E056",
"fillTransparent": "rgba(198, 224, 86, 0.2)",
"stroke": "#809E00",
},
- "data": Object {
+ "data": {
"key": "foo:src/index.tsx",
"leak": "1.0",
- "measures": Array [
- Object {
+ "measures": [
+ {
"bestValue": true,
"leak": "1.0",
- "metric": Object {
+ "metric": {
"id": "ncloc",
"key": "ncloc",
"name": "ncloc",
"type": "INT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "236",
},
- Object {
+ {
"bestValue": true,
"leak": "1.0",
- "metric": Object {
+ "metric": {
"id": "security_remediation_effort",
"key": "security_remediation_effort",
"name": "security_remediation_effort",
"type": "DATA",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "10",
},
- Object {
+ {
"bestValue": true,
"leak": "1.0",
- "metric": Object {
+ "metric": {
"id": "vulnerabilities",
"key": "vulnerabilities",
"name": "vulnerabilities",
"type": "INT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "3",
},
- Object {
+ {
"bestValue": true,
"leak": "1.0",
- "metric": Object {
+ "metric": {
"id": "security_rating",
"key": "security_rating",
"name": "security_rating",
"type": "RATING",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
@@ -386,7 +386,7 @@ exports[`should render correctly: default 1`] = `
}
onBubbleClick={[Function]}
padding={
- Array [
+ [
25,
60,
50,
@@ -394,7 +394,7 @@ exports[`should render correctly: default 1`] = `
]
}
sizeRange={
- Array [
+ [
5,
45,
]
@@ -456,7 +456,7 @@ exports[`should render correctly: only showing first 500 files 1`] = `
</span>
<ColorRatingsLegend
className="spacer-top"
- filters={Object {}}
+ filters={{}}
onRatingClick={[Function]}
/>
</span>
@@ -469,7 +469,7 @@ exports[`should render correctly: only showing first 500 files 1`] = `
>
<ForwardRef(Link)
to={
- Object {
+ {
"pathname": "/component_measures",
"search": "?id=foo&metric=vulnerabilities&view=list",
}
@@ -487,75 +487,75 @@ exports[`should render correctly: only showing first 500 files 1`] = `
formatYTick={[Function]}
height={500}
items={
- Array [
- Object {
- "color": Object {
+ [
+ {
+ "color": {
"fill": "#C6E056",
"fillTransparent": "rgba(198, 224, 86, 0.2)",
"stroke": "#809E00",
},
- "data": Object {
+ "data": {
"key": "foo:src/index.tsx",
"leak": "1.0",
- "measures": Array [
- Object {
+ "measures": [
+ {
"bestValue": true,
"leak": "1.0",
- "metric": Object {
+ "metric": {
"id": "ncloc",
"key": "ncloc",
"name": "ncloc",
"type": "INT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "236",
},
- Object {
+ {
"bestValue": true,
"leak": "1.0",
- "metric": Object {
+ "metric": {
"id": "security_remediation_effort",
"key": "security_remediation_effort",
"name": "security_remediation_effort",
"type": "DATA",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "10",
},
- Object {
+ {
"bestValue": true,
"leak": "1.0",
- "metric": Object {
+ "metric": {
"id": "vulnerabilities",
"key": "vulnerabilities",
"name": "vulnerabilities",
"type": "INT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "3",
},
- Object {
+ {
"bestValue": true,
"leak": "1.0",
- "metric": Object {
+ "metric": {
"id": "security_rating",
"key": "security_rating",
"name": "security_rating",
"type": "RATING",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
@@ -599,7 +599,7 @@ exports[`should render correctly: only showing first 500 files 1`] = `
}
onBubbleClick={[Function]}
padding={
- Array [
+ [
25,
60,
50,
@@ -607,7 +607,7 @@ exports[`should render correctly: only showing first 500 files 1`] = `
]
}
sizeRange={
- Array [
+ [
5,
45,
]
diff --git a/server/sonar-web/src/main/js/apps/component-measures/drilldown/__tests__/__snapshots__/ComponentCell-test.tsx.snap b/server/sonar-web/src/main/js/apps/component-measures/drilldown/__tests__/__snapshots__/ComponentCell-test.tsx.snap
index a7bb6a51d53..efaac5aa149 100644
--- a/server/sonar-web/src/main/js/apps/component-measures/drilldown/__tests__/__snapshots__/ComponentCell-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/component-measures/drilldown/__tests__/__snapshots__/ComponentCell-test.tsx.snap
@@ -11,7 +11,7 @@ exports[`should render correctly for a "APP" root component and a component with
className="link-no-underline"
id="component-measures-component-link-foo"
to={
- Object {
+ {
"pathname": "/component_measures",
"search": "?id=foo&metric=bugs&branch=develop&view=list&selected=foo",
}
@@ -52,7 +52,7 @@ exports[`should render correctly for a "APP" root component and a component with
className="link-no-underline"
id="component-measures-component-link-foo"
to={
- Object {
+ {
"pathname": "/component_measures",
"search": "?id=foo&metric=bugs&view=list&selected=foo",
}
@@ -90,7 +90,7 @@ exports[`should render correctly for a "TRK" root component and a component with
className="link-no-underline"
id="component-measures-component-link-foo"
to={
- Object {
+ {
"pathname": "/component_measures",
"search": "?id=foo&metric=bugs&branch=develop&view=list&selected=foo",
}
@@ -123,7 +123,7 @@ exports[`should render correctly for a "TRK" root component and a component with
className="link-no-underline"
id="component-measures-component-link-foo"
to={
- Object {
+ {
"pathname": "/component_measures",
"search": "?id=foo&metric=bugs&view=list&selected=foo",
}
@@ -156,7 +156,7 @@ exports[`should render correctly for a "VW" root component and a component with
className="link-no-underline"
id="component-measures-component-link-foo"
to={
- Object {
+ {
"pathname": "/component_measures",
"search": "?id=foo&metric=bugs&branch=develop&view=list&selected=foo",
}
@@ -197,7 +197,7 @@ exports[`should render correctly for a "VW" root component and a component with
className="link-no-underline"
id="component-measures-component-link-foo"
to={
- Object {
+ {
"pathname": "/component_measures",
"search": "?id=foo&metric=bugs&view=list&selected=foo",
}
@@ -235,7 +235,7 @@ exports[`should render correctly: default 1`] = `
className="link-no-underline"
id="component-measures-component-link-foo:src/index.tsx"
to={
- Object {
+ {
"pathname": "/component_measures",
"search": "?id=foo&metric=bugs&view=list&selected=foo%3Asrc%2Findex.tsx",
}
diff --git a/server/sonar-web/src/main/js/apps/component-measures/drilldown/__tests__/__snapshots__/ComponentList-test.tsx.snap b/server/sonar-web/src/main/js/apps/component-measures/drilldown/__tests__/__snapshots__/ComponentList-test.tsx.snap
index 85f717ade47..2aa25465fc7 100644
--- a/server/sonar-web/src/main/js/apps/component-measures/drilldown/__tests__/__snapshots__/ComponentList-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/component-measures/drilldown/__tests__/__snapshots__/ComponentList-test.tsx.snap
@@ -7,9 +7,9 @@ exports[`should renders correctly 1`] = `
<tbody>
<ComponentsListRow
component={
- Object {
+ {
"key": "foo",
- "measures": Array [],
+ "measures": [],
"name": "Foo",
"qualifier": "TRK",
}
@@ -17,18 +17,18 @@ exports[`should renders correctly 1`] = `
isSelected={false}
key="foo"
metric={
- Object {
+ {
"id": "2",
"key": "new_bugs",
"name": "New Bugs",
"type": "INT",
}
}
- otherMetrics={Array []}
+ otherMetrics={[]}
rootComponent={
- Object {
+ {
"key": "foo",
- "measures": Array [],
+ "measures": [],
"name": "Foo",
"qualifier": "TRK",
}
@@ -84,9 +84,9 @@ exports[`should renders with multiple measures 1`] = `
<tbody>
<ComponentsListRow
component={
- Object {
+ {
"key": "foo",
- "measures": Array [],
+ "measures": [],
"name": "Foo",
"qualifier": "TRK",
}
@@ -94,7 +94,7 @@ exports[`should renders with multiple measures 1`] = `
isSelected={false}
key="foo"
metric={
- Object {
+ {
"id": "1",
"key": "coverage",
"name": "Coverage",
@@ -102,14 +102,14 @@ exports[`should renders with multiple measures 1`] = `
}
}
otherMetrics={
- Array [
- Object {
+ [
+ {
"id": "3",
"key": "uncovered_lines",
"name": "Lines",
"type": "INT",
},
- Object {
+ {
"id": "4",
"key": "uncovered_conditions",
"name": "Conditions",
@@ -118,9 +118,9 @@ exports[`should renders with multiple measures 1`] = `
]
}
rootComponent={
- Object {
+ {
"key": "foo",
- "measures": Array [],
+ "measures": [],
"name": "Foo",
"qualifier": "TRK",
}
diff --git a/server/sonar-web/src/main/js/apps/component-measures/drilldown/__tests__/__snapshots__/FilesView-test.tsx.snap b/server/sonar-web/src/main/js/apps/component-measures/drilldown/__tests__/__snapshots__/FilesView-test.tsx.snap
index 75f52aa9974..c7943c34bce 100644
--- a/server/sonar-web/src/main/js/apps/component-measures/drilldown/__tests__/__snapshots__/FilesView-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/component-measures/drilldown/__tests__/__snapshots__/FilesView-test.tsx.snap
@@ -4,17 +4,17 @@ exports[`should render with best values hidden 1`] = `
<div>
<ComponentsList
components={
- Array [
- Object {
+ [
+ {
"key": "foo",
- "measures": Array [],
+ "measures": [],
"name": "Foo",
"qualifier": "TRK",
},
]
}
metric={
- Object {
+ {
"id": "1",
"key": "coverage",
"name": "Coverage",
@@ -22,8 +22,8 @@ exports[`should render with best values hidden 1`] = `
}
}
metrics={
- Object {
- "coverage": Object {
+ {
+ "coverage": {
"id": "1",
"key": "coverage",
"name": "Coverage",
@@ -32,9 +32,9 @@ exports[`should render with best values hidden 1`] = `
}
}
rootComponent={
- Object {
+ {
"key": "parent",
- "measures": Array [],
+ "measures": [],
"name": "Parent",
"qualifier": "TRK",
}
@@ -64,17 +64,17 @@ exports[`should renders correctly 1`] = `
<div>
<ComponentsList
components={
- Array [
- Object {
+ [
+ {
"key": "foo",
- "measures": Array [],
+ "measures": [],
"name": "Foo",
"qualifier": "TRK",
},
]
}
metric={
- Object {
+ {
"id": "1",
"key": "coverage",
"name": "Coverage",
@@ -82,8 +82,8 @@ exports[`should renders correctly 1`] = `
}
}
metrics={
- Object {
- "coverage": Object {
+ {
+ "coverage": {
"id": "1",
"key": "coverage",
"name": "Coverage",
@@ -92,9 +92,9 @@ exports[`should renders correctly 1`] = `
}
}
rootComponent={
- Object {
+ {
"key": "parent",
- "measures": Array [],
+ "measures": [],
"name": "Parent",
"qualifier": "TRK",
}
diff --git a/server/sonar-web/src/main/js/apps/component-measures/sidebar/__tests__/__snapshots__/DomainFacet-test.tsx.snap b/server/sonar-web/src/main/js/apps/component-measures/sidebar/__tests__/__snapshots__/DomainFacet-test.tsx.snap
index 64b8dd17bfe..49df50543e7 100644
--- a/server/sonar-web/src/main/js/apps/component-measures/sidebar/__tests__/__snapshots__/DomainFacet-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/component-measures/sidebar/__tests__/__snapshots__/DomainFacet-test.tsx.snap
@@ -9,7 +9,7 @@ exports[`should display facet item list 1`] = `
name="Reliability"
onClick={[Function]}
open={true}
- values={Array []}
+ values={[]}
/>
<FacetItemsList>
<FacetItem
@@ -61,16 +61,16 @@ exports[`should display facet item list 1`] = `
<FacetMeasureValue
displayLeak={true}
measure={
- Object {
+ {
"leak": "5",
- "metric": Object {
+ "metric": {
"domain": "Reliability",
"id": "2",
"key": "new_bugs",
"name": "New Bugs",
"type": "INT",
},
- "period": Object {
+ "period": {
"index": 1,
"value": "5",
},
@@ -109,16 +109,16 @@ exports[`should display facet item list 1`] = `
<FacetMeasureValue
displayLeak={true}
measure={
- Object {
+ {
"leak": "5",
- "metric": Object {
+ "metric": {
"domain": "Reliability",
"id": "1",
"key": "bugs",
"name": "Bugs",
"type": "INT",
},
- "period": Object {
+ "period": {
"index": 1,
"value": "5",
},
@@ -144,7 +144,7 @@ exports[`should display facet item list with bugs selected 1`] = `
onClick={[Function]}
open={true}
values={
- Array [
+ [
"Bugs",
]
}
@@ -199,16 +199,16 @@ exports[`should display facet item list with bugs selected 1`] = `
<FacetMeasureValue
displayLeak={true}
measure={
- Object {
+ {
"leak": "5",
- "metric": Object {
+ "metric": {
"domain": "Reliability",
"id": "2",
"key": "new_bugs",
"name": "New Bugs",
"type": "INT",
},
- "period": Object {
+ "period": {
"index": 1,
"value": "5",
},
@@ -247,16 +247,16 @@ exports[`should display facet item list with bugs selected 1`] = `
<FacetMeasureValue
displayLeak={true}
measure={
- Object {
+ {
"leak": "5",
- "metric": Object {
+ "metric": {
"domain": "Reliability",
"id": "1",
"key": "bugs",
"name": "Bugs",
"type": "INT",
},
- "period": Object {
+ "period": {
"index": 1,
"value": "5",
},
@@ -281,7 +281,7 @@ exports[`should not display subtitles of new measures if there is none 1`] = `
name="Reliability"
onClick={[Function]}
open={true}
- values={Array []}
+ values={[]}
/>
<FacetItemsList>
<FacetItem
@@ -333,8 +333,8 @@ exports[`should not display subtitles of new measures if there is none 1`] = `
<FacetMeasureValue
displayLeak={true}
measure={
- Object {
- "metric": Object {
+ {
+ "metric": {
"domain": "Reliability",
"id": "1",
"key": "bugs",
@@ -362,7 +362,7 @@ exports[`should not display subtitles of new measures if there is none, even on
name="Reliability"
onClick={[Function]}
open={true}
- values={Array []}
+ values={[]}
/>
<FacetItemsList>
<FacetItem
@@ -414,8 +414,8 @@ exports[`should not display subtitles of new measures if there is none, even on
<FacetMeasureValue
displayLeak={true}
measure={
- Object {
- "metric": Object {
+ {
+ "metric": {
"domain": "Reliability",
"id": "2",
"key": "new_bugs",
diff --git a/server/sonar-web/src/main/js/apps/component-measures/sidebar/__tests__/__snapshots__/Sidebar-test.tsx.snap b/server/sonar-web/src/main/js/apps/component-measures/sidebar/__tests__/__snapshots__/Sidebar-test.tsx.snap
index fc32787d667..786291dfc81 100644
--- a/server/sonar-web/src/main/js/apps/component-measures/sidebar/__tests__/__snapshots__/Sidebar-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/component-measures/sidebar/__tests__/__snapshots__/Sidebar-test.tsx.snap
@@ -16,33 +16,33 @@ exports[`should display two facets 1`] = `
/>
<DomainFacet
domain={
- Object {
- "measures": Array [
- Object {
+ {
+ "measures": [
+ {
"leak": "70",
- "metric": Object {
+ "metric": {
"domain": "Coverage",
"id": "1",
"key": "lines_to_cover",
"name": "Lines to Cover",
"type": "INT",
},
- "period": Object {
+ "period": {
"index": 1,
"value": "70",
},
"value": "431",
},
- Object {
+ {
"leak": "0.0999999999999943",
- "metric": Object {
+ "metric": {
"domain": "Coverage",
"id": "2",
"key": "coverage",
"name": "Coverage",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"index": 1,
"value": "0.0999999999999943",
},
@@ -61,18 +61,18 @@ exports[`should display two facets 1`] = `
/>
<DomainFacet
domain={
- Object {
- "measures": Array [
- Object {
+ {
+ "measures": [
+ {
"leak": "0.0",
- "metric": Object {
+ "metric": {
"domain": "Duplications",
"id": "3",
"key": "duplicated_lines_density",
"name": "Duplicated Lines (%)",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"index": 1,
"value": "0.0",
},
diff --git a/server/sonar-web/src/main/js/apps/groups/components/__tests__/__snapshots__/App-test.tsx.snap b/server/sonar-web/src/main/js/apps/groups/components/__tests__/__snapshots__/App-test.tsx.snap
index 9137ef5828d..8e6b044f3c6 100644
--- a/server/sonar-web/src/main/js/apps/groups/components/__tests__/__snapshots__/App-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/groups/components/__tests__/__snapshots__/App-test.tsx.snap
@@ -58,15 +58,15 @@ exports[`should render correctly 2`] = `
/>
<List
groups={
- Array [
- Object {
+ [
+ {
"default": false,
"description": "Owners of organization foo",
"id": 1,
"membersCount": 1,
"name": "Owners",
},
- Object {
+ {
"default": true,
"description": "Members of organization foo",
"id": 2,
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 f19291c2901..b074ac3da9b 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
@@ -25,7 +25,7 @@ exports[`should edit members 2`] = `
</ButtonIcon>
<EditMembersModal
group={
- Object {
+ {
"id": 3,
"membersCount": 5,
"name": "Foo",
diff --git a/server/sonar-web/src/main/js/apps/groups/components/__tests__/__snapshots__/EditMembersModal-test.tsx.snap b/server/sonar-web/src/main/js/apps/groups/components/__tests__/__snapshots__/EditMembersModal-test.tsx.snap
index 874619ef9ea..73c64b6bdd7 100644
--- a/server/sonar-web/src/main/js/apps/groups/components/__tests__/__snapshots__/EditMembersModal-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/groups/components/__tests__/__snapshots__/EditMembersModal-test.tsx.snap
@@ -17,7 +17,7 @@ exports[`should render modal properly 1`] = `
>
<SelectList
elements={
- Array [
+ [
"foo",
]
}
@@ -27,7 +27,7 @@ exports[`should render modal properly 1`] = `
onUnselect={[Function]}
renderElement={[Function]}
selectedElements={
- Array [
+ [
"foo",
]
}
diff --git a/server/sonar-web/src/main/js/apps/groups/components/__tests__/__snapshots__/List-test.tsx.snap b/server/sonar-web/src/main/js/apps/groups/components/__tests__/__snapshots__/List-test.tsx.snap
index 2db446a6c97..5d3a39ef7ca 100644
--- a/server/sonar-web/src/main/js/apps/groups/components/__tests__/__snapshots__/List-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/groups/components/__tests__/__snapshots__/List-test.tsx.snap
@@ -61,7 +61,7 @@ exports[`should render 1`] = `
</tr>
<ListItem
group={
- Object {
+ {
"default": false,
"description": "barbar",
"id": 3,
@@ -76,7 +76,7 @@ exports[`should render 1`] = `
/>
<ListItem
group={
- Object {
+ {
"default": false,
"description": "foobar",
"id": 2,
@@ -91,7 +91,7 @@ exports[`should render 1`] = `
/>
<ListItem
group={
- Object {
+ {
"default": true,
"description": "",
"id": 1,
diff --git a/server/sonar-web/src/main/js/apps/groups/components/__tests__/__snapshots__/ListItem-test.tsx.snap b/server/sonar-web/src/main/js/apps/groups/components/__tests__/__snapshots__/ListItem-test.tsx.snap
index 41ede69e95c..04fecff59d2 100644
--- a/server/sonar-web/src/main/js/apps/groups/components/__tests__/__snapshots__/ListItem-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/groups/components/__tests__/__snapshots__/ListItem-test.tsx.snap
@@ -23,7 +23,7 @@ exports[`should render correctly 1`] = `
>
<EditMembers
group={
- Object {
+ {
"id": 1,
"membersCount": 1,
"name": "Foo",
diff --git a/server/sonar-web/src/main/js/apps/issues/components/__tests__/__snapshots__/AssigneeSelect-test.tsx.snap b/server/sonar-web/src/main/js/apps/issues/components/__tests__/__snapshots__/AssigneeSelect-test.tsx.snap
index 89e1a753b8a..c1048510935 100644
--- a/server/sonar-web/src/main/js/apps/issues/components/__tests__/__snapshots__/AssigneeSelect-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/issues/components/__tests__/__snapshots__/AssigneeSelect-test.tsx.snap
@@ -4,12 +4,12 @@ exports[`should render correctly: default 1`] = `
<SearchSelect
className="input-super-large"
components={
- Object {
+ {
"Option": [Function],
"SingleValue": [Function],
}
}
- defaultOptions={Array []}
+ defaultOptions={[]}
inputId="id"
isClearable={true}
loadOptions={[Function]}
@@ -22,14 +22,14 @@ exports[`should render correctly: logged in & assignable issues 1`] = `
<SearchSelect
className="input-super-large"
components={
- Object {
+ {
"Option": [Function],
"SingleValue": [Function],
}
}
defaultOptions={
- Array [
- Object {
+ [
+ {
"avatar": undefined,
"label": "Skywalker",
"value": "luke",
@@ -48,12 +48,12 @@ exports[`should render correctly: logged in & no assignable issues 1`] = `
<SearchSelect
className="input-super-large"
components={
- Object {
+ {
"Option": [Function],
"SingleValue": [Function],
}
}
- defaultOptions={Array []}
+ defaultOptions={[]}
inputId="id"
isClearable={true}
loadOptions={[Function]}
@@ -66,14 +66,14 @@ exports[`should render correctly: unassignable issues 1`] = `
<SearchSelect
className="input-super-large"
components={
- Object {
+ {
"Option": [Function],
"SingleValue": [Function],
}
}
defaultOptions={
- Array [
- Object {
+ [
+ {
"label": "unassigned",
"value": "",
},
diff --git a/server/sonar-web/src/main/js/apps/issues/components/__tests__/__snapshots__/BulkChangeModal-test.tsx.snap b/server/sonar-web/src/main/js/apps/issues/components/__tests__/__snapshots__/BulkChangeModal-test.tsx.snap
index fbfc9ae9928..a1055d09fab 100644
--- a/server/sonar-web/src/main/js/apps/issues/components/__tests__/__snapshots__/BulkChangeModal-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/issues/components/__tests__/__snapshots__/BulkChangeModal-test.tsx.snap
@@ -119,7 +119,7 @@ exports[`should display warning when too many issues are passed 2`] = `
defaultMessage="issue_bulk_change.max_issues_reached"
id="issue_bulk_change.max_issues_reached"
values={
- Object {
+ {
"max": <strong>
500
</strong>,
@@ -132,7 +132,7 @@ exports[`should display warning when too many issues are passed 2`] = `
exports[`should render select for severity: Option 1`] = `
<Option
data={
- Object {
+ {
"label": "label",
"value": "value",
}
@@ -148,7 +148,7 @@ exports[`should render select for severity: Option 1`] = `
exports[`should render select for severity: SingleValue 1`] = `
<SingleValue
data={
- Object {
+ {
"label": "label",
"value": "value",
}
@@ -164,7 +164,7 @@ exports[`should render select for severity: SingleValue 1`] = `
exports[`should render select for type: Option 1`] = `
<Option
data={
- Object {
+ {
"label": "label",
"value": "value",
}
@@ -188,7 +188,7 @@ exports[`should render select for type: Option 1`] = `
exports[`should render select for type: SingleValue 1`] = `
<SingleValue
data={
- Object {
+ {
"label": "label",
"value": "value",
}
diff --git a/server/sonar-web/src/main/js/apps/issues/components/__tests__/__snapshots__/IssuesList-test.tsx.snap b/server/sonar-web/src/main/js/apps/issues/components/__tests__/__snapshots__/IssuesList-test.tsx.snap
index cc254758253..d107ddc2693 100644
--- a/server/sonar-web/src/main/js/apps/issues/components/__tests__/__snapshots__/IssuesList-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/issues/components/__tests__/__snapshots__/IssuesList-test.tsx.snap
@@ -13,16 +13,16 @@ exports[`should render correctly 2`] = `
<ListItem
checked={false}
issue={
- Object {
- "actions": Array [],
+ {
+ "actions": [],
"component": "main.js",
"componentEnabled": true,
"componentLongName": "main.js",
"componentQualifier": "FIL",
"componentUuid": "foo1234",
"creationDate": "2017-03-01T09:36:01+0100",
- "flows": Array [],
- "flowsWithType": Array [],
+ "flows": [],
+ "flowsWithType": [],
"key": "AVsae-CQS-9G3txfbFN2",
"line": 25,
"message": "Reduce the number of conditional operators (4) used in the expression",
@@ -31,16 +31,16 @@ exports[`should render correctly 2`] = `
"projectName": "Foo",
"rule": "javascript:S1067",
"ruleName": "foo",
- "secondaryLocations": Array [],
+ "secondaryLocations": [],
"severity": "MAJOR",
"status": "OPEN",
- "textRange": Object {
+ "textRange": {
"endLine": 26,
"endOffset": 15,
"startLine": 25,
"startOffset": 0,
},
- "transitions": Array [],
+ "transitions": [],
"type": "BUG",
}
}
@@ -55,16 +55,16 @@ exports[`should render correctly 2`] = `
<ListItem
checked={false}
issue={
- Object {
- "actions": Array [],
+ {
+ "actions": [],
"component": "main.js",
"componentEnabled": true,
"componentLongName": "main.js",
"componentQualifier": "FIL",
"componentUuid": "foo1234",
"creationDate": "2017-03-01T09:36:01+0100",
- "flows": Array [],
- "flowsWithType": Array [],
+ "flows": [],
+ "flowsWithType": [],
"key": "AVsae-CQS-9G3txfbFN3",
"line": 25,
"message": "Reduce the number of conditional operators (4) used in the expression",
@@ -73,16 +73,16 @@ exports[`should render correctly 2`] = `
"projectName": "Foo",
"rule": "javascript:S1067",
"ruleName": "foo",
- "secondaryLocations": Array [],
+ "secondaryLocations": [],
"severity": "MAJOR",
"status": "OPEN",
- "textRange": Object {
+ "textRange": {
"endLine": 26,
"endOffset": 15,
"startLine": 25,
"startOffset": 0,
},
- "transitions": Array [],
+ "transitions": [],
"type": "BUG",
}
}
@@ -93,16 +93,16 @@ exports[`should render correctly 2`] = `
onFilterChange={[MockFunction]}
onPopupToggle={[MockFunction]}
previousIssue={
- Object {
- "actions": Array [],
+ {
+ "actions": [],
"component": "main.js",
"componentEnabled": true,
"componentLongName": "main.js",
"componentQualifier": "FIL",
"componentUuid": "foo1234",
"creationDate": "2017-03-01T09:36:01+0100",
- "flows": Array [],
- "flowsWithType": Array [],
+ "flows": [],
+ "flowsWithType": [],
"key": "AVsae-CQS-9G3txfbFN2",
"line": 25,
"message": "Reduce the number of conditional operators (4) used in the expression",
@@ -111,16 +111,16 @@ exports[`should render correctly 2`] = `
"projectName": "Foo",
"rule": "javascript:S1067",
"ruleName": "foo",
- "secondaryLocations": Array [],
+ "secondaryLocations": [],
"severity": "MAJOR",
"status": "OPEN",
- "textRange": Object {
+ "textRange": {
"endLine": 26,
"endOffset": 15,
"startLine": 25,
"startOffset": 0,
},
- "transitions": Array [],
+ "transitions": [],
"type": "BUG",
}
}
diff --git a/server/sonar-web/src/main/js/apps/issues/components/__tests__/__snapshots__/IssuesSourceViewer-test.tsx.snap b/server/sonar-web/src/main/js/apps/issues/components/__tests__/__snapshots__/IssuesSourceViewer-test.tsx.snap
index bb4189f7f04..1c81bef37a8 100644
--- a/server/sonar-web/src/main/js/apps/issues/components/__tests__/__snapshots__/IssuesSourceViewer-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/issues/components/__tests__/__snapshots__/IssuesSourceViewer-test.tsx.snap
@@ -3,7 +3,7 @@
exports[`should render CrossComponentSourceViewer correctly 1`] = `
<ContextProvider
value={
- Object {
+ {
"registerPrimaryLocationRef": [Function],
"registerSelectedSecondaryLocationRef": [Function],
}
@@ -11,7 +11,7 @@ exports[`should render CrossComponentSourceViewer correctly 1`] = `
>
<CrossComponentSourceViewer
branchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": true,
@@ -19,28 +19,28 @@ exports[`should render CrossComponentSourceViewer correctly 1`] = `
}
}
issue={
- Object {
- "actions": Array [],
+ {
+ "actions": [],
"component": "main.js",
"componentEnabled": true,
"componentLongName": "main.js",
"componentQualifier": "FIL",
"componentUuid": "foo1234",
"creationDate": "2017-03-01T09:36:01+0100",
- "flows": Array [
- Array [
- Object {
+ "flows": [
+ [
+ {
"component": "main.js",
- "textRange": Object {
+ "textRange": {
"endLine": 2,
"endOffset": 2,
"startLine": 1,
"startOffset": 1,
},
},
- Object {
+ {
"component": "main.js",
- "textRange": Object {
+ "textRange": {
"endLine": 12,
"endOffset": 2,
"startLine": 10,
@@ -49,7 +49,7 @@ exports[`should render CrossComponentSourceViewer correctly 1`] = `
},
],
],
- "flowsWithType": Array [],
+ "flowsWithType": [],
"key": "AVsae-CQS-9G3txfbFN2",
"line": 25,
"message": "Reduce the number of conditional operators (4) used in the expression",
@@ -58,21 +58,21 @@ exports[`should render CrossComponentSourceViewer correctly 1`] = `
"projectName": "Foo",
"rule": "javascript:S1067",
"ruleName": "foo",
- "secondaryLocations": Array [
- Object {
+ "secondaryLocations": [
+ {
"component": "main.js",
"index": 0,
- "textRange": Object {
+ "textRange": {
"endLine": 2,
"endOffset": 2,
"startLine": 1,
"startOffset": 1,
},
},
- Object {
+ {
"component": "main.js",
"index": 1,
- "textRange": Object {
+ "textRange": {
"endLine": 2,
"endOffset": 2,
"startLine": 1,
@@ -82,49 +82,49 @@ exports[`should render CrossComponentSourceViewer correctly 1`] = `
],
"severity": "MAJOR",
"status": "OPEN",
- "textRange": Object {
+ "textRange": {
"endLine": 26,
"endOffset": 15,
"startLine": 25,
"startOffset": 0,
},
- "transitions": Array [],
+ "transitions": [],
"type": "BUG",
}
}
issues={
- Array [
- Object {
- "actions": Array [],
+ [
+ {
+ "actions": [],
"component": "main.js",
"componentEnabled": true,
"componentLongName": "main.js",
"componentQualifier": "FIL",
"componentUuid": "foo1234",
"creationDate": "2017-03-01T09:36:01+0100",
- "flows": Array [
- Array [
- Object {
+ "flows": [
+ [
+ {
"component": "main.js",
- "textRange": Object {
+ "textRange": {
"endLine": 2,
"endOffset": 2,
"startLine": 1,
"startOffset": 1,
},
},
- Object {
+ {
"component": "main.js",
- "textRange": Object {
+ "textRange": {
"endLine": 2,
"endOffset": 2,
"startLine": 1,
"startOffset": 1,
},
},
- Object {
+ {
"component": "main.js",
- "textRange": Object {
+ "textRange": {
"endLine": 2,
"endOffset": 2,
"startLine": 1,
@@ -132,19 +132,19 @@ exports[`should render CrossComponentSourceViewer correctly 1`] = `
},
},
],
- Array [
- Object {
+ [
+ {
"component": "main.js",
- "textRange": Object {
+ "textRange": {
"endLine": 2,
"endOffset": 2,
"startLine": 1,
"startOffset": 1,
},
},
- Object {
+ {
"component": "main.js",
- "textRange": Object {
+ "textRange": {
"endLine": 2,
"endOffset": 2,
"startLine": 1,
@@ -153,7 +153,7 @@ exports[`should render CrossComponentSourceViewer correctly 1`] = `
},
],
],
- "flowsWithType": Array [],
+ "flowsWithType": [],
"key": "AVsae-CQS-9G3txfbFN2",
"line": 25,
"message": "Reduce the number of conditional operators (4) used in the expression",
@@ -162,19 +162,19 @@ exports[`should render CrossComponentSourceViewer correctly 1`] = `
"projectName": "Foo",
"rule": "javascript:S1067",
"ruleName": "foo",
- "secondaryLocations": Array [
- Object {
+ "secondaryLocations": [
+ {
"component": "main.js",
- "textRange": Object {
+ "textRange": {
"endLine": 2,
"endOffset": 2,
"startLine": 1,
"startOffset": 1,
},
},
- Object {
+ {
"component": "main.js",
- "textRange": Object {
+ "textRange": {
"endLine": 2,
"endOffset": 2,
"startLine": 1,
@@ -184,33 +184,33 @@ exports[`should render CrossComponentSourceViewer correctly 1`] = `
],
"severity": "MAJOR",
"status": "OPEN",
- "textRange": Object {
+ "textRange": {
"endLine": 26,
"endOffset": 15,
"startLine": 25,
"startOffset": 0,
},
- "transitions": Array [],
+ "transitions": [],
"type": "BUG",
},
]
}
locations={
- Array [
- Object {
+ [
+ {
"component": "main.js",
"index": 0,
- "textRange": Object {
+ "textRange": {
"endLine": 2,
"endOffset": 2,
"startLine": 1,
"startOffset": 1,
},
},
- Object {
+ {
"component": "main.js",
"index": 1,
- "textRange": Object {
+ "textRange": {
"endLine": 2,
"endOffset": 2,
"startLine": 1,
@@ -228,7 +228,7 @@ exports[`should render CrossComponentSourceViewer correctly 1`] = `
exports[`should render SourceViewer correctly: all secondary locations on same line 1`] = `
<ContextProvider
value={
- Object {
+ {
"registerPrimaryLocationRef": [Function],
"registerSelectedSecondaryLocationRef": [Function],
}
@@ -236,7 +236,7 @@ exports[`should render SourceViewer correctly: all secondary locations on same l
>
<CrossComponentSourceViewer
branchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": true,
@@ -244,37 +244,37 @@ exports[`should render SourceViewer correctly: all secondary locations on same l
}
}
issue={
- Object {
- "actions": Array [],
+ {
+ "actions": [],
"component": "main.js",
"componentEnabled": true,
"componentLongName": "main.js",
"componentQualifier": "FIL",
"componentUuid": "foo1234",
"creationDate": "2017-03-01T09:36:01+0100",
- "flows": Array [
- Array [
- Object {
+ "flows": [
+ [
+ {
"component": "main.js",
- "textRange": Object {
+ "textRange": {
"endLine": 2,
"endOffset": 2,
"startLine": 1,
"startOffset": 1,
},
},
- Object {
+ {
"component": "main.js",
- "textRange": Object {
+ "textRange": {
"endLine": 2,
"endOffset": 2,
"startLine": 1,
"startOffset": 1,
},
},
- Object {
+ {
"component": "main.js",
- "textRange": Object {
+ "textRange": {
"endLine": 2,
"endOffset": 2,
"startLine": 1,
@@ -283,7 +283,7 @@ exports[`should render SourceViewer correctly: all secondary locations on same l
},
],
],
- "flowsWithType": Array [],
+ "flowsWithType": [],
"key": "AVsae-CQS-9G3txfbFN2",
"line": 25,
"message": "Reduce the number of conditional operators (4) used in the expression",
@@ -292,21 +292,21 @@ exports[`should render SourceViewer correctly: all secondary locations on same l
"projectName": "Foo",
"rule": "javascript:S1067",
"ruleName": "foo",
- "secondaryLocations": Array [
- Object {
+ "secondaryLocations": [
+ {
"component": "main.js",
"index": 0,
- "textRange": Object {
+ "textRange": {
"endLine": 2,
"endOffset": 2,
"startLine": 1,
"startOffset": 1,
},
},
- Object {
+ {
"component": "main.js",
"index": 1,
- "textRange": Object {
+ "textRange": {
"endLine": 2,
"endOffset": 2,
"startLine": 1,
@@ -316,49 +316,49 @@ exports[`should render SourceViewer correctly: all secondary locations on same l
],
"severity": "MAJOR",
"status": "OPEN",
- "textRange": Object {
+ "textRange": {
"endLine": 26,
"endOffset": 15,
"startLine": 25,
"startOffset": 0,
},
- "transitions": Array [],
+ "transitions": [],
"type": "BUG",
}
}
issues={
- Array [
- Object {
- "actions": Array [],
+ [
+ {
+ "actions": [],
"component": "main.js",
"componentEnabled": true,
"componentLongName": "main.js",
"componentQualifier": "FIL",
"componentUuid": "foo1234",
"creationDate": "2017-03-01T09:36:01+0100",
- "flows": Array [
- Array [
- Object {
+ "flows": [
+ [
+ {
"component": "main.js",
- "textRange": Object {
+ "textRange": {
"endLine": 2,
"endOffset": 2,
"startLine": 1,
"startOffset": 1,
},
},
- Object {
+ {
"component": "main.js",
- "textRange": Object {
+ "textRange": {
"endLine": 2,
"endOffset": 2,
"startLine": 1,
"startOffset": 1,
},
},
- Object {
+ {
"component": "main.js",
- "textRange": Object {
+ "textRange": {
"endLine": 2,
"endOffset": 2,
"startLine": 1,
@@ -366,19 +366,19 @@ exports[`should render SourceViewer correctly: all secondary locations on same l
},
},
],
- Array [
- Object {
+ [
+ {
"component": "main.js",
- "textRange": Object {
+ "textRange": {
"endLine": 2,
"endOffset": 2,
"startLine": 1,
"startOffset": 1,
},
},
- Object {
+ {
"component": "main.js",
- "textRange": Object {
+ "textRange": {
"endLine": 2,
"endOffset": 2,
"startLine": 1,
@@ -387,7 +387,7 @@ exports[`should render SourceViewer correctly: all secondary locations on same l
},
],
],
- "flowsWithType": Array [],
+ "flowsWithType": [],
"key": "AVsae-CQS-9G3txfbFN2",
"line": 25,
"message": "Reduce the number of conditional operators (4) used in the expression",
@@ -396,19 +396,19 @@ exports[`should render SourceViewer correctly: all secondary locations on same l
"projectName": "Foo",
"rule": "javascript:S1067",
"ruleName": "foo",
- "secondaryLocations": Array [
- Object {
+ "secondaryLocations": [
+ {
"component": "main.js",
- "textRange": Object {
+ "textRange": {
"endLine": 2,
"endOffset": 2,
"startLine": 1,
"startOffset": 1,
},
},
- Object {
+ {
"component": "main.js",
- "textRange": Object {
+ "textRange": {
"endLine": 2,
"endOffset": 2,
"startLine": 1,
@@ -418,33 +418,33 @@ exports[`should render SourceViewer correctly: all secondary locations on same l
],
"severity": "MAJOR",
"status": "OPEN",
- "textRange": Object {
+ "textRange": {
"endLine": 26,
"endOffset": 15,
"startLine": 25,
"startOffset": 0,
},
- "transitions": Array [],
+ "transitions": [],
"type": "BUG",
},
]
}
locations={
- Array [
- Object {
+ [
+ {
"component": "main.js",
"index": 0,
- "textRange": Object {
+ "textRange": {
"endLine": 2,
"endOffset": 2,
"startLine": 1,
"startOffset": 1,
},
},
- Object {
+ {
"component": "main.js",
"index": 1,
- "textRange": Object {
+ "textRange": {
"endLine": 2,
"endOffset": 2,
"startLine": 1,
@@ -462,7 +462,7 @@ exports[`should render SourceViewer correctly: all secondary locations on same l
exports[`should render SourceViewer correctly: default 1`] = `
<ContextProvider
value={
- Object {
+ {
"registerPrimaryLocationRef": [Function],
"registerSelectedSecondaryLocationRef": [Function],
}
@@ -470,7 +470,7 @@ exports[`should render SourceViewer correctly: default 1`] = `
>
<CrossComponentSourceViewer
branchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": true,
@@ -478,16 +478,16 @@ exports[`should render SourceViewer correctly: default 1`] = `
}
}
issue={
- Object {
- "actions": Array [],
+ {
+ "actions": [],
"component": "main.js",
"componentEnabled": true,
"componentLongName": "main.js",
"componentQualifier": "FIL",
"componentUuid": "foo1234",
"creationDate": "2017-03-01T09:36:01+0100",
- "flows": Array [],
- "flowsWithType": Array [],
+ "flows": [],
+ "flowsWithType": [],
"key": "AVsae-CQS-9G3txfbFN2",
"line": 25,
"message": "Reduce the number of conditional operators (4) used in the expression",
@@ -496,31 +496,31 @@ exports[`should render SourceViewer correctly: default 1`] = `
"projectName": "Foo",
"rule": "javascript:S1067",
"ruleName": "foo",
- "secondaryLocations": Array [],
+ "secondaryLocations": [],
"severity": "MAJOR",
"status": "OPEN",
- "textRange": Object {
+ "textRange": {
"endLine": 26,
"endOffset": 15,
"startLine": 25,
"startOffset": 0,
},
- "transitions": Array [],
+ "transitions": [],
"type": "BUG",
}
}
issues={
- Array [
- Object {
- "actions": Array [],
+ [
+ {
+ "actions": [],
"component": "main.js",
"componentEnabled": true,
"componentLongName": "main.js",
"componentQualifier": "FIL",
"componentUuid": "foo1234",
"creationDate": "2017-03-01T09:36:01+0100",
- "flows": Array [],
- "flowsWithType": Array [],
+ "flows": [],
+ "flowsWithType": [],
"key": "AVsae-CQS-9G3txfbFN2",
"line": 25,
"message": "Reduce the number of conditional operators (4) used in the expression",
@@ -529,21 +529,21 @@ exports[`should render SourceViewer correctly: default 1`] = `
"projectName": "Foo",
"rule": "javascript:S1067",
"ruleName": "foo",
- "secondaryLocations": Array [],
+ "secondaryLocations": [],
"severity": "MAJOR",
"status": "OPEN",
- "textRange": Object {
+ "textRange": {
"endLine": 26,
"endOffset": 15,
"startLine": 25,
"startOffset": 0,
},
- "transitions": Array [],
+ "transitions": [],
"type": "BUG",
},
]
}
- locations={Array []}
+ locations={[]}
onIssueSelect={[MockFunction]}
onLocationSelect={[MockFunction]}
/>
@@ -553,7 +553,7 @@ exports[`should render SourceViewer correctly: default 1`] = `
exports[`should render SourceViewer correctly: single secondary location 1`] = `
<ContextProvider
value={
- Object {
+ {
"registerPrimaryLocationRef": [Function],
"registerSelectedSecondaryLocationRef": [Function],
}
@@ -561,7 +561,7 @@ exports[`should render SourceViewer correctly: single secondary location 1`] = `
>
<CrossComponentSourceViewer
branchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": true,
@@ -569,19 +569,19 @@ exports[`should render SourceViewer correctly: single secondary location 1`] = `
}
}
issue={
- Object {
- "actions": Array [],
+ {
+ "actions": [],
"component": "main.js",
"componentEnabled": true,
"componentLongName": "main.js",
"componentQualifier": "FIL",
"componentUuid": "foo1234",
"creationDate": "2017-03-01T09:36:01+0100",
- "flows": Array [
- Array [
- Object {
+ "flows": [
+ [
+ {
"component": "main.js",
- "textRange": Object {
+ "textRange": {
"endLine": 2,
"endOffset": 2,
"startLine": 1,
@@ -590,7 +590,7 @@ exports[`should render SourceViewer correctly: single secondary location 1`] = `
},
],
],
- "flowsWithType": Array [],
+ "flowsWithType": [],
"key": "AVsae-CQS-9G3txfbFN2",
"line": 25,
"message": "Reduce the number of conditional operators (4) used in the expression",
@@ -599,21 +599,21 @@ exports[`should render SourceViewer correctly: single secondary location 1`] = `
"projectName": "Foo",
"rule": "javascript:S1067",
"ruleName": "foo",
- "secondaryLocations": Array [
- Object {
+ "secondaryLocations": [
+ {
"component": "main.js",
"index": 0,
- "textRange": Object {
+ "textRange": {
"endLine": 2,
"endOffset": 2,
"startLine": 1,
"startOffset": 1,
},
},
- Object {
+ {
"component": "main.js",
"index": 1,
- "textRange": Object {
+ "textRange": {
"endLine": 2,
"endOffset": 2,
"startLine": 1,
@@ -623,49 +623,49 @@ exports[`should render SourceViewer correctly: single secondary location 1`] = `
],
"severity": "MAJOR",
"status": "OPEN",
- "textRange": Object {
+ "textRange": {
"endLine": 26,
"endOffset": 15,
"startLine": 25,
"startOffset": 0,
},
- "transitions": Array [],
+ "transitions": [],
"type": "BUG",
}
}
issues={
- Array [
- Object {
- "actions": Array [],
+ [
+ {
+ "actions": [],
"component": "main.js",
"componentEnabled": true,
"componentLongName": "main.js",
"componentQualifier": "FIL",
"componentUuid": "foo1234",
"creationDate": "2017-03-01T09:36:01+0100",
- "flows": Array [
- Array [
- Object {
+ "flows": [
+ [
+ {
"component": "main.js",
- "textRange": Object {
+ "textRange": {
"endLine": 2,
"endOffset": 2,
"startLine": 1,
"startOffset": 1,
},
},
- Object {
+ {
"component": "main.js",
- "textRange": Object {
+ "textRange": {
"endLine": 2,
"endOffset": 2,
"startLine": 1,
"startOffset": 1,
},
},
- Object {
+ {
"component": "main.js",
- "textRange": Object {
+ "textRange": {
"endLine": 2,
"endOffset": 2,
"startLine": 1,
@@ -673,19 +673,19 @@ exports[`should render SourceViewer correctly: single secondary location 1`] = `
},
},
],
- Array [
- Object {
+ [
+ {
"component": "main.js",
- "textRange": Object {
+ "textRange": {
"endLine": 2,
"endOffset": 2,
"startLine": 1,
"startOffset": 1,
},
},
- Object {
+ {
"component": "main.js",
- "textRange": Object {
+ "textRange": {
"endLine": 2,
"endOffset": 2,
"startLine": 1,
@@ -694,7 +694,7 @@ exports[`should render SourceViewer correctly: single secondary location 1`] = `
},
],
],
- "flowsWithType": Array [],
+ "flowsWithType": [],
"key": "AVsae-CQS-9G3txfbFN2",
"line": 25,
"message": "Reduce the number of conditional operators (4) used in the expression",
@@ -703,19 +703,19 @@ exports[`should render SourceViewer correctly: single secondary location 1`] = `
"projectName": "Foo",
"rule": "javascript:S1067",
"ruleName": "foo",
- "secondaryLocations": Array [
- Object {
+ "secondaryLocations": [
+ {
"component": "main.js",
- "textRange": Object {
+ "textRange": {
"endLine": 2,
"endOffset": 2,
"startLine": 1,
"startOffset": 1,
},
},
- Object {
+ {
"component": "main.js",
- "textRange": Object {
+ "textRange": {
"endLine": 2,
"endOffset": 2,
"startLine": 1,
@@ -725,33 +725,33 @@ exports[`should render SourceViewer correctly: single secondary location 1`] = `
],
"severity": "MAJOR",
"status": "OPEN",
- "textRange": Object {
+ "textRange": {
"endLine": 26,
"endOffset": 15,
"startLine": 25,
"startOffset": 0,
},
- "transitions": Array [],
+ "transitions": [],
"type": "BUG",
},
]
}
locations={
- Array [
- Object {
+ [
+ {
"component": "main.js",
"index": 0,
- "textRange": Object {
+ "textRange": {
"endLine": 2,
"endOffset": 2,
"startLine": 1,
"startOffset": 1,
},
},
- Object {
+ {
"component": "main.js",
"index": 1,
- "textRange": Object {
+ "textRange": {
"endLine": 2,
"endOffset": 2,
"startLine": 1,
diff --git a/server/sonar-web/src/main/js/apps/issues/components/__tests__/__snapshots__/ListItem-test.tsx.snap b/server/sonar-web/src/main/js/apps/issues/components/__tests__/__snapshots__/ListItem-test.tsx.snap
index 66912b6ce0f..2924aed543c 100644
--- a/server/sonar-web/src/main/js/apps/issues/components/__tests__/__snapshots__/ListItem-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/issues/components/__tests__/__snapshots__/ListItem-test.tsx.snap
@@ -9,38 +9,38 @@ exports[`should render correctly 1`] = `
>
<ComponentBreadcrumbs
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "TRK",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
issue={
- Object {
- "actions": Array [],
+ {
+ "actions": [],
"component": "main.js",
"componentEnabled": true,
"componentLongName": "main.js",
"componentQualifier": "FIL",
"componentUuid": "foo1234",
"creationDate": "2017-03-01T09:36:01+0100",
- "flows": Array [],
- "flowsWithType": Array [],
+ "flows": [],
+ "flowsWithType": [],
"key": "AVsae-CQS-9G3txfbFN2",
"line": 25,
"message": "Reduce the number of conditional operators (4) used in the expression",
@@ -49,16 +49,16 @@ exports[`should render correctly 1`] = `
"projectName": "Foo",
"rule": "javascript:S1067",
"ruleName": "foo",
- "secondaryLocations": Array [],
+ "secondaryLocations": [],
"severity": "MAJOR",
"status": "OPEN",
- "textRange": Object {
+ "textRange": {
"endLine": 26,
"endOffset": 15,
"startLine": 25,
"startOffset": 0,
},
- "transitions": Array [],
+ "transitions": [],
"type": "BUG",
}
}
@@ -66,7 +66,7 @@ exports[`should render correctly 1`] = `
</div>
<Issue
branchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": false,
@@ -75,16 +75,16 @@ exports[`should render correctly 1`] = `
}
checked={false}
issue={
- Object {
- "actions": Array [],
+ {
+ "actions": [],
"component": "main.js",
"componentEnabled": true,
"componentLongName": "main.js",
"componentQualifier": "FIL",
"componentUuid": "foo1234",
"creationDate": "2017-03-01T09:36:01+0100",
- "flows": Array [],
- "flowsWithType": Array [],
+ "flows": [],
+ "flowsWithType": [],
"key": "AVsae-CQS-9G3txfbFN2",
"line": 25,
"message": "Reduce the number of conditional operators (4) used in the expression",
@@ -93,16 +93,16 @@ exports[`should render correctly 1`] = `
"projectName": "Foo",
"rule": "javascript:S1067",
"ruleName": "foo",
- "secondaryLocations": Array [],
+ "secondaryLocations": [],
"severity": "MAJOR",
"status": "OPEN",
- "textRange": Object {
+ "textRange": {
"endLine": 26,
"endOffset": 15,
"startLine": 25,
"startOffset": 0,
},
- "transitions": Array [],
+ "transitions": [],
"type": "BUG",
}
}
diff --git a/server/sonar-web/src/main/js/apps/issues/components/__tests__/__snapshots__/PageActions-test.tsx.snap b/server/sonar-web/src/main/js/apps/issues/components/__tests__/__snapshots__/PageActions-test.tsx.snap
index 1f7f77d4a93..59fd91e1449 100644
--- a/server/sonar-web/src/main/js/apps/issues/components/__tests__/__snapshots__/PageActions-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/issues/components/__tests__/__snapshots__/PageActions-test.tsx.snap
@@ -18,7 +18,7 @@ exports[`should render 1`] = `
<withCurrentUserContext(HomePageSelect)
className="huge-spacer-left"
currentPage={
- Object {
+ {
"type": "ISSUES",
}
}
diff --git a/server/sonar-web/src/main/js/apps/issues/components/__tests__/__snapshots__/TotalEffort-test.tsx.snap b/server/sonar-web/src/main/js/apps/issues/components/__tests__/__snapshots__/TotalEffort-test.tsx.snap
index 791cfe582c2..9de1e34ae9b 100644
--- a/server/sonar-web/src/main/js/apps/issues/components/__tests__/__snapshots__/TotalEffort-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/issues/components/__tests__/__snapshots__/TotalEffort-test.tsx.snap
@@ -11,7 +11,7 @@ exports[`should render 1`] = `
defaultMessage="issue.x_effort"
id="issue.x_effort"
values={
- Object {
+ {
"0": <strong>
work_duration.x_hours.2 work_duration.x_minutes.5
</strong>,
diff --git a/server/sonar-web/src/main/js/apps/issues/conciseIssuesList/__tests__/__snapshots__/ConciseIssue-test.tsx.snap b/server/sonar-web/src/main/js/apps/issues/conciseIssuesList/__tests__/__snapshots__/ConciseIssue-test.tsx.snap
index 9e47281b714..310f39dcdc3 100644
--- a/server/sonar-web/src/main/js/apps/issues/conciseIssuesList/__tests__/__snapshots__/ConciseIssue-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/issues/conciseIssuesList/__tests__/__snapshots__/ConciseIssue-test.tsx.snap
@@ -10,15 +10,15 @@ exports[`should render 1`] = `
<li>
<ConciseIssueBox
issue={
- Object {
- "actions": Array [],
+ {
+ "actions": [],
"component": "",
"componentLongName": "src/file.js",
"componentQualifier": "",
"componentUuid": "",
"creationDate": "",
- "flows": Array [],
- "flowsWithType": Array [],
+ "flows": [],
+ "flowsWithType": [],
"key": "",
"message": "",
"project": "",
@@ -26,10 +26,10 @@ exports[`should render 1`] = `
"projectName": "",
"rule": "",
"ruleName": "",
- "secondaryLocations": Array [],
+ "secondaryLocations": [],
"severity": "",
"status": "",
- "transitions": Array [],
+ "transitions": [],
"type": "BUG",
}
}
diff --git a/server/sonar-web/src/main/js/apps/issues/conciseIssuesList/__tests__/__snapshots__/ConciseIssueBox-test.tsx.snap b/server/sonar-web/src/main/js/apps/issues/conciseIssuesList/__tests__/__snapshots__/ConciseIssueBox-test.tsx.snap
index bf45b6e28e5..051deeee673 100644
--- a/server/sonar-web/src/main/js/apps/issues/conciseIssuesList/__tests__/__snapshots__/ConciseIssueBox-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/issues/conciseIssuesList/__tests__/__snapshots__/ConciseIssueBox-test.tsx.snap
@@ -24,16 +24,16 @@ exports[`should render correctly 1`] = `
/>
<ConciseIssueLocations
issue={
- Object {
- "actions": Array [],
+ {
+ "actions": [],
"component": "main.js",
"componentEnabled": true,
"componentLongName": "main.js",
"componentQualifier": "FIL",
"componentUuid": "foo1234",
"creationDate": "2017-03-01T09:36:01+0100",
- "flows": Array [],
- "flowsWithType": Array [],
+ "flows": [],
+ "flowsWithType": [],
"key": "AVsae-CQS-9G3txfbFN2",
"line": 25,
"message": "Reduce the number of conditional operators (4) used in the expression",
@@ -42,16 +42,16 @@ exports[`should render correctly 1`] = `
"projectName": "Foo",
"rule": "javascript:S1067",
"ruleName": "foo",
- "secondaryLocations": Array [],
+ "secondaryLocations": [],
"severity": "MAJOR",
"status": "OPEN",
- "textRange": Object {
+ "textRange": {
"endLine": 26,
"endOffset": 15,
"startLine": 25,
"startOffset": 0,
},
- "transitions": Array [],
+ "transitions": [],
"type": "BUG",
}
}
@@ -85,37 +85,37 @@ exports[`should render correctly 2`] = `
/>
<ConciseIssueLocations
issue={
- Object {
- "actions": Array [],
+ {
+ "actions": [],
"component": "main.js",
"componentEnabled": true,
"componentLongName": "main.js",
"componentQualifier": "FIL",
"componentUuid": "foo1234",
"creationDate": "2017-03-01T09:36:01+0100",
- "flows": Array [
- Array [
- Object {
+ "flows": [
+ [
+ {
"component": "main.js",
- "textRange": Object {
+ "textRange": {
"endLine": 2,
"endOffset": 2,
"startLine": 1,
"startOffset": 1,
},
},
- Object {
+ {
"component": "main.js",
- "textRange": Object {
+ "textRange": {
"endLine": 2,
"endOffset": 2,
"startLine": 1,
"startOffset": 1,
},
},
- Object {
+ {
"component": "main.js",
- "textRange": Object {
+ "textRange": {
"endLine": 2,
"endOffset": 2,
"startLine": 1,
@@ -123,19 +123,19 @@ exports[`should render correctly 2`] = `
},
},
],
- Array [
- Object {
+ [
+ {
"component": "main.js",
- "textRange": Object {
+ "textRange": {
"endLine": 2,
"endOffset": 2,
"startLine": 1,
"startOffset": 1,
},
},
- Object {
+ {
"component": "main.js",
- "textRange": Object {
+ "textRange": {
"endLine": 2,
"endOffset": 2,
"startLine": 1,
@@ -144,7 +144,7 @@ exports[`should render correctly 2`] = `
},
],
],
- "flowsWithType": Array [],
+ "flowsWithType": [],
"key": "AVsae-CQS-9G3txfbFN2",
"line": 25,
"message": "Reduce the number of conditional operators (4) used in the expression",
@@ -153,19 +153,19 @@ exports[`should render correctly 2`] = `
"projectName": "Foo",
"rule": "javascript:S1067",
"ruleName": "foo",
- "secondaryLocations": Array [
- Object {
+ "secondaryLocations": [
+ {
"component": "main.js",
- "textRange": Object {
+ "textRange": {
"endLine": 2,
"endOffset": 2,
"startLine": 1,
"startOffset": 1,
},
},
- Object {
+ {
"component": "main.js",
- "textRange": Object {
+ "textRange": {
"endLine": 2,
"endOffset": 2,
"startLine": 1,
@@ -175,13 +175,13 @@ exports[`should render correctly 2`] = `
],
"severity": "MAJOR",
"status": "OPEN",
- "textRange": Object {
+ "textRange": {
"endLine": 26,
"endOffset": 15,
"startLine": 25,
"startOffset": 0,
},
- "transitions": Array [],
+ "transitions": [],
"type": "BUG",
}
}
@@ -192,19 +192,19 @@ exports[`should render correctly 2`] = `
<LocationsList
componentKey="main.js"
locations={
- Array [
- Object {
+ [
+ {
"component": "main.js",
- "textRange": Object {
+ "textRange": {
"endLine": 2,
"endOffset": 2,
"startLine": 1,
"startOffset": 1,
},
},
- Object {
+ {
"component": "main.js",
- "textRange": Object {
+ "textRange": {
"endLine": 2,
"endOffset": 2,
"startLine": 1,
diff --git a/server/sonar-web/src/main/js/apps/issues/conciseIssuesList/__tests__/__snapshots__/ConciseIssueLocations-test.tsx.snap b/server/sonar-web/src/main/js/apps/issues/conciseIssuesList/__tests__/__snapshots__/ConciseIssueLocations-test.tsx.snap
index cd78e9dfdaf..be3b3061f5a 100644
--- a/server/sonar-web/src/main/js/apps/issues/conciseIssuesList/__tests__/__snapshots__/ConciseIssueLocations-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/issues/conciseIssuesList/__tests__/__snapshots__/ConciseIssueLocations-test.tsx.snap
@@ -18,7 +18,7 @@ exports[`should render secondary locations 1`] = `
`;
exports[`should render several flows 1`] = `
-Array [
+[
<ConciseIssueLocationBadge
count={3}
key="0"
diff --git a/server/sonar-web/src/main/js/apps/issues/conciseIssuesList/__tests__/__snapshots__/ConciseIssuesList-test.tsx.snap b/server/sonar-web/src/main/js/apps/issues/conciseIssuesList/__tests__/__snapshots__/ConciseIssuesList-test.tsx.snap
index f8c3686e38a..d9518d3ac9c 100644
--- a/server/sonar-web/src/main/js/apps/issues/conciseIssuesList/__tests__/__snapshots__/ConciseIssuesList-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/issues/conciseIssuesList/__tests__/__snapshots__/ConciseIssuesList-test.tsx.snap
@@ -4,7 +4,7 @@ exports[`should render 1`] = `
<ul>
<ConciseIssue
issue={
- Object {
+ {
"key": "foo",
}
}
@@ -17,7 +17,7 @@ exports[`should render 1`] = `
/>
<ConciseIssue
issue={
- Object {
+ {
"key": "bar",
}
}
@@ -26,7 +26,7 @@ exports[`should render 1`] = `
onLocationSelect={[MockFunction]}
onSelect={[MockFunction]}
previousIssue={
- Object {
+ {
"key": "foo",
}
}
diff --git a/server/sonar-web/src/main/js/apps/issues/crossComponentSourceViewer/__tests__/__snapshots__/ComponentSourceSnippetGroupViewer-test.tsx.snap b/server/sonar-web/src/main/js/apps/issues/crossComponentSourceViewer/__tests__/__snapshots__/ComponentSourceSnippetGroupViewer-test.tsx.snap
index 6e83c714137..668109f9bab 100644
--- a/server/sonar-web/src/main/js/apps/issues/crossComponentSourceViewer/__tests__/__snapshots__/ComponentSourceSnippetGroupViewer-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/issues/crossComponentSourceViewer/__tests__/__snapshots__/ComponentSourceSnippetGroupViewer-test.tsx.snap
@@ -4,7 +4,7 @@ exports[`should render correctly 1`] = `
<Fragment>
<IssueSourceViewerHeader
branchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": true,
@@ -16,12 +16,12 @@ exports[`should render correctly 1`] = `
loading={false}
onExpand={[Function]}
sourceViewerFile={
- Object {
+ {
"canMarkAsFavorite": true,
"fav": false,
"key": "project:foo/bar.ts",
"longName": "foo/bar.ts",
- "measures": Object {
+ "measures": {
"coverage": "85.2",
"duplicationDensity": "1.0",
"issues": "12",
diff --git a/server/sonar-web/src/main/js/apps/issues/crossComponentSourceViewer/__tests__/__snapshots__/CrossComponentSourceViewer-test.tsx.snap b/server/sonar-web/src/main/js/apps/issues/crossComponentSourceViewer/__tests__/__snapshots__/CrossComponentSourceViewer-test.tsx.snap
index e1f66aa3669..ec71752ca70 100644
--- a/server/sonar-web/src/main/js/apps/issues/crossComponentSourceViewer/__tests__/__snapshots__/CrossComponentSourceViewer-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/issues/crossComponentSourceViewer/__tests__/__snapshots__/CrossComponentSourceViewer-test.tsx.snap
@@ -28,47 +28,47 @@ exports[`should render correctly 2`] = `
<ContextProvider
key="1-0-0"
value={
- Object {
+ {
"branchLike": undefined,
- "file": Object {},
+ "file": {},
}
}
>
<ComponentSourceSnippetGroupViewer
- duplicationsByLine={Object {}}
+ duplicationsByLine={{}}
isLastOccurenceOfPrimaryComponent={false}
issue={
- Object {
- "actions": Array [],
+ {
+ "actions": [],
"component": "project:main.js",
"componentEnabled": true,
"componentLongName": "main.js",
"componentQualifier": "FIL",
"componentUuid": "foo1234",
"creationDate": "2017-03-01T09:36:01+0100",
- "flows": Array [
- Array [
- Object {
+ "flows": [
+ [
+ {
"component": "main.js",
- "textRange": Object {
+ "textRange": {
"endLine": 2,
"endOffset": 2,
"startLine": 1,
"startOffset": 1,
},
},
- Object {
+ {
"component": "main.js",
- "textRange": Object {
+ "textRange": {
"endLine": 2,
"endOffset": 2,
"startLine": 1,
"startOffset": 1,
},
},
- Object {
+ {
"component": "main.js",
- "textRange": Object {
+ "textRange": {
"endLine": 2,
"endOffset": 2,
"startLine": 1,
@@ -76,19 +76,19 @@ exports[`should render correctly 2`] = `
},
},
],
- Array [
- Object {
+ [
+ {
"component": "main.js",
- "textRange": Object {
+ "textRange": {
"endLine": 2,
"endOffset": 2,
"startLine": 1,
"startOffset": 1,
},
},
- Object {
+ {
"component": "main.js",
- "textRange": Object {
+ "textRange": {
"endLine": 2,
"endOffset": 2,
"startLine": 1,
@@ -97,7 +97,7 @@ exports[`should render correctly 2`] = `
},
],
],
- "flowsWithType": Array [],
+ "flowsWithType": [],
"key": "1",
"line": 25,
"message": "Reduce the number of conditional operators (4) used in the expression",
@@ -106,19 +106,19 @@ exports[`should render correctly 2`] = `
"projectName": "Foo",
"rule": "javascript:S1067",
"ruleName": "foo",
- "secondaryLocations": Array [
- Object {
+ "secondaryLocations": [
+ {
"component": "main.js",
- "textRange": Object {
+ "textRange": {
"endLine": 2,
"endOffset": 2,
"startLine": 1,
"startOffset": 1,
},
},
- Object {
+ {
"component": "main.js",
- "textRange": Object {
+ "textRange": {
"endLine": 2,
"endOffset": 2,
"startLine": 1,
@@ -128,25 +128,25 @@ exports[`should render correctly 2`] = `
],
"severity": "MAJOR",
"status": "OPEN",
- "textRange": Object {
+ "textRange": {
"endLine": 2,
"endOffset": 15,
"startLine": 1,
"startOffset": 0,
},
- "transitions": Array [],
+ "transitions": [],
"type": "BUG",
}
}
- issuesByLine={Object {}}
+ issuesByLine={{}}
lastSnippetGroup={true}
loadDuplications={[Function]}
locations={
- Array [
- Object {
+ [
+ {
"component": "project:main.js",
"index": 0,
- "textRange": Object {
+ "textRange": {
"endLine": 2,
"endOffset": 2,
"startLine": 1,
@@ -159,13 +159,13 @@ exports[`should render correctly 2`] = `
onLocationSelect={[MockFunction]}
renderDuplicationPopup={[Function]}
snippetGroup={
- Object {
- "component": Object {},
- "locations": Array [
- Object {
+ {
+ "component": {},
+ "locations": [
+ {
"component": "project:main.js",
"index": 0,
- "textRange": Object {
+ "textRange": {
"endLine": 2,
"endOffset": 2,
"startLine": 1,
@@ -173,7 +173,7 @@ exports[`should render correctly 2`] = `
},
},
],
- "sources": Array [],
+ "sources": [],
}
}
/>
@@ -186,47 +186,47 @@ exports[`should render correctly: no component found 1`] = `
<ContextProvider
key="unknown-0-0"
value={
- Object {
+ {
"branchLike": undefined,
- "file": Object {},
+ "file": {},
}
}
>
<ComponentSourceSnippetGroupViewer
- duplicationsByLine={Object {}}
+ duplicationsByLine={{}}
isLastOccurenceOfPrimaryComponent={false}
issue={
- Object {
- "actions": Array [],
+ {
+ "actions": [],
"component": "test.js",
"componentEnabled": true,
"componentLongName": "main.js",
"componentQualifier": "FIL",
"componentUuid": "foo1234",
"creationDate": "2017-03-01T09:36:01+0100",
- "flows": Array [
- Array [
- Object {
+ "flows": [
+ [
+ {
"component": "main.js",
- "textRange": Object {
+ "textRange": {
"endLine": 2,
"endOffset": 2,
"startLine": 1,
"startOffset": 1,
},
},
- Object {
+ {
"component": "main.js",
- "textRange": Object {
+ "textRange": {
"endLine": 2,
"endOffset": 2,
"startLine": 1,
"startOffset": 1,
},
},
- Object {
+ {
"component": "main.js",
- "textRange": Object {
+ "textRange": {
"endLine": 2,
"endOffset": 2,
"startLine": 1,
@@ -234,19 +234,19 @@ exports[`should render correctly: no component found 1`] = `
},
},
],
- Array [
- Object {
+ [
+ {
"component": "main.js",
- "textRange": Object {
+ "textRange": {
"endLine": 2,
"endOffset": 2,
"startLine": 1,
"startOffset": 1,
},
},
- Object {
+ {
"component": "main.js",
- "textRange": Object {
+ "textRange": {
"endLine": 2,
"endOffset": 2,
"startLine": 1,
@@ -255,7 +255,7 @@ exports[`should render correctly: no component found 1`] = `
},
],
],
- "flowsWithType": Array [],
+ "flowsWithType": [],
"key": "unknown",
"line": 25,
"message": "Reduce the number of conditional operators (4) used in the expression",
@@ -264,19 +264,19 @@ exports[`should render correctly: no component found 1`] = `
"projectName": "Foo",
"rule": "javascript:S1067",
"ruleName": "foo",
- "secondaryLocations": Array [
- Object {
+ "secondaryLocations": [
+ {
"component": "main.js",
- "textRange": Object {
+ "textRange": {
"endLine": 2,
"endOffset": 2,
"startLine": 1,
"startOffset": 1,
},
},
- Object {
+ {
"component": "main.js",
- "textRange": Object {
+ "textRange": {
"endLine": 2,
"endOffset": 2,
"startLine": 1,
@@ -286,28 +286,28 @@ exports[`should render correctly: no component found 1`] = `
],
"severity": "MAJOR",
"status": "OPEN",
- "textRange": Object {
+ "textRange": {
"endLine": 26,
"endOffset": 15,
"startLine": 25,
"startOffset": 0,
},
- "transitions": Array [],
+ "transitions": [],
"type": "BUG",
}
}
- issuesByLine={Object {}}
+ issuesByLine={{}}
lastSnippetGroup={false}
loadDuplications={[Function]}
- locations={Array []}
+ locations={[]}
onIssueSelect={[MockFunction]}
onLocationSelect={[MockFunction]}
renderDuplicationPopup={[Function]}
snippetGroup={
- Object {
- "component": Object {},
- "locations": Array [],
- "sources": Array [],
+ {
+ "component": {},
+ "locations": [],
+ "sources": [],
}
}
/>
@@ -315,47 +315,47 @@ exports[`should render correctly: no component found 1`] = `
<ContextProvider
key="unknown-0-1"
value={
- Object {
+ {
"branchLike": undefined,
- "file": Object {},
+ "file": {},
}
}
>
<ComponentSourceSnippetGroupViewer
- duplicationsByLine={Object {}}
+ duplicationsByLine={{}}
isLastOccurenceOfPrimaryComponent={false}
issue={
- Object {
- "actions": Array [],
+ {
+ "actions": [],
"component": "test.js",
"componentEnabled": true,
"componentLongName": "main.js",
"componentQualifier": "FIL",
"componentUuid": "foo1234",
"creationDate": "2017-03-01T09:36:01+0100",
- "flows": Array [
- Array [
- Object {
+ "flows": [
+ [
+ {
"component": "main.js",
- "textRange": Object {
+ "textRange": {
"endLine": 2,
"endOffset": 2,
"startLine": 1,
"startOffset": 1,
},
},
- Object {
+ {
"component": "main.js",
- "textRange": Object {
+ "textRange": {
"endLine": 2,
"endOffset": 2,
"startLine": 1,
"startOffset": 1,
},
},
- Object {
+ {
"component": "main.js",
- "textRange": Object {
+ "textRange": {
"endLine": 2,
"endOffset": 2,
"startLine": 1,
@@ -363,19 +363,19 @@ exports[`should render correctly: no component found 1`] = `
},
},
],
- Array [
- Object {
+ [
+ {
"component": "main.js",
- "textRange": Object {
+ "textRange": {
"endLine": 2,
"endOffset": 2,
"startLine": 1,
"startOffset": 1,
},
},
- Object {
+ {
"component": "main.js",
- "textRange": Object {
+ "textRange": {
"endLine": 2,
"endOffset": 2,
"startLine": 1,
@@ -384,7 +384,7 @@ exports[`should render correctly: no component found 1`] = `
},
],
],
- "flowsWithType": Array [],
+ "flowsWithType": [],
"key": "unknown",
"line": 25,
"message": "Reduce the number of conditional operators (4) used in the expression",
@@ -393,19 +393,19 @@ exports[`should render correctly: no component found 1`] = `
"projectName": "Foo",
"rule": "javascript:S1067",
"ruleName": "foo",
- "secondaryLocations": Array [
- Object {
+ "secondaryLocations": [
+ {
"component": "main.js",
- "textRange": Object {
+ "textRange": {
"endLine": 2,
"endOffset": 2,
"startLine": 1,
"startOffset": 1,
},
},
- Object {
+ {
"component": "main.js",
- "textRange": Object {
+ "textRange": {
"endLine": 2,
"endOffset": 2,
"startLine": 1,
@@ -415,25 +415,25 @@ exports[`should render correctly: no component found 1`] = `
],
"severity": "MAJOR",
"status": "OPEN",
- "textRange": Object {
+ "textRange": {
"endLine": 26,
"endOffset": 15,
"startLine": 25,
"startOffset": 0,
},
- "transitions": Array [],
+ "transitions": [],
"type": "BUG",
}
}
- issuesByLine={Object {}}
+ issuesByLine={{}}
lastSnippetGroup={true}
loadDuplications={[Function]}
locations={
- Array [
- Object {
+ [
+ {
"component": "project:main.js",
"index": 0,
- "textRange": Object {
+ "textRange": {
"endLine": 2,
"endOffset": 2,
"startLine": 1,
@@ -446,13 +446,13 @@ exports[`should render correctly: no component found 1`] = `
onLocationSelect={[MockFunction]}
renderDuplicationPopup={[Function]}
snippetGroup={
- Object {
- "component": Object {},
- "locations": Array [
- Object {
+ {
+ "component": {},
+ "locations": [
+ {
"component": "project:main.js",
"index": 0,
- "textRange": Object {
+ "textRange": {
"endLine": 2,
"endOffset": 2,
"startLine": 1,
@@ -460,7 +460,7 @@ exports[`should render correctly: no component found 1`] = `
},
},
],
- "sources": Array [],
+ "sources": [],
}
}
/>
diff --git a/server/sonar-web/src/main/js/apps/issues/crossComponentSourceViewer/__tests__/__snapshots__/IssueSourceViewerHeader-test.tsx.snap b/server/sonar-web/src/main/js/apps/issues/crossComponentSourceViewer/__tests__/__snapshots__/IssueSourceViewerHeader-test.tsx.snap
index aa530aecd30..c4028b22491 100644
--- a/server/sonar-web/src/main/js/apps/issues/crossComponentSourceViewer/__tests__/__snapshots__/IssueSourceViewerHeader-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/issues/crossComponentSourceViewer/__tests__/__snapshots__/IssueSourceViewerHeader-test.tsx.snap
@@ -56,7 +56,7 @@ exports[`should render correctly 1`] = `
>
<ForwardRef(Link)
to={
- Object {
+ {
"hash": "",
"pathname": "/project/issues",
"search": "?files=foo%2Fbar.ts&resolved=false&id=my-project",
@@ -135,7 +135,7 @@ exports[`should render correctly: no link to project 1`] = `
>
<ForwardRef(Link)
to={
- Object {
+ {
"hash": "",
"pathname": "/project/issues",
"search": "?files=foo%2Fbar.ts&resolved=false&id=my-project",
@@ -203,7 +203,7 @@ exports[`should render correctly: no project name 1`] = `
>
<ForwardRef(Link)
to={
- Object {
+ {
"hash": "",
"pathname": "/project/issues",
"search": "?files=foo%2Fbar.ts&resolved=false&id=my-project",
diff --git a/server/sonar-web/src/main/js/apps/issues/crossComponentSourceViewer/__tests__/__snapshots__/SnippetViewer-test.tsx.snap b/server/sonar-web/src/main/js/apps/issues/crossComponentSourceViewer/__tests__/__snapshots__/SnippetViewer-test.tsx.snap
index 0ee54422c94..9cd0ed9127e 100644
--- a/server/sonar-web/src/main/js/apps/issues/crossComponentSourceViewer/__tests__/__snapshots__/SnippetViewer-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/issues/crossComponentSourceViewer/__tests__/__snapshots__/SnippetViewer-test.tsx.snap
@@ -25,17 +25,17 @@ exports[`should render correctly 1`] = `
displayDuplications={false}
displayIssues={false}
displayLocationMarkers={true}
- duplications={Array []}
+ duplications={[]}
duplicationsCount={0}
firstLineNumber={5}
highlighted={false}
- issueLocations={Array []}
- issues={Array []}
+ issueLocations={[]}
+ issues={[]}
key="5"
last={false}
line={
- Object {
- "code": "<span class=\\"k\\">import</span> java.util.<span class=\\"sym-9 sym\\">ArrayList</span>;",
+ {
+ "code": "<span class="k">import</span> java.util.<span class="sym-9 sym">ArrayList</span>;",
"coverageStatus": "covered",
"coveredConditions": 2,
"duplicated": false,
@@ -55,7 +55,7 @@ exports[`should render correctly 1`] = `
onSymbolClick={[MockFunction]}
openIssues={false}
renderDuplicationPopup={[MockFunction]}
- secondaryIssueLocations={Array []}
+ secondaryIssueLocations={[]}
verticalBuffer={0}
/>
<Line
@@ -63,17 +63,17 @@ exports[`should render correctly 1`] = `
displayDuplications={false}
displayIssues={false}
displayLocationMarkers={true}
- duplications={Array []}
+ duplications={[]}
duplicationsCount={0}
firstLineNumber={5}
highlighted={false}
- issueLocations={Array []}
- issues={Array []}
+ issueLocations={[]}
+ issues={[]}
key="6"
last={false}
line={
- Object {
- "code": "<span class=\\"k\\">import</span> java.util.<span class=\\"sym-9 sym\\">ArrayList</span>;",
+ {
+ "code": "<span class="k">import</span> java.util.<span class="sym-9 sym">ArrayList</span>;",
"coverageStatus": "covered",
"coveredConditions": 2,
"duplicated": false,
@@ -93,8 +93,8 @@ exports[`should render correctly 1`] = `
onSymbolClick={[MockFunction]}
openIssues={false}
previousLine={
- Object {
- "code": "<span class=\\"k\\">import</span> java.util.<span class=\\"sym-9 sym\\">ArrayList</span>;",
+ {
+ "code": "<span class="k">import</span> java.util.<span class="sym-9 sym">ArrayList</span>;",
"coverageStatus": "covered",
"coveredConditions": 2,
"duplicated": false,
@@ -106,7 +106,7 @@ exports[`should render correctly 1`] = `
}
}
renderDuplicationPopup={[MockFunction]}
- secondaryIssueLocations={Array []}
+ secondaryIssueLocations={[]}
verticalBuffer={0}
/>
<Line
@@ -114,17 +114,17 @@ exports[`should render correctly 1`] = `
displayDuplications={false}
displayIssues={false}
displayLocationMarkers={true}
- duplications={Array []}
+ duplications={[]}
duplicationsCount={0}
firstLineNumber={5}
highlighted={false}
- issueLocations={Array []}
- issues={Array []}
+ issueLocations={[]}
+ issues={[]}
key="7"
last={false}
line={
- Object {
- "code": "<span class=\\"k\\">import</span> java.util.<span class=\\"sym-9 sym\\">ArrayList</span>;",
+ {
+ "code": "<span class="k">import</span> java.util.<span class="sym-9 sym">ArrayList</span>;",
"coverageStatus": "covered",
"coveredConditions": 2,
"duplicated": false,
@@ -144,8 +144,8 @@ exports[`should render correctly 1`] = `
onSymbolClick={[MockFunction]}
openIssues={false}
previousLine={
- Object {
- "code": "<span class=\\"k\\">import</span> java.util.<span class=\\"sym-9 sym\\">ArrayList</span>;",
+ {
+ "code": "<span class="k">import</span> java.util.<span class="sym-9 sym">ArrayList</span>;",
"coverageStatus": "covered",
"coveredConditions": 2,
"duplicated": false,
@@ -157,7 +157,7 @@ exports[`should render correctly 1`] = `
}
}
renderDuplicationPopup={[MockFunction]}
- secondaryIssueLocations={Array []}
+ secondaryIssueLocations={[]}
verticalBuffer={0}
/>
</tbody>
@@ -202,17 +202,17 @@ exports[`should render correctly when at the bottom of the file 1`] = `
displayDuplications={false}
displayIssues={false}
displayLocationMarkers={true}
- duplications={Array []}
+ duplications={[]}
duplicationsCount={0}
firstLineNumber={10}
highlighted={false}
- issueLocations={Array []}
- issues={Array []}
+ issueLocations={[]}
+ issues={[]}
key="10"
last={false}
line={
- Object {
- "code": "<span class=\\"k\\">import</span> java.util.<span class=\\"sym-9 sym\\">ArrayList</span>;",
+ {
+ "code": "<span class="k">import</span> java.util.<span class="sym-9 sym">ArrayList</span>;",
"coverageStatus": "covered",
"coveredConditions": 2,
"duplicated": false,
@@ -232,7 +232,7 @@ exports[`should render correctly when at the bottom of the file 1`] = `
onSymbolClick={[MockFunction]}
openIssues={false}
renderDuplicationPopup={[MockFunction]}
- secondaryIssueLocations={Array []}
+ secondaryIssueLocations={[]}
verticalBuffer={0}
/>
<Line
@@ -240,17 +240,17 @@ exports[`should render correctly when at the bottom of the file 1`] = `
displayDuplications={false}
displayIssues={false}
displayLocationMarkers={true}
- duplications={Array []}
+ duplications={[]}
duplicationsCount={0}
firstLineNumber={10}
highlighted={false}
- issueLocations={Array []}
- issues={Array []}
+ issueLocations={[]}
+ issues={[]}
key="11"
last={false}
line={
- Object {
- "code": "<span class=\\"k\\">import</span> java.util.<span class=\\"sym-9 sym\\">ArrayList</span>;",
+ {
+ "code": "<span class="k">import</span> java.util.<span class="sym-9 sym">ArrayList</span>;",
"coverageStatus": "covered",
"coveredConditions": 2,
"duplicated": false,
@@ -270,8 +270,8 @@ exports[`should render correctly when at the bottom of the file 1`] = `
onSymbolClick={[MockFunction]}
openIssues={false}
previousLine={
- Object {
- "code": "<span class=\\"k\\">import</span> java.util.<span class=\\"sym-9 sym\\">ArrayList</span>;",
+ {
+ "code": "<span class="k">import</span> java.util.<span class="sym-9 sym">ArrayList</span>;",
"coverageStatus": "covered",
"coveredConditions": 2,
"duplicated": false,
@@ -283,7 +283,7 @@ exports[`should render correctly when at the bottom of the file 1`] = `
}
}
renderDuplicationPopup={[MockFunction]}
- secondaryIssueLocations={Array []}
+ secondaryIssueLocations={[]}
verticalBuffer={0}
/>
<Line
@@ -291,17 +291,17 @@ exports[`should render correctly when at the bottom of the file 1`] = `
displayDuplications={false}
displayIssues={false}
displayLocationMarkers={true}
- duplications={Array []}
+ duplications={[]}
duplicationsCount={0}
firstLineNumber={10}
highlighted={false}
- issueLocations={Array []}
- issues={Array []}
+ issueLocations={[]}
+ issues={[]}
key="12"
last={false}
line={
- Object {
- "code": "<span class=\\"k\\">import</span> java.util.<span class=\\"sym-9 sym\\">ArrayList</span>;",
+ {
+ "code": "<span class="k">import</span> java.util.<span class="sym-9 sym">ArrayList</span>;",
"coverageStatus": "covered",
"coveredConditions": 2,
"duplicated": false,
@@ -321,8 +321,8 @@ exports[`should render correctly when at the bottom of the file 1`] = `
onSymbolClick={[MockFunction]}
openIssues={false}
previousLine={
- Object {
- "code": "<span class=\\"k\\">import</span> java.util.<span class=\\"sym-9 sym\\">ArrayList</span>;",
+ {
+ "code": "<span class="k">import</span> java.util.<span class="sym-9 sym">ArrayList</span>;",
"coverageStatus": "covered",
"coveredConditions": 2,
"duplicated": false,
@@ -334,7 +334,7 @@ exports[`should render correctly when at the bottom of the file 1`] = `
}
}
renderDuplicationPopup={[MockFunction]}
- secondaryIssueLocations={Array []}
+ secondaryIssueLocations={[]}
verticalBuffer={0}
/>
<Line
@@ -342,17 +342,17 @@ exports[`should render correctly when at the bottom of the file 1`] = `
displayDuplications={false}
displayIssues={false}
displayLocationMarkers={true}
- duplications={Array []}
+ duplications={[]}
duplicationsCount={0}
firstLineNumber={10}
highlighted={false}
- issueLocations={Array []}
- issues={Array []}
+ issueLocations={[]}
+ issues={[]}
key="13"
last={false}
line={
- Object {
- "code": "<span class=\\"k\\">import</span> java.util.<span class=\\"sym-9 sym\\">ArrayList</span>;",
+ {
+ "code": "<span class="k">import</span> java.util.<span class="sym-9 sym">ArrayList</span>;",
"coverageStatus": "covered",
"coveredConditions": 2,
"duplicated": false,
@@ -372,8 +372,8 @@ exports[`should render correctly when at the bottom of the file 1`] = `
onSymbolClick={[MockFunction]}
openIssues={false}
previousLine={
- Object {
- "code": "<span class=\\"k\\">import</span> java.util.<span class=\\"sym-9 sym\\">ArrayList</span>;",
+ {
+ "code": "<span class="k">import</span> java.util.<span class="sym-9 sym">ArrayList</span>;",
"coverageStatus": "covered",
"coveredConditions": 2,
"duplicated": false,
@@ -385,7 +385,7 @@ exports[`should render correctly when at the bottom of the file 1`] = `
}
}
renderDuplicationPopup={[MockFunction]}
- secondaryIssueLocations={Array []}
+ secondaryIssueLocations={[]}
verticalBuffer={0}
/>
</tbody>
@@ -419,17 +419,17 @@ exports[`should render correctly when at the top of the file 1`] = `
displayDuplications={false}
displayIssues={false}
displayLocationMarkers={true}
- duplications={Array []}
+ duplications={[]}
duplicationsCount={0}
firstLineNumber={1}
highlighted={false}
- issueLocations={Array []}
- issues={Array []}
+ issueLocations={[]}
+ issues={[]}
key="1"
last={false}
line={
- Object {
- "code": "<span class=\\"k\\">import</span> java.util.<span class=\\"sym-9 sym\\">ArrayList</span>;",
+ {
+ "code": "<span class="k">import</span> java.util.<span class="sym-9 sym">ArrayList</span>;",
"coverageStatus": "covered",
"coveredConditions": 2,
"duplicated": false,
@@ -449,7 +449,7 @@ exports[`should render correctly when at the top of the file 1`] = `
onSymbolClick={[MockFunction]}
openIssues={false}
renderDuplicationPopup={[MockFunction]}
- secondaryIssueLocations={Array []}
+ secondaryIssueLocations={[]}
verticalBuffer={0}
/>
<Line
@@ -457,17 +457,17 @@ exports[`should render correctly when at the top of the file 1`] = `
displayDuplications={false}
displayIssues={false}
displayLocationMarkers={true}
- duplications={Array []}
+ duplications={[]}
duplicationsCount={0}
firstLineNumber={1}
highlighted={false}
- issueLocations={Array []}
- issues={Array []}
+ issueLocations={[]}
+ issues={[]}
key="2"
last={false}
line={
- Object {
- "code": "<span class=\\"k\\">import</span> java.util.<span class=\\"sym-9 sym\\">ArrayList</span>;",
+ {
+ "code": "<span class="k">import</span> java.util.<span class="sym-9 sym">ArrayList</span>;",
"coverageStatus": "covered",
"coveredConditions": 2,
"duplicated": false,
@@ -487,8 +487,8 @@ exports[`should render correctly when at the top of the file 1`] = `
onSymbolClick={[MockFunction]}
openIssues={false}
previousLine={
- Object {
- "code": "<span class=\\"k\\">import</span> java.util.<span class=\\"sym-9 sym\\">ArrayList</span>;",
+ {
+ "code": "<span class="k">import</span> java.util.<span class="sym-9 sym">ArrayList</span>;",
"coverageStatus": "covered",
"coveredConditions": 2,
"duplicated": false,
@@ -500,7 +500,7 @@ exports[`should render correctly when at the top of the file 1`] = `
}
}
renderDuplicationPopup={[MockFunction]}
- secondaryIssueLocations={Array []}
+ secondaryIssueLocations={[]}
verticalBuffer={0}
/>
<Line
@@ -508,17 +508,17 @@ exports[`should render correctly when at the top of the file 1`] = `
displayDuplications={false}
displayIssues={false}
displayLocationMarkers={true}
- duplications={Array []}
+ duplications={[]}
duplicationsCount={0}
firstLineNumber={1}
highlighted={false}
- issueLocations={Array []}
- issues={Array []}
+ issueLocations={[]}
+ issues={[]}
key="3"
last={false}
line={
- Object {
- "code": "<span class=\\"k\\">import</span> java.util.<span class=\\"sym-9 sym\\">ArrayList</span>;",
+ {
+ "code": "<span class="k">import</span> java.util.<span class="sym-9 sym">ArrayList</span>;",
"coverageStatus": "covered",
"coveredConditions": 2,
"duplicated": false,
@@ -538,8 +538,8 @@ exports[`should render correctly when at the top of the file 1`] = `
onSymbolClick={[MockFunction]}
openIssues={false}
previousLine={
- Object {
- "code": "<span class=\\"k\\">import</span> java.util.<span class=\\"sym-9 sym\\">ArrayList</span>;",
+ {
+ "code": "<span class="k">import</span> java.util.<span class="sym-9 sym">ArrayList</span>;",
"coverageStatus": "covered",
"coveredConditions": 2,
"duplicated": false,
@@ -551,7 +551,7 @@ exports[`should render correctly when at the top of the file 1`] = `
}
}
renderDuplicationPopup={[MockFunction]}
- secondaryIssueLocations={Array []}
+ secondaryIssueLocations={[]}
verticalBuffer={0}
/>
<Line
@@ -559,17 +559,17 @@ exports[`should render correctly when at the top of the file 1`] = `
displayDuplications={false}
displayIssues={false}
displayLocationMarkers={true}
- duplications={Array []}
+ duplications={[]}
duplicationsCount={0}
firstLineNumber={1}
highlighted={false}
- issueLocations={Array []}
- issues={Array []}
+ issueLocations={[]}
+ issues={[]}
key="4"
last={false}
line={
- Object {
- "code": "<span class=\\"k\\">import</span> java.util.<span class=\\"sym-9 sym\\">ArrayList</span>;",
+ {
+ "code": "<span class="k">import</span> java.util.<span class="sym-9 sym">ArrayList</span>;",
"coverageStatus": "covered",
"coveredConditions": 2,
"duplicated": false,
@@ -589,8 +589,8 @@ exports[`should render correctly when at the top of the file 1`] = `
onSymbolClick={[MockFunction]}
openIssues={false}
previousLine={
- Object {
- "code": "<span class=\\"k\\">import</span> java.util.<span class=\\"sym-9 sym\\">ArrayList</span>;",
+ {
+ "code": "<span class="k">import</span> java.util.<span class="sym-9 sym">ArrayList</span>;",
"coverageStatus": "covered",
"coveredConditions": 2,
"duplicated": false,
@@ -602,7 +602,7 @@ exports[`should render correctly when at the top of the file 1`] = `
}
}
renderDuplicationPopup={[MockFunction]}
- secondaryIssueLocations={Array []}
+ secondaryIssueLocations={[]}
verticalBuffer={0}
/>
<Line
@@ -610,17 +610,17 @@ exports[`should render correctly when at the top of the file 1`] = `
displayDuplications={false}
displayIssues={false}
displayLocationMarkers={true}
- duplications={Array []}
+ duplications={[]}
duplicationsCount={0}
firstLineNumber={1}
highlighted={false}
- issueLocations={Array []}
- issues={Array []}
+ issueLocations={[]}
+ issues={[]}
key="5"
last={false}
line={
- Object {
- "code": "<span class=\\"k\\">import</span> java.util.<span class=\\"sym-9 sym\\">ArrayList</span>;",
+ {
+ "code": "<span class="k">import</span> java.util.<span class="sym-9 sym">ArrayList</span>;",
"coverageStatus": "covered",
"coveredConditions": 2,
"duplicated": false,
@@ -640,8 +640,8 @@ exports[`should render correctly when at the top of the file 1`] = `
onSymbolClick={[MockFunction]}
openIssues={false}
previousLine={
- Object {
- "code": "<span class=\\"k\\">import</span> java.util.<span class=\\"sym-9 sym\\">ArrayList</span>;",
+ {
+ "code": "<span class="k">import</span> java.util.<span class="sym-9 sym">ArrayList</span>;",
"coverageStatus": "covered",
"coveredConditions": 2,
"duplicated": false,
@@ -653,7 +653,7 @@ exports[`should render correctly when at the top of the file 1`] = `
}
}
renderDuplicationPopup={[MockFunction]}
- secondaryIssueLocations={Array []}
+ secondaryIssueLocations={[]}
verticalBuffer={0}
/>
<Line
@@ -661,17 +661,17 @@ exports[`should render correctly when at the top of the file 1`] = `
displayDuplications={false}
displayIssues={false}
displayLocationMarkers={true}
- duplications={Array []}
+ duplications={[]}
duplicationsCount={0}
firstLineNumber={1}
highlighted={false}
- issueLocations={Array []}
- issues={Array []}
+ issueLocations={[]}
+ issues={[]}
key="6"
last={false}
line={
- Object {
- "code": "<span class=\\"k\\">import</span> java.util.<span class=\\"sym-9 sym\\">ArrayList</span>;",
+ {
+ "code": "<span class="k">import</span> java.util.<span class="sym-9 sym">ArrayList</span>;",
"coverageStatus": "covered",
"coveredConditions": 2,
"duplicated": false,
@@ -691,8 +691,8 @@ exports[`should render correctly when at the top of the file 1`] = `
onSymbolClick={[MockFunction]}
openIssues={false}
previousLine={
- Object {
- "code": "<span class=\\"k\\">import</span> java.util.<span class=\\"sym-9 sym\\">ArrayList</span>;",
+ {
+ "code": "<span class="k">import</span> java.util.<span class="sym-9 sym">ArrayList</span>;",
"coverageStatus": "covered",
"coveredConditions": 2,
"duplicated": false,
@@ -704,7 +704,7 @@ exports[`should render correctly when at the top of the file 1`] = `
}
}
renderDuplicationPopup={[MockFunction]}
- secondaryIssueLocations={Array []}
+ secondaryIssueLocations={[]}
verticalBuffer={0}
/>
<Line
@@ -712,17 +712,17 @@ exports[`should render correctly when at the top of the file 1`] = `
displayDuplications={false}
displayIssues={false}
displayLocationMarkers={true}
- duplications={Array []}
+ duplications={[]}
duplicationsCount={0}
firstLineNumber={1}
highlighted={false}
- issueLocations={Array []}
- issues={Array []}
+ issueLocations={[]}
+ issues={[]}
key="7"
last={false}
line={
- Object {
- "code": "<span class=\\"k\\">import</span> java.util.<span class=\\"sym-9 sym\\">ArrayList</span>;",
+ {
+ "code": "<span class="k">import</span> java.util.<span class="sym-9 sym">ArrayList</span>;",
"coverageStatus": "covered",
"coveredConditions": 2,
"duplicated": false,
@@ -742,8 +742,8 @@ exports[`should render correctly when at the top of the file 1`] = `
onSymbolClick={[MockFunction]}
openIssues={false}
previousLine={
- Object {
- "code": "<span class=\\"k\\">import</span> java.util.<span class=\\"sym-9 sym\\">ArrayList</span>;",
+ {
+ "code": "<span class="k">import</span> java.util.<span class="sym-9 sym">ArrayList</span>;",
"coverageStatus": "covered",
"coveredConditions": 2,
"duplicated": false,
@@ -755,7 +755,7 @@ exports[`should render correctly when at the top of the file 1`] = `
}
}
renderDuplicationPopup={[MockFunction]}
- secondaryIssueLocations={Array []}
+ secondaryIssueLocations={[]}
verticalBuffer={0}
/>
</tbody>
@@ -801,17 +801,17 @@ exports[`should render correctly with no SCM 1`] = `
displayIssues={false}
displayLocationMarkers={true}
displaySCM={false}
- duplications={Array []}
+ duplications={[]}
duplicationsCount={0}
firstLineNumber={5}
highlighted={false}
- issueLocations={Array []}
- issues={Array []}
+ issueLocations={[]}
+ issues={[]}
key="5"
last={false}
line={
- Object {
- "code": "<span class=\\"k\\">import</span> java.util.<span class=\\"sym-9 sym\\">ArrayList</span>;",
+ {
+ "code": "<span class="k">import</span> java.util.<span class="sym-9 sym">ArrayList</span>;",
"coverageStatus": "covered",
"coveredConditions": 2,
"duplicated": false,
@@ -831,7 +831,7 @@ exports[`should render correctly with no SCM 1`] = `
onSymbolClick={[MockFunction]}
openIssues={false}
renderDuplicationPopup={[MockFunction]}
- secondaryIssueLocations={Array []}
+ secondaryIssueLocations={[]}
verticalBuffer={0}
/>
<Line
@@ -840,17 +840,17 @@ exports[`should render correctly with no SCM 1`] = `
displayIssues={false}
displayLocationMarkers={true}
displaySCM={false}
- duplications={Array []}
+ duplications={[]}
duplicationsCount={0}
firstLineNumber={5}
highlighted={false}
- issueLocations={Array []}
- issues={Array []}
+ issueLocations={[]}
+ issues={[]}
key="6"
last={false}
line={
- Object {
- "code": "<span class=\\"k\\">import</span> java.util.<span class=\\"sym-9 sym\\">ArrayList</span>;",
+ {
+ "code": "<span class="k">import</span> java.util.<span class="sym-9 sym">ArrayList</span>;",
"coverageStatus": "covered",
"coveredConditions": 2,
"duplicated": false,
@@ -870,8 +870,8 @@ exports[`should render correctly with no SCM 1`] = `
onSymbolClick={[MockFunction]}
openIssues={false}
previousLine={
- Object {
- "code": "<span class=\\"k\\">import</span> java.util.<span class=\\"sym-9 sym\\">ArrayList</span>;",
+ {
+ "code": "<span class="k">import</span> java.util.<span class="sym-9 sym">ArrayList</span>;",
"coverageStatus": "covered",
"coveredConditions": 2,
"duplicated": false,
@@ -883,7 +883,7 @@ exports[`should render correctly with no SCM 1`] = `
}
}
renderDuplicationPopup={[MockFunction]}
- secondaryIssueLocations={Array []}
+ secondaryIssueLocations={[]}
verticalBuffer={0}
/>
<Line
@@ -892,17 +892,17 @@ exports[`should render correctly with no SCM 1`] = `
displayIssues={false}
displayLocationMarkers={true}
displaySCM={false}
- duplications={Array []}
+ duplications={[]}
duplicationsCount={0}
firstLineNumber={5}
highlighted={false}
- issueLocations={Array []}
- issues={Array []}
+ issueLocations={[]}
+ issues={[]}
key="7"
last={false}
line={
- Object {
- "code": "<span class=\\"k\\">import</span> java.util.<span class=\\"sym-9 sym\\">ArrayList</span>;",
+ {
+ "code": "<span class="k">import</span> java.util.<span class="sym-9 sym">ArrayList</span>;",
"coverageStatus": "covered",
"coveredConditions": 2,
"duplicated": false,
@@ -922,8 +922,8 @@ exports[`should render correctly with no SCM 1`] = `
onSymbolClick={[MockFunction]}
openIssues={false}
previousLine={
- Object {
- "code": "<span class=\\"k\\">import</span> java.util.<span class=\\"sym-9 sym\\">ArrayList</span>;",
+ {
+ "code": "<span class="k">import</span> java.util.<span class="sym-9 sym">ArrayList</span>;",
"coverageStatus": "covered",
"coveredConditions": 2,
"duplicated": false,
@@ -935,7 +935,7 @@ exports[`should render correctly with no SCM 1`] = `
}
}
renderDuplicationPopup={[MockFunction]}
- secondaryIssueLocations={Array []}
+ secondaryIssueLocations={[]}
verticalBuffer={0}
/>
</tbody>
diff --git a/server/sonar-web/src/main/js/apps/issues/sidebar/__tests__/__snapshots__/AssigneeFacet-test.tsx.snap b/server/sonar-web/src/main/js/apps/issues/sidebar/__tests__/__snapshots__/AssigneeFacet-test.tsx.snap
index ee6aa25506d..e6f5de2d616 100644
--- a/server/sonar-web/src/main/js/apps/issues/sidebar/__tests__/__snapshots__/AssigneeFacet-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/issues/sidebar/__tests__/__snapshots__/AssigneeFacet-test.tsx.snap
@@ -19,12 +19,12 @@ exports[`should render 1`] = `
onToggle={[MockFunction]}
open={true}
property="assignees"
- query={Object {}}
+ query={{}}
renderFacetItem={[Function]}
renderSearchResult={[Function]}
searchPlaceholder="search.search_for_users"
stats={
- Object {
+ {
"": 5,
"bar": 7,
"baz": 6,
@@ -32,7 +32,7 @@ exports[`should render 1`] = `
}
}
values={
- Array [
+ [
"foo",
]
}
diff --git a/server/sonar-web/src/main/js/apps/issues/sidebar/__tests__/__snapshots__/AuthorFacet-test.tsx.snap b/server/sonar-web/src/main/js/apps/issues/sidebar/__tests__/__snapshots__/AuthorFacet-test.tsx.snap
index 82c0a7d2538..9d8d3369552 100644
--- a/server/sonar-web/src/main/js/apps/issues/sidebar/__tests__/__snapshots__/AuthorFacet-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/issues/sidebar/__tests__/__snapshots__/AuthorFacet-test.tsx.snap
@@ -16,11 +16,11 @@ exports[`should render correctly 1`] = `
onToggle={[MockFunction]}
open={true}
property="author"
- query={Object {}}
+ query={{}}
renderFacetItem={[Function]}
renderSearchResult={[Function]}
searchPlaceholder="search.search_for_authors"
- stats={Object {}}
- values={Array []}
+ stats={{}}
+ values={[]}
/>
`;
diff --git a/server/sonar-web/src/main/js/apps/issues/sidebar/__tests__/__snapshots__/CreationDateFacet-test.tsx.snap b/server/sonar-web/src/main/js/apps/issues/sidebar/__tests__/__snapshots__/CreationDateFacet-test.tsx.snap
index 1faa1389ddf..028ee163412 100644
--- a/server/sonar-web/src/main/js/apps/issues/sidebar/__tests__/__snapshots__/CreationDateFacet-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/issues/sidebar/__tests__/__snapshots__/CreationDateFacet-test.tsx.snap
@@ -11,7 +11,7 @@ exports[`should render correctly for createdInLast month 1`] = `
onClick={[Function]}
open={true}
values={
- Array [
+ [
"issues.facet.createdAt.last_month",
]
}
@@ -24,7 +24,7 @@ exports[`should render correctly for createdInLast month 1`] = `
alignEndDateCalandarRight={true}
onChange={[Function]}
value={
- Object {
+ {
"from": undefined,
"to": undefined,
}
@@ -86,7 +86,7 @@ exports[`should render correctly for createdInLast week 1`] = `
onClick={[Function]}
open={true}
values={
- Array [
+ [
"issues.facet.createdAt.last_week",
]
}
@@ -99,7 +99,7 @@ exports[`should render correctly for createdInLast week 1`] = `
alignEndDateCalandarRight={true}
onChange={[Function]}
value={
- Object {
+ {
"from": undefined,
"to": undefined,
}
@@ -161,7 +161,7 @@ exports[`should render correctly for createdInLast year 1`] = `
onClick={[Function]}
open={true}
values={
- Array [
+ [
"issues.facet.createdAt.last_year",
]
}
@@ -174,7 +174,7 @@ exports[`should render correctly for createdInLast year 1`] = `
alignEndDateCalandarRight={true}
onChange={[Function]}
value={
- Object {
+ {
"from": undefined,
"to": undefined,
}
@@ -235,7 +235,7 @@ exports[`should render correctly: clear 1`] = `
onClear={[Function]}
onClick={[Function]}
open={true}
- values={Array []}
+ values={[]}
/>
<div>
<div
@@ -245,7 +245,7 @@ exports[`should render correctly: clear 1`] = `
alignEndDateCalandarRight={true}
onChange={[Function]}
value={
- Object {
+ {
"from": undefined,
"to": undefined,
}
@@ -306,7 +306,7 @@ exports[`should render correctly: closed 1`] = `
onClear={[Function]}
onClick={[Function]}
open={false}
- values={Array []}
+ values={[]}
/>
</FacetBox>
`;
@@ -322,7 +322,7 @@ exports[`should render correctly: created after 1`] = `
onClick={[Function]}
open={true}
values={
- Array [
+ [
"formatted.Invalid Date",
]
}
@@ -352,7 +352,7 @@ exports[`should render correctly: created after timestamp 1`] = `
onClick={[Function]}
open={true}
values={
- Array [
+ [
"formatted.Invalid Date",
]
}
@@ -382,7 +382,7 @@ exports[`should render correctly: created at 1`] = `
onClick={[Function]}
open={true}
values={
- Array [
+ [
"formatted.2019.05.21T13:33:00Z",
]
}
@@ -415,7 +415,7 @@ exports[`should render correctly: portfolio 1`] = `
onClear={[Function]}
onClick={[Function]}
open={true}
- values={Array []}
+ values={[]}
/>
<div>
<div
@@ -425,7 +425,7 @@ exports[`should render correctly: portfolio 1`] = `
alignEndDateCalandarRight={true}
onChange={[Function]}
value={
- Object {
+ {
"from": undefined,
"to": undefined,
}
@@ -486,7 +486,7 @@ exports[`should render correctly: project 1`] = `
onClear={[Function]}
onClick={[Function]}
open={true}
- values={Array []}
+ values={[]}
/>
<div>
<div
@@ -496,7 +496,7 @@ exports[`should render correctly: project 1`] = `
alignEndDateCalandarRight={true}
onChange={[Function]}
value={
- Object {
+ {
"from": undefined,
"to": undefined,
}
diff --git a/server/sonar-web/src/main/js/apps/issues/sidebar/__tests__/__snapshots__/DirectoryFacet-test.tsx.snap b/server/sonar-web/src/main/js/apps/issues/sidebar/__tests__/__snapshots__/DirectoryFacet-test.tsx.snap
index ce08e6ffa03..d7c77c17c1f 100644
--- a/server/sonar-web/src/main/js/apps/issues/sidebar/__tests__/__snapshots__/DirectoryFacet-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/issues/sidebar/__tests__/__snapshots__/DirectoryFacet-test.tsx.snap
@@ -16,12 +16,12 @@ exports[`should render correctly 1`] = `
onToggle={[MockFunction]}
open={false}
property="directories"
- query={Object {}}
+ query={{}}
renderFacetItem={[Function]}
renderSearchResult={[Function]}
searchPlaceholder="search.search_for_directories"
values={
- Array [
+ [
"foo/",
"bar/baz/",
]
diff --git a/server/sonar-web/src/main/js/apps/issues/sidebar/__tests__/__snapshots__/FileFacet-test.tsx.snap b/server/sonar-web/src/main/js/apps/issues/sidebar/__tests__/__snapshots__/FileFacet-test.tsx.snap
index 011f2b6c056..56d01f38203 100644
--- a/server/sonar-web/src/main/js/apps/issues/sidebar/__tests__/__snapshots__/FileFacet-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/issues/sidebar/__tests__/__snapshots__/FileFacet-test.tsx.snap
@@ -16,12 +16,12 @@ exports[`should render correctly 1`] = `
onToggle={[MockFunction]}
open={false}
property="files"
- query={Object {}}
+ query={{}}
renderFacetItem={[Function]}
renderSearchResult={[Function]}
searchPlaceholder="search.search_for_files"
values={
- Array [
+ [
"foo",
"bar",
]
diff --git a/server/sonar-web/src/main/js/apps/issues/sidebar/__tests__/__snapshots__/ProjectFacet-test.tsx.snap b/server/sonar-web/src/main/js/apps/issues/sidebar/__tests__/__snapshots__/ProjectFacet-test.tsx.snap
index 6053583e69a..8502212fda3 100644
--- a/server/sonar-web/src/main/js/apps/issues/sidebar/__tests__/__snapshots__/ProjectFacet-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/issues/sidebar/__tests__/__snapshots__/ProjectFacet-test.tsx.snap
@@ -41,10 +41,10 @@ exports[`should render correctly 1`] = `
onToggle={[MockFunction]}
open={false}
property="projects"
- query={Object {}}
+ query={{}}
renderFacetItem={[Function]}
renderSearchResult={[Function]}
searchPlaceholder="search.search_for_projects"
- values={Array []}
+ values={[]}
/>
`;
diff --git a/server/sonar-web/src/main/js/apps/issues/sidebar/__tests__/__snapshots__/RuleFacet-test.tsx.snap b/server/sonar-web/src/main/js/apps/issues/sidebar/__tests__/__snapshots__/RuleFacet-test.tsx.snap
index bfbc8e0c0e7..8ef9b574cec 100644
--- a/server/sonar-web/src/main/js/apps/issues/sidebar/__tests__/__snapshots__/RuleFacet-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/issues/sidebar/__tests__/__snapshots__/RuleFacet-test.tsx.snap
@@ -16,13 +16,13 @@ exports[`should render correctly 1`] = `
onToggle={[MockFunction]}
open={false}
property="rules"
- query={Object {}}
+ query={{}}
renderFacetItem={[Function]}
renderSearchResult={[Function]}
searchPlaceholder="search.search_for_rules"
- stats={Object {}}
+ stats={{}}
values={
- Array [
+ [
"r1",
]
}
diff --git a/server/sonar-web/src/main/js/apps/issues/sidebar/__tests__/__snapshots__/ScopeFacet-test.tsx.snap b/server/sonar-web/src/main/js/apps/issues/sidebar/__tests__/__snapshots__/ScopeFacet-test.tsx.snap
index 034d490ba1a..4d536bbdfb8 100644
--- a/server/sonar-web/src/main/js/apps/issues/sidebar/__tests__/__snapshots__/ScopeFacet-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/issues/sidebar/__tests__/__snapshots__/ScopeFacet-test.tsx.snap
@@ -11,7 +11,7 @@ exports[`should render correctly: active facet 1`] = `
onClick={[Function]}
open={true}
values={
- Array [
+ [
"issue.scope.MAIN",
]
}
@@ -77,7 +77,7 @@ exports[`should render correctly: default 1`] = `
onClear={[Function]}
onClick={[Function]}
open={false}
- values={Array []}
+ values={[]}
/>
</FacetBox>
`;
@@ -92,7 +92,7 @@ exports[`should render correctly: disabled facet 1`] = `
onClear={[Function]}
onClick={[Function]}
open={true}
- values={Array []}
+ values={[]}
/>
<FacetItemsList>
<FacetItem
@@ -156,7 +156,7 @@ exports[`should render correctly: open 1`] = `
onClear={[Function]}
onClick={[Function]}
open={true}
- values={Array []}
+ values={[]}
/>
<FacetItemsList>
<FacetItem
diff --git a/server/sonar-web/src/main/js/apps/issues/sidebar/__tests__/__snapshots__/Sidebar-test.tsx.snap b/server/sonar-web/src/main/js/apps/issues/sidebar/__tests__/__snapshots__/Sidebar-test.tsx.snap
index ebac70305d1..c15aaf6e7d2 100644
--- a/server/sonar-web/src/main/js/apps/issues/sidebar/__tests__/__snapshots__/Sidebar-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/issues/sidebar/__tests__/__snapshots__/Sidebar-test.tsx.snap
@@ -1,7 +1,7 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`should not render developer nominative facets when asked not to 1`] = `
-Array [
+[
"TypeFacet",
"SeverityFacet",
"ScopeFacet",
@@ -17,7 +17,7 @@ Array [
`;
exports[`should render facets for "APP" 1`] = `
-Array [
+[
"PeriodFilter",
"TypeFacet",
"SeverityFacet",
@@ -36,7 +36,7 @@ Array [
`;
exports[`should render facets for "SVW" 1`] = `
-Array [
+[
"TypeFacet",
"SeverityFacet",
"ScopeFacet",
@@ -54,7 +54,7 @@ Array [
`;
exports[`should render facets for "VW" 1`] = `
-Array [
+[
"TypeFacet",
"SeverityFacet",
"ScopeFacet",
@@ -72,7 +72,7 @@ Array [
`;
exports[`should render facets for global page 1`] = `
-Array [
+[
"TypeFacet",
"SeverityFacet",
"ScopeFacet",
@@ -90,7 +90,7 @@ Array [
`;
exports[`should render facets for project 1`] = `
-Array [
+[
"PeriodFilter",
"TypeFacet",
"SeverityFacet",
@@ -110,7 +110,7 @@ Array [
`;
exports[`should render facets when my issues are selected 1`] = `
-Array [
+[
"TypeFacet",
"SeverityFacet",
"ScopeFacet",
diff --git a/server/sonar-web/src/main/js/apps/issues/sidebar/__tests__/__snapshots__/StandardFacet-test.tsx.snap b/server/sonar-web/src/main/js/apps/issues/sidebar/__tests__/__snapshots__/StandardFacet-test.tsx.snap
index c8ce52ba718..ee432561b63 100644
--- a/server/sonar-web/src/main/js/apps/issues/sidebar/__tests__/__snapshots__/StandardFacet-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/issues/sidebar/__tests__/__snapshots__/StandardFacet-test.tsx.snap
@@ -9,7 +9,7 @@ exports[`should render closed 1`] = `
onClear={[Function]}
onClick={[Function]}
open={false}
- values={Array []}
+ values={[]}
/>
</FacetBox>
`;
@@ -24,7 +24,7 @@ exports[`should render empty sub-facet 1`] = `
name="issues.facet.sansTop25"
onClick={[Function]}
open={true}
- values={Array []}
+ values={[]}
/>
<div
className="search-navigator-facet-empty little-spacer-top"
@@ -48,7 +48,7 @@ exports[`should render sub-facets 1`] = `
onClick={[Function]}
open={true}
values={
- Array [
+ [
"SONAR SQL Injection",
"OWASP A3",
"SANS Risky Resource Management",
@@ -66,7 +66,7 @@ exports[`should render sub-facets 1`] = `
onClick={[Function]}
open={true}
values={
- Array [
+ [
"SQL Injection",
]
}
@@ -98,7 +98,7 @@ exports[`should render sub-facets 1`] = `
name="issues.facet.owaspTop10_2021"
onClick={[Function]}
open={false}
- values={Array []}
+ values={[]}
/>
</FacetBox>
<FacetBox
@@ -111,7 +111,7 @@ exports[`should render sub-facets 1`] = `
onClick={[Function]}
open={true}
values={
- Array [
+ [
"A3",
]
}
@@ -155,7 +155,7 @@ exports[`should render sub-facets 1`] = `
onClick={[Function]}
open={true}
values={
- Array [
+ [
"Risky Resource Management",
]
}
@@ -205,18 +205,18 @@ exports[`should render sub-facets 1`] = `
onToggle={[MockFunction]}
open={true}
property="cwe"
- query={Object {}}
+ query={{}}
renderFacetItem={[Function]}
renderSearchResult={[Function]}
searchPlaceholder="search.search_for_cwe"
stats={
- Object {
+ {
"173": 3,
"42": 5,
}
}
values={
- Array [
+ [
"42",
]
}
diff --git a/server/sonar-web/src/main/js/apps/issues/sidebar/__tests__/__snapshots__/StatusFacet-test.tsx.snap b/server/sonar-web/src/main/js/apps/issues/sidebar/__tests__/__snapshots__/StatusFacet-test.tsx.snap
index 9444ebc1af1..c3113151531 100644
--- a/server/sonar-web/src/main/js/apps/issues/sidebar/__tests__/__snapshots__/StatusFacet-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/issues/sidebar/__tests__/__snapshots__/StatusFacet-test.tsx.snap
@@ -10,7 +10,7 @@ exports[`should render correctly 1`] = `
onClear={[Function]}
onClick={[Function]}
open={true}
- values={Array []}
+ values={[]}
/>
<FacetItemsList>
<FacetItem
diff --git a/server/sonar-web/src/main/js/apps/issues/sidebar/__tests__/__snapshots__/TypeFacet-test.tsx.snap b/server/sonar-web/src/main/js/apps/issues/sidebar/__tests__/__snapshots__/TypeFacet-test.tsx.snap
index 7acb94ecd25..d5f48e2ef5d 100644
--- a/server/sonar-web/src/main/js/apps/issues/sidebar/__tests__/__snapshots__/TypeFacet-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/issues/sidebar/__tests__/__snapshots__/TypeFacet-test.tsx.snap
@@ -11,7 +11,7 @@ exports[`should render open by default 1`] = `
onClick={[Function]}
open={true}
values={
- Array [
+ [
"issue.type.VULNERABILITY",
"issue.type.CODE_SMELL",
]
diff --git a/server/sonar-web/src/main/js/apps/marketplace/__tests__/__snapshots__/App-test.tsx.snap b/server/sonar-web/src/main/js/apps/marketplace/__tests__/__snapshots__/App-test.tsx.snap
index 95315b39ff7..a17030467b4 100644
--- a/server/sonar-web/src/main/js/apps/marketplace/__tests__/__snapshots__/App-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/marketplace/__tests__/__snapshots__/App-test.tsx.snap
@@ -42,7 +42,7 @@ exports[`should render correctly: loaded 1`] = `
defaultMessage="marketplace.page.plugins.description2"
id="marketplace.page.plugins.description2"
values={
- Object {
+ {
"link": <withAppStateContext(DocLink)
to="/instance-administration/marketplace/"
>
@@ -60,7 +60,7 @@ exports[`should render correctly: loaded 1`] = `
/>
<Search
query={
- Object {
+ {
"filter": "all",
"search": "",
}
@@ -73,15 +73,15 @@ exports[`should render correctly: loaded 1`] = `
>
<PluginsList
pending={
- Object {
- "installing": Array [],
- "removing": Array [],
- "updating": Array [],
+ {
+ "installing": [],
+ "removing": [],
+ "updating": [],
}
}
plugins={
- Array [
- Object {
+ [
+ {
"key": "sonar-foo",
"name": "Sonar Foo",
},
@@ -139,7 +139,7 @@ exports[`should render correctly: loading 1`] = `
defaultMessage="marketplace.page.plugins.description2"
id="marketplace.page.plugins.description2"
values={
- Object {
+ {
"link": <withAppStateContext(DocLink)
to="/instance-administration/marketplace/"
>
@@ -157,7 +157,7 @@ exports[`should render correctly: loading 1`] = `
/>
<Search
query={
- Object {
+ {
"filter": "all",
"search": "",
}
@@ -216,7 +216,7 @@ exports[`should render correctly: not readonly 1`] = `
/>
<Search
query={
- Object {
+ {
"filter": "all",
"search": "",
}
@@ -229,15 +229,15 @@ exports[`should render correctly: not readonly 1`] = `
>
<PluginsList
pending={
- Object {
- "installing": Array [],
- "removing": Array [],
- "updating": Array [],
+ {
+ "installing": [],
+ "removing": [],
+ "updating": [],
}
}
plugins={
- Array [
- Object {
+ [
+ {
"key": "sonar-foo",
"name": "Sonar Foo",
},
diff --git a/server/sonar-web/src/main/js/apps/marketplace/__tests__/__snapshots__/EditionBoxes-test.tsx.snap b/server/sonar-web/src/main/js/apps/marketplace/__tests__/__snapshots__/EditionBoxes-test.tsx.snap
index 7ed8b99d9f6..41180da2051 100644
--- a/server/sonar-web/src/main/js/apps/marketplace/__tests__/__snapshots__/EditionBoxes-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/marketplace/__tests__/__snapshots__/EditionBoxes-test.tsx.snap
@@ -7,7 +7,7 @@ exports[`should display the available edition boxes correctly 1`] = `
<EditionBox
currentEdition="community"
edition={
- Object {
+ {
"downloadProperty": "downloadDeveloperUrl",
"homeUrl": "https://redirect.sonarsource.com/editions/developer.html",
"key": "developer",
@@ -19,7 +19,7 @@ exports[`should display the available edition boxes correctly 1`] = `
<EditionBox
currentEdition="community"
edition={
- Object {
+ {
"downloadProperty": "downloadEnterpriseUrl",
"homeUrl": "https://redirect.sonarsource.com/editions/enterprise.html",
"key": "enterprise",
@@ -31,7 +31,7 @@ exports[`should display the available edition boxes correctly 1`] = `
<EditionBox
currentEdition="community"
edition={
- Object {
+ {
"downloadProperty": "downloadDatacenterUrl",
"homeUrl": "https://redirect.sonarsource.com/editions/datacenter.html",
"key": "datacenter",
@@ -50,7 +50,7 @@ exports[`should display the datacenter edition box only 1`] = `
<EditionBox
currentEdition="enterprise"
edition={
- Object {
+ {
"downloadProperty": "downloadDatacenterUrl",
"homeUrl": "https://redirect.sonarsource.com/editions/datacenter.html",
"key": "datacenter",
@@ -69,7 +69,7 @@ exports[`should display the enterprise and datacenter edition boxes 1`] = `
<EditionBox
currentEdition="developer"
edition={
- Object {
+ {
"downloadProperty": "downloadEnterpriseUrl",
"homeUrl": "https://redirect.sonarsource.com/editions/enterprise.html",
"key": "enterprise",
@@ -81,7 +81,7 @@ exports[`should display the enterprise and datacenter edition boxes 1`] = `
<EditionBox
currentEdition="developer"
edition={
- Object {
+ {
"downloadProperty": "downloadDatacenterUrl",
"homeUrl": "https://redirect.sonarsource.com/editions/datacenter.html",
"key": "datacenter",
diff --git a/server/sonar-web/src/main/js/apps/marketplace/__tests__/__snapshots__/MarketplaceAppContainer-test.tsx.snap b/server/sonar-web/src/main/js/apps/marketplace/__tests__/__snapshots__/MarketplaceAppContainer-test.tsx.snap
index 4f08e115a49..6a51a26919c 100644
--- a/server/sonar-web/src/main/js/apps/marketplace/__tests__/__snapshots__/MarketplaceAppContainer-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/marketplace/__tests__/__snapshots__/MarketplaceAppContainer-test.tsx.snap
@@ -5,20 +5,20 @@ exports[`should render correctly: default 1`] = `
currentEdition="community"
fetchPendingPlugins={[Function]}
location={
- Object {
+ {
"hash": "",
"key": "key",
"pathname": "/path",
- "query": Object {},
+ "query": {},
"search": "",
- "state": Object {},
+ "state": {},
}
}
pendingPlugins={
- Object {
- "installing": Array [],
- "removing": Array [],
- "updating": Array [],
+ {
+ "installing": [],
+ "removing": [],
+ "updating": [],
}
}
standaloneMode={true}
@@ -31,20 +31,20 @@ exports[`should render correctly: update center active 1`] = `
currentEdition="community"
fetchPendingPlugins={[Function]}
location={
- Object {
+ {
"hash": "",
"key": "key",
"pathname": "/path",
- "query": Object {},
+ "query": {},
"search": "",
- "state": Object {},
+ "state": {},
}
}
pendingPlugins={
- Object {
- "installing": Array [],
- "removing": Array [],
- "updating": Array [],
+ {
+ "installing": [],
+ "removing": [],
+ "updating": [],
}
}
updateCenterActive={true}
diff --git a/server/sonar-web/src/main/js/apps/marketplace/__tests__/__snapshots__/PluginUpdates-test.tsx.snap b/server/sonar-web/src/main/js/apps/marketplace/__tests__/__snapshots__/PluginUpdates-test.tsx.snap
index 00144a85662..99c865c7a36 100644
--- a/server/sonar-web/src/main/js/apps/marketplace/__tests__/__snapshots__/PluginUpdates-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/marketplace/__tests__/__snapshots__/PluginUpdates-test.tsx.snap
@@ -16,18 +16,18 @@ exports[`should render correctly: with status 1`] = `
<PluginUpdateItem
key="1.3"
release={
- Object {
+ {
"date": "2012-02-10",
"version": "1.3",
}
}
update={
- Object {
- "release": Object {
+ {
+ "release": {
"date": "2012-02-10",
"version": "1.3",
},
- "requires": Array [],
+ "requires": [],
"status": "",
}
}
@@ -35,18 +35,18 @@ exports[`should render correctly: with status 1`] = `
<PluginUpdateItem
key="1.1"
release={
- Object {
+ {
"date": "2012-02-01",
"version": "1.1",
}
}
update={
- Object {
- "release": Object {
+ {
+ "release": {
"date": "2012-02-01",
"version": "1.1",
},
- "requires": Array [],
+ "requires": [],
"status": "",
}
}
@@ -54,18 +54,18 @@ exports[`should render correctly: with status 1`] = `
<PluginUpdateItem
key="1.2"
release={
- Object {
+ {
"date": "2012-02-02",
"version": "1.2",
}
}
update={
- Object {
- "release": Object {
+ {
+ "release": {
"date": "2012-02-02",
"version": "1.2",
},
- "requires": Array [],
+ "requires": [],
"status": "",
}
}
diff --git a/server/sonar-web/src/main/js/apps/marketplace/__tests__/__snapshots__/PluginsList-test.tsx.snap b/server/sonar-web/src/main/js/apps/marketplace/__tests__/__snapshots__/PluginsList-test.tsx.snap
index bac43528f46..b7e62907a75 100644
--- a/server/sonar-web/src/main/js/apps/marketplace/__tests__/__snapshots__/PluginsList-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/marketplace/__tests__/__snapshots__/PluginsList-test.tsx.snap
@@ -15,17 +15,17 @@ exports[`should render correctly: default 1`] = `
>
<tbody>
<PluginAvailable
- installedPlugins={Array []}
+ installedPlugins={[]}
plugin={
- Object {
+ {
"key": "sonar-bar",
"name": "Sonar Bar",
- "release": Object {
+ "release": {
"date": "2020-01-01",
"version": "8.2",
},
- "update": Object {
- "requires": Array [],
+ "update": {
+ "requires": [],
"status": "available",
},
}
@@ -45,17 +45,17 @@ exports[`should render correctly: default 1`] = `
>
<tbody>
<PluginAvailable
- installedPlugins={Array []}
+ installedPlugins={[]}
plugin={
- Object {
+ {
"key": "sonar-baz",
"name": "Sonar Baz",
- "release": Object {
+ "release": {
"date": "2020-01-01",
"version": "8.2",
},
- "update": Object {
- "requires": Array [],
+ "update": {
+ "requires": [],
"status": "available",
},
}
@@ -75,17 +75,17 @@ exports[`should render correctly: default 1`] = `
>
<tbody>
<PluginAvailable
- installedPlugins={Array []}
+ installedPlugins={[]}
plugin={
- Object {
+ {
"key": "sonar-foo",
"name": "Sonar Foo",
- "release": Object {
+ "release": {
"date": "2020-01-01",
"version": "8.2",
},
- "update": Object {
- "requires": Array [],
+ "update": {
+ "requires": [],
"status": "available",
},
}
@@ -115,17 +115,17 @@ exports[`should render correctly: with status 1`] = `
>
<tbody>
<PluginAvailable
- installedPlugins={Array []}
+ installedPlugins={[]}
plugin={
- Object {
+ {
"key": "sonar-bar",
"name": "Sonar Bar",
- "release": Object {
+ "release": {
"date": "2020-01-01",
"version": "8.2",
},
- "update": Object {
- "requires": Array [],
+ "update": {
+ "requires": [],
"status": "available",
},
}
@@ -146,17 +146,17 @@ exports[`should render correctly: with status 1`] = `
>
<tbody>
<PluginAvailable
- installedPlugins={Array []}
+ installedPlugins={[]}
plugin={
- Object {
+ {
"key": "sonar-baz",
"name": "Sonar Baz",
- "release": Object {
+ "release": {
"date": "2020-01-01",
"version": "8.2",
},
- "update": Object {
- "requires": Array [],
+ "update": {
+ "requires": [],
"status": "available",
},
}
@@ -177,17 +177,17 @@ exports[`should render correctly: with status 1`] = `
>
<tbody>
<PluginAvailable
- installedPlugins={Array []}
+ installedPlugins={[]}
plugin={
- Object {
+ {
"key": "sonar-foo",
"name": "Sonar Foo",
- "release": Object {
+ "release": {
"date": "2020-01-01",
"version": "8.2",
},
- "update": Object {
- "requires": Array [],
+ "update": {
+ "requires": [],
"status": "available",
},
}
diff --git a/server/sonar-web/src/main/js/apps/marketplace/components/__tests__/__snapshots__/PluginActions-test.tsx.snap b/server/sonar-web/src/main/js/apps/marketplace/components/__tests__/__snapshots__/PluginActions-test.tsx.snap
index 15853674d26..676c7005b7a 100644
--- a/server/sonar-web/src/main/js/apps/marketplace/components/__tests__/__snapshots__/PluginActions-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/marketplace/components/__tests__/__snapshots__/PluginActions-test.tsx.snap
@@ -67,8 +67,8 @@ exports[`should render installed plugin correctly 1`] = `
key="0"
onClick={[Function]}
update={
- Object {
- "requires": Array [],
+ {
+ "requires": [],
"status": "COMPATIBLE",
}
}
@@ -105,8 +105,8 @@ exports[`should render installed plugin correctly 2`] = `
key="0"
onClick={[Function]}
update={
- Object {
- "requires": Array [],
+ {
+ "requires": [],
"status": "COMPATIBLE",
}
}
diff --git a/server/sonar-web/src/main/js/apps/marketplace/components/__tests__/__snapshots__/PluginAvailable-test.tsx.snap b/server/sonar-web/src/main/js/apps/marketplace/components/__tests__/__snapshots__/PluginAvailable-test.tsx.snap
index 9222f0091d3..65fa8c941d5 100644
--- a/server/sonar-web/src/main/js/apps/marketplace/components/__tests__/__snapshots__/PluginAvailable-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/marketplace/components/__tests__/__snapshots__/PluginAvailable-test.tsx.snap
@@ -4,15 +4,15 @@ exports[`should render correctly: default 1`] = `
<tr>
<PluginDescription
plugin={
- Object {
+ {
"key": "sonar-foo",
"name": "Sonar Foo",
- "release": Object {
+ "release": {
"date": "2020-01-01",
"version": "8.2",
},
- "update": Object {
- "requires": Array [],
+ "update": {
+ "requires": [],
"status": "available",
},
}
@@ -37,14 +37,14 @@ exports[`should render correctly: default 1`] = `
<div>
<PluginChangeLogButton
release={
- Object {
+ {
"date": "2020-01-01",
"version": "8.2",
}
}
update={
- Object {
- "requires": Array [],
+ {
+ "requires": [],
"status": "available",
}
}
@@ -59,15 +59,15 @@ exports[`should render correctly: default 1`] = `
<ul>
<PluginUrls
plugin={
- Object {
+ {
"key": "sonar-foo",
"name": "Sonar Foo",
- "release": Object {
+ "release": {
"date": "2020-01-01",
"version": "8.2",
},
- "update": Object {
- "requires": Array [],
+ "update": {
+ "requires": [],
"status": "available",
},
}
@@ -76,15 +76,15 @@ exports[`should render correctly: default 1`] = `
<PluginLicense />
<PluginOrganization
plugin={
- Object {
+ {
"key": "sonar-foo",
"name": "Sonar Foo",
- "release": Object {
+ "release": {
"date": "2020-01-01",
"version": "8.2",
},
- "update": Object {
- "requires": Array [],
+ "update": {
+ "requires": [],
"status": "available",
},
}
@@ -94,15 +94,15 @@ exports[`should render correctly: default 1`] = `
</td>
<PluginStatus
plugin={
- Object {
+ {
"key": "sonar-foo",
"name": "Sonar Foo",
- "release": Object {
+ "release": {
"date": "2020-01-01",
"version": "8.2",
},
- "update": Object {
- "requires": Array [],
+ "update": {
+ "requires": [],
"status": "available",
},
}
@@ -116,16 +116,16 @@ exports[`should render correctly: has requirements 1`] = `
<tr>
<PluginDescription
plugin={
- Object {
+ {
"key": "sonar-foo",
"name": "Sonar Foo",
- "release": Object {
+ "release": {
"date": "2020-01-01",
"version": "8.2",
},
- "update": Object {
- "requires": Array [
- Object {
+ "update": {
+ "requires": [
+ {
"key": "sonar-foo",
"name": "Sonar Foo",
},
@@ -154,15 +154,15 @@ exports[`should render correctly: has requirements 1`] = `
<div>
<PluginChangeLogButton
release={
- Object {
+ {
"date": "2020-01-01",
"version": "8.2",
}
}
update={
- Object {
- "requires": Array [
- Object {
+ {
+ "requires": [
+ {
"key": "sonar-foo",
"name": "Sonar Foo",
},
@@ -188,16 +188,16 @@ exports[`should render correctly: has requirements 1`] = `
<ul>
<PluginUrls
plugin={
- Object {
+ {
"key": "sonar-foo",
"name": "Sonar Foo",
- "release": Object {
+ "release": {
"date": "2020-01-01",
"version": "8.2",
},
- "update": Object {
- "requires": Array [
- Object {
+ "update": {
+ "requires": [
+ {
"key": "sonar-foo",
"name": "Sonar Foo",
},
@@ -210,16 +210,16 @@ exports[`should render correctly: has requirements 1`] = `
<PluginLicense />
<PluginOrganization
plugin={
- Object {
+ {
"key": "sonar-foo",
"name": "Sonar Foo",
- "release": Object {
+ "release": {
"date": "2020-01-01",
"version": "8.2",
},
- "update": Object {
- "requires": Array [
- Object {
+ "update": {
+ "requires": [
+ {
"key": "sonar-foo",
"name": "Sonar Foo",
},
@@ -233,16 +233,16 @@ exports[`should render correctly: has requirements 1`] = `
</td>
<PluginStatus
plugin={
- Object {
+ {
"key": "sonar-foo",
"name": "Sonar Foo",
- "release": Object {
+ "release": {
"date": "2020-01-01",
"version": "8.2",
},
- "update": Object {
- "requires": Array [
- Object {
+ "update": {
+ "requires": [
+ {
"key": "sonar-foo",
"name": "Sonar Foo",
},
@@ -260,20 +260,20 @@ exports[`should render correctly: has requirements, some of them already met 1`]
<tr>
<PluginDescription
plugin={
- Object {
+ {
"key": "sonar-foo",
"name": "Sonar Foo",
- "release": Object {
+ "release": {
"date": "2020-01-01",
"version": "8.2",
},
- "update": Object {
- "requires": Array [
- Object {
+ "update": {
+ "requires": [
+ {
"key": "sonar-foo",
"name": "Sonar Foo",
},
- Object {
+ {
"filename": "sonar-bar-1.0.jar",
"hash": "hash",
"implementationBuild": "1.0.0.1234",
@@ -308,19 +308,19 @@ exports[`should render correctly: has requirements, some of them already met 1`]
<div>
<PluginChangeLogButton
release={
- Object {
+ {
"date": "2020-01-01",
"version": "8.2",
}
}
update={
- Object {
- "requires": Array [
- Object {
+ {
+ "requires": [
+ {
"key": "sonar-foo",
"name": "Sonar Foo",
},
- Object {
+ {
"filename": "sonar-bar-1.0.jar",
"hash": "hash",
"implementationBuild": "1.0.0.1234",
@@ -352,20 +352,20 @@ exports[`should render correctly: has requirements, some of them already met 1`]
<ul>
<PluginUrls
plugin={
- Object {
+ {
"key": "sonar-foo",
"name": "Sonar Foo",
- "release": Object {
+ "release": {
"date": "2020-01-01",
"version": "8.2",
},
- "update": Object {
- "requires": Array [
- Object {
+ "update": {
+ "requires": [
+ {
"key": "sonar-foo",
"name": "Sonar Foo",
},
- Object {
+ {
"filename": "sonar-bar-1.0.jar",
"hash": "hash",
"implementationBuild": "1.0.0.1234",
@@ -384,20 +384,20 @@ exports[`should render correctly: has requirements, some of them already met 1`]
<PluginLicense />
<PluginOrganization
plugin={
- Object {
+ {
"key": "sonar-foo",
"name": "Sonar Foo",
- "release": Object {
+ "release": {
"date": "2020-01-01",
"version": "8.2",
},
- "update": Object {
- "requires": Array [
- Object {
+ "update": {
+ "requires": [
+ {
"key": "sonar-foo",
"name": "Sonar Foo",
},
- Object {
+ {
"filename": "sonar-bar-1.0.jar",
"hash": "hash",
"implementationBuild": "1.0.0.1234",
@@ -417,20 +417,20 @@ exports[`should render correctly: has requirements, some of them already met 1`]
</td>
<PluginStatus
plugin={
- Object {
+ {
"key": "sonar-foo",
"name": "Sonar Foo",
- "release": Object {
+ "release": {
"date": "2020-01-01",
"version": "8.2",
},
- "update": Object {
- "requires": Array [
- Object {
+ "update": {
+ "requires": [
+ {
"key": "sonar-foo",
"name": "Sonar Foo",
},
- Object {
+ {
"filename": "sonar-bar-1.0.jar",
"hash": "hash",
"implementationBuild": "1.0.0.1234",
@@ -454,15 +454,15 @@ exports[`should render correctly: read only 1`] = `
<tr>
<PluginDescription
plugin={
- Object {
+ {
"key": "sonar-foo",
"name": "Sonar Foo",
- "release": Object {
+ "release": {
"date": "2020-01-01",
"version": "8.2",
},
- "update": Object {
- "requires": Array [],
+ "update": {
+ "requires": [],
"status": "available",
},
}
@@ -487,14 +487,14 @@ exports[`should render correctly: read only 1`] = `
<div>
<PluginChangeLogButton
release={
- Object {
+ {
"date": "2020-01-01",
"version": "8.2",
}
}
update={
- Object {
- "requires": Array [],
+ {
+ "requires": [],
"status": "available",
}
}
@@ -509,15 +509,15 @@ exports[`should render correctly: read only 1`] = `
<ul>
<PluginUrls
plugin={
- Object {
+ {
"key": "sonar-foo",
"name": "Sonar Foo",
- "release": Object {
+ "release": {
"date": "2020-01-01",
"version": "8.2",
},
- "update": Object {
- "requires": Array [],
+ "update": {
+ "requires": [],
"status": "available",
},
}
@@ -526,15 +526,15 @@ exports[`should render correctly: read only 1`] = `
<PluginLicense />
<PluginOrganization
plugin={
- Object {
+ {
"key": "sonar-foo",
"name": "Sonar Foo",
- "release": Object {
+ "release": {
"date": "2020-01-01",
"version": "8.2",
},
- "update": Object {
- "requires": Array [],
+ "update": {
+ "requires": [],
"status": "available",
},
}
diff --git a/server/sonar-web/src/main/js/apps/marketplace/components/__tests__/__snapshots__/PluginChangeLog-test.tsx.snap b/server/sonar-web/src/main/js/apps/marketplace/components/__tests__/__snapshots__/PluginChangeLog-test.tsx.snap
index faa44946273..bedb1f82654 100644
--- a/server/sonar-web/src/main/js/apps/marketplace/components/__tests__/__snapshots__/PluginChangeLog-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/marketplace/components/__tests__/__snapshots__/PluginChangeLog-test.tsx.snap
@@ -13,7 +13,7 @@ exports[`should render correctly 1`] = `
<PluginChangeLogItem
key="0.10"
release={
- Object {
+ {
"changeLogUrl": "https://my.change.log/url",
"date": "2018-06-05",
"description": "Change version description",
@@ -21,14 +21,14 @@ exports[`should render correctly 1`] = `
}
}
update={
- Object {
- "release": Object {
+ {
+ "release": {
"changeLogUrl": "https://my.change.log/url",
"date": "2018-06-05",
"description": "Change version description",
"version": "0.10",
},
- "requires": Array [],
+ "requires": [],
"status": "COMPATIBLE",
}
}
@@ -36,7 +36,7 @@ exports[`should render correctly 1`] = `
<PluginChangeLogItem
key="0.11"
release={
- Object {
+ {
"changeLogUrl": "https://my.change.log/url",
"date": "2018-06-08",
"description": "Change version description",
@@ -44,21 +44,21 @@ exports[`should render correctly 1`] = `
}
}
update={
- Object {
- "release": Object {
+ {
+ "release": {
"changeLogUrl": "https://my.change.log/url",
"date": "2018-06-08",
"description": "Change version description",
"version": "0.11",
},
- "requires": Array [],
+ "requires": [],
"status": "COMPATIBLE",
}
}
/>
<PluginChangeLogItem
release={
- Object {
+ {
"changeLogUrl": "https://my.change.log/url",
"date": "2018-11-05",
"description": "Change version description",
@@ -66,31 +66,31 @@ exports[`should render correctly 1`] = `
}
}
update={
- Object {
- "previousUpdates": Array [
- Object {
- "release": Object {
+ {
+ "previousUpdates": [
+ {
+ "release": {
"changeLogUrl": "https://my.change.log/url",
"date": "2018-06-08",
"description": "Change version description",
"version": "0.11",
},
- "requires": Array [],
+ "requires": [],
"status": "COMPATIBLE",
},
- Object {
- "release": Object {
+ {
+ "release": {
"changeLogUrl": "https://my.change.log/url",
"date": "2018-06-05",
"description": "Change version description",
"version": "0.10",
},
- "requires": Array [],
+ "requires": [],
"status": "COMPATIBLE",
},
],
- "requires": Array [
- Object {
+ "requires": [
+ {
"description": "Code Analyzer for Java",
"key": "java",
"name": "SonarJava",
diff --git a/server/sonar-web/src/main/js/apps/marketplace/components/__tests__/__snapshots__/PluginLicense-test.tsx.snap b/server/sonar-web/src/main/js/apps/marketplace/components/__tests__/__snapshots__/PluginLicense-test.tsx.snap
index 85d122c5896..648fe7b2ede 100644
--- a/server/sonar-web/src/main/js/apps/marketplace/components/__tests__/__snapshots__/PluginLicense-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/marketplace/components/__tests__/__snapshots__/PluginLicense-test.tsx.snap
@@ -11,7 +11,7 @@ exports[`should display the license field 1`] = `
defaultMessage="marketplace.licensed_under_x"
id="marketplace.licensed_under_x"
values={
- Object {
+ {
"license": <span
className="js-plugin-license"
>
diff --git a/server/sonar-web/src/main/js/apps/marketplace/components/__tests__/__snapshots__/PluginOrganization-test.tsx.snap b/server/sonar-web/src/main/js/apps/marketplace/components/__tests__/__snapshots__/PluginOrganization-test.tsx.snap
index 38339993d42..055f3c081ac 100644
--- a/server/sonar-web/src/main/js/apps/marketplace/components/__tests__/__snapshots__/PluginOrganization-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/marketplace/components/__tests__/__snapshots__/PluginOrganization-test.tsx.snap
@@ -8,7 +8,7 @@ exports[`should render correctly 1`] = `
defaultMessage="marketplace.developed_by_x"
id="marketplace.developed_by_x"
values={
- Object {
+ {
"organization": <a
className="js-plugin-organization"
href="org_url"
diff --git a/server/sonar-web/src/main/js/apps/overview/branches/__tests__/MeasuresPanelNoNewCode-test.tsx b/server/sonar-web/src/main/js/apps/overview/branches/__tests__/MeasuresPanelNoNewCode-test.tsx
index d629829c66d..e61f4a6d52d 100644
--- a/server/sonar-web/src/main/js/apps/overview/branches/__tests__/MeasuresPanelNoNewCode-test.tsx
+++ b/server/sonar-web/src/main/js/apps/overview/branches/__tests__/MeasuresPanelNoNewCode-test.tsx
@@ -30,7 +30,7 @@ it('should render the default message', () => {
<div
className="display-flex-center display-flex-justify-center"
style={
- Object {
+ {
"height": 500,
}
}
@@ -44,7 +44,7 @@ it('should render the default message', () => {
<div
className="big-spacer-left text-muted"
style={
- Object {
+ {
"maxWidth": 500,
}
}
@@ -59,7 +59,7 @@ it('should render the default message', () => {
defaultMessage="overview.measures.empty_link"
id="overview.measures.empty_link"
values={
- Object {
+ {
"learn_more_link": <withAppStateContext(DocLink)
to="/user-guide/clean-as-you-code/"
>
diff --git a/server/sonar-web/src/main/js/apps/overview/branches/__tests__/__snapshots__/ActivityPanel-test.tsx.snap b/server/sonar-web/src/main/js/apps/overview/branches/__tests__/__snapshots__/ActivityPanel-test.tsx.snap
index a738c264671..609f69f5ca9 100644
--- a/server/sonar-web/src/main/js/apps/overview/branches/__tests__/__snapshots__/ActivityPanel-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/overview/branches/__tests__/__snapshots__/ActivityPanel-test.tsx.snap
@@ -25,8 +25,8 @@ exports[`should render correctly 1`] = `
<GraphsHeader
graph="issues"
metrics={
- Array [
- Object {
+ [
+ {
"id": "bugs",
"key": "bugs",
"name": "bugs",
@@ -37,16 +37,16 @@ exports[`should render correctly 1`] = `
updateGraph={[MockFunction]}
/>
<GraphsHistory
- analyses={Array []}
+ analyses={[]}
ariaLabel="overview.activity.graph_shows_data_for_x.metric.bugs.name, metric.code_smells.name, metric.vulnerabilities.name"
canShowDataAsTable={false}
graph="issues"
graphs={
- Array [
- Array [
- Object {
- "data": Array [
- Object {
+ [
+ [
+ {
+ "data": [
+ {
"x": 2016-10-27T14:33:50.000Z,
"y": 20,
},
@@ -60,17 +60,17 @@ exports[`should render correctly 1`] = `
}
loading={false}
measuresHistory={
- Array [
- Object {
+ [
+ {
"bestValue": true,
- "history": Array [
- Object {
+ "history": [
+ {
"date": 2016-10-27T14:33:50.000Z,
"value": "20",
},
],
"metric": "bugs",
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
@@ -80,10 +80,10 @@ exports[`should render correctly 1`] = `
]
}
series={
- Array [
- Object {
- "data": Array [
- Object {
+ [
+ {
+ "data": [
+ {
"x": 2016-10-27T14:33:50.000Z,
"y": 20,
},
@@ -101,7 +101,7 @@ exports[`should render correctly 1`] = `
>
<ActivityLink
branchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": true,
@@ -128,22 +128,22 @@ exports[`should render correctly 1`] = `
>
<Memo(Analysis)
analysis={
- Object {
+ {
"date": "2017-03-01T09:36:01+0100",
- "events": Array [
- Object {
+ "events": [
+ {
"category": "QUALITY_GATE",
"description": "Lorem ipsum dolor sit amet",
"key": "E11",
"name": "Lorem ipsum",
- "qualityGate": Object {
- "failing": Array [
- Object {
+ "qualityGate": {
+ "failing": [
+ {
"branch": "master",
"key": "foo",
"name": "Foo",
},
- Object {
+ {
"branch": "feature/bar",
"key": "bar",
"name": "Bar",
@@ -195,8 +195,8 @@ exports[`should render correctly 2`] = `
<GraphsHeader
graph="issues"
metrics={
- Array [
- Object {
+ [
+ {
"id": "bugs",
"key": "bugs",
"name": "bugs",
@@ -207,16 +207,16 @@ exports[`should render correctly 2`] = `
updateGraph={[MockFunction]}
/>
<GraphsHistory
- analyses={Array []}
+ analyses={[]}
ariaLabel="overview.activity.graph_shows_data_for_x.metric.bugs.name, metric.code_smells.name, metric.vulnerabilities.name"
canShowDataAsTable={false}
graph="issues"
graphs={
- Array [
- Array [
- Object {
- "data": Array [
- Object {
+ [
+ [
+ {
+ "data": [
+ {
"x": 2016-10-27T14:33:50.000Z,
"y": 20,
},
@@ -230,17 +230,17 @@ exports[`should render correctly 2`] = `
}
loading={true}
measuresHistory={
- Array [
- Object {
+ [
+ {
"bestValue": true,
- "history": Array [
- Object {
+ "history": [
+ {
"date": 2016-10-27T14:33:50.000Z,
"value": "20",
},
],
"metric": "bugs",
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
@@ -250,10 +250,10 @@ exports[`should render correctly 2`] = `
]
}
series={
- Array [
- Object {
- "data": Array [
- Object {
+ [
+ {
+ "data": [
+ {
"x": 2016-10-27T14:33:50.000Z,
"y": 20,
},
@@ -271,7 +271,7 @@ exports[`should render correctly 2`] = `
>
<ActivityLink
branchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": true,
diff --git a/server/sonar-web/src/main/js/apps/overview/branches/__tests__/__snapshots__/Analysis-test.tsx.snap b/server/sonar-web/src/main/js/apps/overview/branches/__tests__/__snapshots__/Analysis-test.tsx.snap
index 68f3e147e62..c457027703b 100644
--- a/server/sonar-web/src/main/js/apps/overview/branches/__tests__/__snapshots__/Analysis-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/overview/branches/__tests__/__snapshots__/Analysis-test.tsx.snap
@@ -18,7 +18,7 @@ exports[`should render correctly 1`] = `
>
<Memo(Event)
event={
- Object {
+ {
"category": "VERSION",
"key": "2",
"name": "6.5-SNAPSHOT",
@@ -28,7 +28,7 @@ exports[`should render correctly 1`] = `
/>
<Memo(Event)
event={
- Object {
+ {
"category": "OTHER",
"key": "1",
"name": "test",
@@ -58,7 +58,7 @@ exports[`should render correctly 2`] = `
>
<Memo(Event)
event={
- Object {
+ {
"category": "VERSION",
"key": "2",
"name": "6.5-SNAPSHOT",
@@ -68,7 +68,7 @@ exports[`should render correctly 2`] = `
/>
<Memo(Event)
event={
- Object {
+ {
"category": "OTHER",
"key": "1",
"name": "test",
diff --git a/server/sonar-web/src/main/js/apps/overview/branches/__tests__/__snapshots__/BranchOverview-test.tsx.snap b/server/sonar-web/src/main/js/apps/overview/branches/__tests__/__snapshots__/BranchOverview-test.tsx.snap
index bedeaafe142..55575bcdea0 100644
--- a/server/sonar-web/src/main/js/apps/overview/branches/__tests__/__snapshots__/BranchOverview-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/overview/branches/__tests__/__snapshots__/BranchOverview-test.tsx.snap
@@ -3,49 +3,49 @@
exports[`application overview should fetch correctly other branch 1`] = `
<Memo(BranchOverviewRenderer)
analyses={
- Array [
- Object {
+ [
+ {
"date": "2017-03-01T09:36:01+0100",
"detectedCI": "Cirrus CI",
- "events": Array [],
+ "events": [],
"key": "foo",
"projectVersion": "1.0",
},
- Object {
+ {
"date": "2017-03-01T09:36:01+0100",
- "events": Array [],
+ "events": [],
"key": "foo",
"projectVersion": "1.0",
},
- Object {
+ {
"date": "2017-03-01T09:36:01+0100",
- "events": Array [],
+ "events": [],
"key": "foo",
"projectVersion": "1.0",
},
- Object {
+ {
"date": "2017-03-01T09:36:01+0100",
- "events": Array [],
+ "events": [],
"key": "foo",
"projectVersion": "1.0",
},
- Object {
+ {
"date": "2017-03-01T09:36:01+0100",
- "events": Array [],
+ "events": [],
"key": "foo",
"projectVersion": "1.0",
},
]
}
appLeak={
- Object {
+ {
"date": "2017-01-05",
"project": "foo",
"projectName": "Foo",
}
}
branch={
- Object {
+ {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": false,
@@ -53,46 +53,46 @@ exports[`application overview should fetch correctly other branch 1`] = `
}
}
component={
- Object {
- "breadcrumbs": Array [
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [
+ {
+ "breadcrumbs": [],
"key": "foo",
"name": "MyProject",
"qualifier": "APP",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
},
],
"key": "my-project",
"name": "MyProject",
"qualifier": "APP",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
detectedCIOnLastAnalysis={true}
@@ -100,10 +100,10 @@ exports[`application overview should fetch correctly other branch 1`] = `
loadingHistory={false}
loadingStatus={false}
measures={
- Array [
- Object {
+ [
+ {
"bestValue": true,
- "metric": Object {
+ "metric": {
"id": "alert_status",
"key": "alert_status",
"name": "alert_status",
@@ -112,9 +112,9 @@ exports[`application overview should fetch correctly other branch 1`] = `
"period": undefined,
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
- "metric": Object {
+ "metric": {
"id": "quality_gate_details",
"key": "quality_gate_details",
"name": "quality_gate_details",
@@ -123,9 +123,9 @@ exports[`application overview should fetch correctly other branch 1`] = `
"period": undefined,
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
- "metric": Object {
+ "metric": {
"id": "bugs",
"key": "bugs",
"name": "bugs",
@@ -134,25 +134,25 @@ exports[`application overview should fetch correctly other branch 1`] = `
"period": undefined,
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "new_bugs",
"key": "new_bugs",
"name": "new_bugs",
"type": "INT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
- "metric": Object {
+ "metric": {
"id": "reliability_rating",
"key": "reliability_rating",
"name": "reliability_rating",
@@ -161,25 +161,25 @@ exports[`application overview should fetch correctly other branch 1`] = `
"period": undefined,
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "new_reliability_rating",
"key": "new_reliability_rating",
"name": "new_reliability_rating",
"type": "RATING",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
- "metric": Object {
+ "metric": {
"id": "vulnerabilities",
"key": "vulnerabilities",
"name": "vulnerabilities",
@@ -188,25 +188,25 @@ exports[`application overview should fetch correctly other branch 1`] = `
"period": undefined,
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "new_vulnerabilities",
"key": "new_vulnerabilities",
"name": "new_vulnerabilities",
"type": "INT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
- "metric": Object {
+ "metric": {
"id": "security_rating",
"key": "security_rating",
"name": "security_rating",
@@ -215,25 +215,25 @@ exports[`application overview should fetch correctly other branch 1`] = `
"period": undefined,
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "new_security_rating",
"key": "new_security_rating",
"name": "new_security_rating",
"type": "RATING",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
- "metric": Object {
+ "metric": {
"id": "security_hotspots",
"key": "security_hotspots",
"name": "security_hotspots",
@@ -242,25 +242,25 @@ exports[`application overview should fetch correctly other branch 1`] = `
"period": undefined,
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "new_security_hotspots",
"key": "new_security_hotspots",
"name": "new_security_hotspots",
"type": "INT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
- "metric": Object {
+ "metric": {
"id": "security_hotspots_reviewed",
"key": "security_hotspots_reviewed",
"name": "security_hotspots_reviewed",
@@ -269,25 +269,25 @@ exports[`application overview should fetch correctly other branch 1`] = `
"period": undefined,
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "new_security_hotspots_reviewed",
"key": "new_security_hotspots_reviewed",
"name": "new_security_hotspots_reviewed",
"type": "INT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
- "metric": Object {
+ "metric": {
"id": "security_review_rating",
"key": "security_review_rating",
"name": "security_review_rating",
@@ -296,25 +296,25 @@ exports[`application overview should fetch correctly other branch 1`] = `
"period": undefined,
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "new_security_review_rating",
"key": "new_security_review_rating",
"name": "new_security_review_rating",
"type": "RATING",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
- "metric": Object {
+ "metric": {
"id": "code_smells",
"key": "code_smells",
"name": "code_smells",
@@ -323,25 +323,25 @@ exports[`application overview should fetch correctly other branch 1`] = `
"period": undefined,
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "new_code_smells",
"key": "new_code_smells",
"name": "new_code_smells",
"type": "INT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
- "metric": Object {
+ "metric": {
"id": "sqale_rating",
"key": "sqale_rating",
"name": "sqale_rating",
@@ -350,25 +350,25 @@ exports[`application overview should fetch correctly other branch 1`] = `
"period": undefined,
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "new_maintainability_rating",
"key": "new_maintainability_rating",
"name": "new_maintainability_rating",
"type": "RATING",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
- "metric": Object {
+ "metric": {
"id": "sqale_index",
"key": "sqale_index",
"name": "sqale_index",
@@ -377,25 +377,25 @@ exports[`application overview should fetch correctly other branch 1`] = `
"period": undefined,
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "new_technical_debt",
"key": "new_technical_debt",
"name": "new_technical_debt",
"type": "INT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
- "metric": Object {
+ "metric": {
"id": "coverage",
"key": "coverage",
"name": "coverage",
@@ -404,25 +404,25 @@ exports[`application overview should fetch correctly other branch 1`] = `
"period": undefined,
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "new_coverage",
"key": "new_coverage",
"name": "new_coverage",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
- "metric": Object {
+ "metric": {
"id": "lines_to_cover",
"key": "lines_to_cover",
"name": "lines_to_cover",
@@ -431,25 +431,25 @@ exports[`application overview should fetch correctly other branch 1`] = `
"period": undefined,
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "new_lines_to_cover",
"key": "new_lines_to_cover",
"name": "new_lines_to_cover",
"type": "INT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
- "metric": Object {
+ "metric": {
"id": "tests",
"key": "tests",
"name": "tests",
@@ -458,9 +458,9 @@ exports[`application overview should fetch correctly other branch 1`] = `
"period": undefined,
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
- "metric": Object {
+ "metric": {
"id": "duplicated_lines_density",
"key": "duplicated_lines_density",
"name": "duplicated_lines_density",
@@ -469,25 +469,25 @@ exports[`application overview should fetch correctly other branch 1`] = `
"period": undefined,
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "new_duplicated_lines_density",
"key": "new_duplicated_lines_density",
"name": "new_duplicated_lines_density",
"type": "INT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
- "metric": Object {
+ "metric": {
"id": "duplicated_blocks",
"key": "duplicated_blocks",
"name": "duplicated_blocks",
@@ -496,9 +496,9 @@ exports[`application overview should fetch correctly other branch 1`] = `
"period": undefined,
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
- "metric": Object {
+ "metric": {
"id": "ncloc",
"key": "ncloc",
"name": "ncloc",
@@ -507,9 +507,9 @@ exports[`application overview should fetch correctly other branch 1`] = `
"period": undefined,
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
- "metric": Object {
+ "metric": {
"id": "ncloc_language_distribution",
"key": "ncloc_language_distribution",
"name": "ncloc_language_distribution",
@@ -518,9 +518,9 @@ exports[`application overview should fetch correctly other branch 1`] = `
"period": undefined,
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
- "metric": Object {
+ "metric": {
"id": "projects",
"key": "projects",
"name": "projects",
@@ -529,9 +529,9 @@ exports[`application overview should fetch correctly other branch 1`] = `
"period": undefined,
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
- "metric": Object {
+ "metric": {
"id": "lines",
"key": "lines",
"name": "lines",
@@ -540,16 +540,16 @@ exports[`application overview should fetch correctly other branch 1`] = `
"period": undefined,
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "new_lines",
"key": "new_lines",
"name": "new_lines",
"type": "INT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
@@ -559,55 +559,55 @@ exports[`application overview should fetch correctly other branch 1`] = `
]
}
measuresHistory={
- Array [
- Object {
- "history": Array [
- Object {
+ [
+ {
+ "history": [
+ {
"date": "PARSED:2019-01-05",
"value": "2.0",
},
],
"metric": "bugs",
},
- Object {
- "history": Array [
- Object {
+ {
+ "history": [
+ {
"date": "PARSED:2019-01-05",
"value": "0",
},
],
"metric": "vulnerabilities",
},
- Object {
- "history": Array [
- Object {
+ {
+ "history": [
+ {
"date": "PARSED:2019-01-01",
"value": "1.0",
},
],
"metric": "sqale_index",
},
- Object {
- "history": Array [
- Object {
+ {
+ "history": [
+ {
"date": "PARSED:2019-01-02",
"value": "1.0",
},
],
"metric": "duplicated_lines_density",
},
- Object {
- "history": Array [
- Object {
+ {
+ "history": [
+ {
"date": "PARSED:2019-01-03",
"value": "10000",
},
],
"metric": "ncloc",
},
- Object {
- "history": Array [
- Object {
+ {
+ "history": [
+ {
"date": "PARSED:2019-01-04",
"value": "95.5",
},
@@ -617,212 +617,212 @@ exports[`application overview should fetch correctly other branch 1`] = `
]
}
metrics={
- Array [
- Object {
+ [
+ {
"id": "alert_status",
"key": "alert_status",
"name": "alert_status",
"type": "INT",
},
- Object {
+ {
"id": "quality_gate_details",
"key": "quality_gate_details",
"name": "quality_gate_details",
"type": "INT",
},
- Object {
+ {
"id": "bugs",
"key": "bugs",
"name": "bugs",
"type": "INT",
},
- Object {
+ {
"id": "new_bugs",
"key": "new_bugs",
"name": "new_bugs",
"type": "INT",
},
- Object {
+ {
"id": "reliability_rating",
"key": "reliability_rating",
"name": "reliability_rating",
"type": "RATING",
},
- Object {
+ {
"id": "new_reliability_rating",
"key": "new_reliability_rating",
"name": "new_reliability_rating",
"type": "RATING",
},
- Object {
+ {
"id": "vulnerabilities",
"key": "vulnerabilities",
"name": "vulnerabilities",
"type": "INT",
},
- Object {
+ {
"id": "new_vulnerabilities",
"key": "new_vulnerabilities",
"name": "new_vulnerabilities",
"type": "INT",
},
- Object {
+ {
"id": "security_rating",
"key": "security_rating",
"name": "security_rating",
"type": "RATING",
},
- Object {
+ {
"id": "new_security_rating",
"key": "new_security_rating",
"name": "new_security_rating",
"type": "RATING",
},
- Object {
+ {
"id": "security_hotspots",
"key": "security_hotspots",
"name": "security_hotspots",
"type": "INT",
},
- Object {
+ {
"id": "new_security_hotspots",
"key": "new_security_hotspots",
"name": "new_security_hotspots",
"type": "INT",
},
- Object {
+ {
"id": "security_hotspots_reviewed",
"key": "security_hotspots_reviewed",
"name": "security_hotspots_reviewed",
"type": "INT",
},
- Object {
+ {
"id": "new_security_hotspots_reviewed",
"key": "new_security_hotspots_reviewed",
"name": "new_security_hotspots_reviewed",
"type": "INT",
},
- Object {
+ {
"id": "security_review_rating",
"key": "security_review_rating",
"name": "security_review_rating",
"type": "RATING",
},
- Object {
+ {
"id": "new_security_review_rating",
"key": "new_security_review_rating",
"name": "new_security_review_rating",
"type": "RATING",
},
- Object {
+ {
"id": "code_smells",
"key": "code_smells",
"name": "code_smells",
"type": "INT",
},
- Object {
+ {
"id": "new_code_smells",
"key": "new_code_smells",
"name": "new_code_smells",
"type": "INT",
},
- Object {
+ {
"id": "sqale_rating",
"key": "sqale_rating",
"name": "sqale_rating",
"type": "RATING",
},
- Object {
+ {
"id": "new_maintainability_rating",
"key": "new_maintainability_rating",
"name": "new_maintainability_rating",
"type": "RATING",
},
- Object {
+ {
"id": "sqale_index",
"key": "sqale_index",
"name": "sqale_index",
"type": "INT",
},
- Object {
+ {
"id": "new_technical_debt",
"key": "new_technical_debt",
"name": "new_technical_debt",
"type": "INT",
},
- Object {
+ {
"id": "coverage",
"key": "coverage",
"name": "coverage",
"type": "PERCENT",
},
- Object {
+ {
"id": "new_coverage",
"key": "new_coverage",
"name": "new_coverage",
"type": "PERCENT",
},
- Object {
+ {
"id": "lines_to_cover",
"key": "lines_to_cover",
"name": "lines_to_cover",
"type": "INT",
},
- Object {
+ {
"id": "new_lines_to_cover",
"key": "new_lines_to_cover",
"name": "new_lines_to_cover",
"type": "INT",
},
- Object {
+ {
"id": "tests",
"key": "tests",
"name": "tests",
"type": "INT",
},
- Object {
+ {
"id": "duplicated_lines_density",
"key": "duplicated_lines_density",
"name": "duplicated_lines_density",
"type": "INT",
},
- Object {
+ {
"id": "new_duplicated_lines_density",
"key": "new_duplicated_lines_density",
"name": "new_duplicated_lines_density",
"type": "INT",
},
- Object {
+ {
"id": "duplicated_blocks",
"key": "duplicated_blocks",
"name": "duplicated_blocks",
"type": "INT",
},
- Object {
+ {
"id": "ncloc",
"key": "ncloc",
"name": "ncloc",
"type": "INT",
},
- Object {
+ {
"id": "ncloc_language_distribution",
"key": "ncloc_language_distribution",
"name": "ncloc_language_distribution",
"type": "INT",
},
- Object {
+ {
"id": "projects",
"key": "projects",
"name": "projects",
"type": "INT",
},
- Object {
+ {
"id": "lines",
"key": "lines",
"name": "lines",
"type": "INT",
},
- Object {
+ {
"id": "new_lines",
"key": "new_lines",
"name": "new_lines",
@@ -833,17 +833,17 @@ exports[`application overview should fetch correctly other branch 1`] = `
onGraphChange={[Function]}
projectIsEmpty={false}
qgStatuses={
- Array [
- Object {
+ [
+ {
"branchLike": undefined,
- "failedConditions": Array [
- Object {
+ "failedConditions": [
+ {
"actual": "10",
"error": "1.0",
"level": "ERROR",
- "measure": Object {
+ "measure": {
"bestValue": true,
- "metric": Object {
+ "metric": {
"id": "coverage",
"key": "coverage",
"name": "coverage",
@@ -856,20 +856,20 @@ exports[`application overview should fetch correctly other branch 1`] = `
"op": "GT",
"period": undefined,
},
- Object {
+ {
"actual": "5",
"error": "1.0",
"level": "ERROR",
- "measure": Object {
+ "measure": {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "new_bugs",
"key": "new_bugs",
"name": "new_bugs",
"type": "INT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
@@ -885,23 +885,23 @@ exports[`application overview should fetch correctly other branch 1`] = `
"name": "Foo",
"status": "ERROR",
},
- Object {
+ {
"branchLike": undefined,
- "failedConditions": Array [
- Object {
+ "failedConditions": [
+ {
"actual": "15",
"error": "5.0",
"level": "ERROR",
- "measure": Object {
+ "measure": {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "new_bugs",
"key": "new_bugs",
"name": "new_bugs",
"type": "INT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
@@ -925,49 +925,49 @@ exports[`application overview should fetch correctly other branch 1`] = `
exports[`application overview should render correctly 1`] = `
<Memo(BranchOverviewRenderer)
analyses={
- Array [
- Object {
+ [
+ {
"date": "2017-03-01T09:36:01+0100",
"detectedCI": "Cirrus CI",
- "events": Array [],
+ "events": [],
"key": "foo",
"projectVersion": "1.0",
},
- Object {
+ {
"date": "2017-03-01T09:36:01+0100",
- "events": Array [],
+ "events": [],
"key": "foo",
"projectVersion": "1.0",
},
- Object {
+ {
"date": "2017-03-01T09:36:01+0100",
- "events": Array [],
+ "events": [],
"key": "foo",
"projectVersion": "1.0",
},
- Object {
+ {
"date": "2017-03-01T09:36:01+0100",
- "events": Array [],
+ "events": [],
"key": "foo",
"projectVersion": "1.0",
},
- Object {
+ {
"date": "2017-03-01T09:36:01+0100",
- "events": Array [],
+ "events": [],
"key": "foo",
"projectVersion": "1.0",
},
]
}
appLeak={
- Object {
+ {
"date": "2017-01-05",
"project": "foo",
"projectName": "Foo",
}
}
branch={
- Object {
+ {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": true,
@@ -975,46 +975,46 @@ exports[`application overview should render correctly 1`] = `
}
}
component={
- Object {
- "breadcrumbs": Array [
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [
+ {
+ "breadcrumbs": [],
"key": "foo",
"name": "MyProject",
"qualifier": "APP",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
},
],
"key": "my-project",
"name": "MyProject",
"qualifier": "APP",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
detectedCIOnLastAnalysis={true}
@@ -1022,10 +1022,10 @@ exports[`application overview should render correctly 1`] = `
loadingHistory={false}
loadingStatus={false}
measures={
- Array [
- Object {
+ [
+ {
"bestValue": true,
- "metric": Object {
+ "metric": {
"id": "alert_status",
"key": "alert_status",
"name": "alert_status",
@@ -1034,9 +1034,9 @@ exports[`application overview should render correctly 1`] = `
"period": undefined,
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
- "metric": Object {
+ "metric": {
"id": "quality_gate_details",
"key": "quality_gate_details",
"name": "quality_gate_details",
@@ -1045,9 +1045,9 @@ exports[`application overview should render correctly 1`] = `
"period": undefined,
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
- "metric": Object {
+ "metric": {
"id": "bugs",
"key": "bugs",
"name": "bugs",
@@ -1056,25 +1056,25 @@ exports[`application overview should render correctly 1`] = `
"period": undefined,
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "new_bugs",
"key": "new_bugs",
"name": "new_bugs",
"type": "INT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
- "metric": Object {
+ "metric": {
"id": "reliability_rating",
"key": "reliability_rating",
"name": "reliability_rating",
@@ -1083,25 +1083,25 @@ exports[`application overview should render correctly 1`] = `
"period": undefined,
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "new_reliability_rating",
"key": "new_reliability_rating",
"name": "new_reliability_rating",
"type": "RATING",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
- "metric": Object {
+ "metric": {
"id": "vulnerabilities",
"key": "vulnerabilities",
"name": "vulnerabilities",
@@ -1110,25 +1110,25 @@ exports[`application overview should render correctly 1`] = `
"period": undefined,
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "new_vulnerabilities",
"key": "new_vulnerabilities",
"name": "new_vulnerabilities",
"type": "INT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
- "metric": Object {
+ "metric": {
"id": "security_rating",
"key": "security_rating",
"name": "security_rating",
@@ -1137,25 +1137,25 @@ exports[`application overview should render correctly 1`] = `
"period": undefined,
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "new_security_rating",
"key": "new_security_rating",
"name": "new_security_rating",
"type": "RATING",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
- "metric": Object {
+ "metric": {
"id": "security_hotspots",
"key": "security_hotspots",
"name": "security_hotspots",
@@ -1164,25 +1164,25 @@ exports[`application overview should render correctly 1`] = `
"period": undefined,
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "new_security_hotspots",
"key": "new_security_hotspots",
"name": "new_security_hotspots",
"type": "INT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
- "metric": Object {
+ "metric": {
"id": "security_hotspots_reviewed",
"key": "security_hotspots_reviewed",
"name": "security_hotspots_reviewed",
@@ -1191,25 +1191,25 @@ exports[`application overview should render correctly 1`] = `
"period": undefined,
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "new_security_hotspots_reviewed",
"key": "new_security_hotspots_reviewed",
"name": "new_security_hotspots_reviewed",
"type": "INT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
- "metric": Object {
+ "metric": {
"id": "security_review_rating",
"key": "security_review_rating",
"name": "security_review_rating",
@@ -1218,25 +1218,25 @@ exports[`application overview should render correctly 1`] = `
"period": undefined,
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "new_security_review_rating",
"key": "new_security_review_rating",
"name": "new_security_review_rating",
"type": "RATING",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
- "metric": Object {
+ "metric": {
"id": "code_smells",
"key": "code_smells",
"name": "code_smells",
@@ -1245,25 +1245,25 @@ exports[`application overview should render correctly 1`] = `
"period": undefined,
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "new_code_smells",
"key": "new_code_smells",
"name": "new_code_smells",
"type": "INT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
- "metric": Object {
+ "metric": {
"id": "sqale_rating",
"key": "sqale_rating",
"name": "sqale_rating",
@@ -1272,25 +1272,25 @@ exports[`application overview should render correctly 1`] = `
"period": undefined,
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "new_maintainability_rating",
"key": "new_maintainability_rating",
"name": "new_maintainability_rating",
"type": "RATING",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
- "metric": Object {
+ "metric": {
"id": "sqale_index",
"key": "sqale_index",
"name": "sqale_index",
@@ -1299,25 +1299,25 @@ exports[`application overview should render correctly 1`] = `
"period": undefined,
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "new_technical_debt",
"key": "new_technical_debt",
"name": "new_technical_debt",
"type": "INT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
- "metric": Object {
+ "metric": {
"id": "coverage",
"key": "coverage",
"name": "coverage",
@@ -1326,25 +1326,25 @@ exports[`application overview should render correctly 1`] = `
"period": undefined,
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "new_coverage",
"key": "new_coverage",
"name": "new_coverage",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
- "metric": Object {
+ "metric": {
"id": "lines_to_cover",
"key": "lines_to_cover",
"name": "lines_to_cover",
@@ -1353,25 +1353,25 @@ exports[`application overview should render correctly 1`] = `
"period": undefined,
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "new_lines_to_cover",
"key": "new_lines_to_cover",
"name": "new_lines_to_cover",
"type": "INT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
- "metric": Object {
+ "metric": {
"id": "tests",
"key": "tests",
"name": "tests",
@@ -1380,9 +1380,9 @@ exports[`application overview should render correctly 1`] = `
"period": undefined,
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
- "metric": Object {
+ "metric": {
"id": "duplicated_lines_density",
"key": "duplicated_lines_density",
"name": "duplicated_lines_density",
@@ -1391,25 +1391,25 @@ exports[`application overview should render correctly 1`] = `
"period": undefined,
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "new_duplicated_lines_density",
"key": "new_duplicated_lines_density",
"name": "new_duplicated_lines_density",
"type": "INT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
- "metric": Object {
+ "metric": {
"id": "duplicated_blocks",
"key": "duplicated_blocks",
"name": "duplicated_blocks",
@@ -1418,9 +1418,9 @@ exports[`application overview should render correctly 1`] = `
"period": undefined,
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
- "metric": Object {
+ "metric": {
"id": "ncloc",
"key": "ncloc",
"name": "ncloc",
@@ -1429,9 +1429,9 @@ exports[`application overview should render correctly 1`] = `
"period": undefined,
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
- "metric": Object {
+ "metric": {
"id": "ncloc_language_distribution",
"key": "ncloc_language_distribution",
"name": "ncloc_language_distribution",
@@ -1440,9 +1440,9 @@ exports[`application overview should render correctly 1`] = `
"period": undefined,
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
- "metric": Object {
+ "metric": {
"id": "projects",
"key": "projects",
"name": "projects",
@@ -1451,9 +1451,9 @@ exports[`application overview should render correctly 1`] = `
"period": undefined,
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
- "metric": Object {
+ "metric": {
"id": "lines",
"key": "lines",
"name": "lines",
@@ -1462,16 +1462,16 @@ exports[`application overview should render correctly 1`] = `
"period": undefined,
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "new_lines",
"key": "new_lines",
"name": "new_lines",
"type": "INT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
@@ -1481,55 +1481,55 @@ exports[`application overview should render correctly 1`] = `
]
}
measuresHistory={
- Array [
- Object {
- "history": Array [
- Object {
+ [
+ {
+ "history": [
+ {
"date": "PARSED:2019-01-05",
"value": "2.0",
},
],
"metric": "bugs",
},
- Object {
- "history": Array [
- Object {
+ {
+ "history": [
+ {
"date": "PARSED:2019-01-05",
"value": "0",
},
],
"metric": "vulnerabilities",
},
- Object {
- "history": Array [
- Object {
+ {
+ "history": [
+ {
"date": "PARSED:2019-01-01",
"value": "1.0",
},
],
"metric": "sqale_index",
},
- Object {
- "history": Array [
- Object {
+ {
+ "history": [
+ {
"date": "PARSED:2019-01-02",
"value": "1.0",
},
],
"metric": "duplicated_lines_density",
},
- Object {
- "history": Array [
- Object {
+ {
+ "history": [
+ {
"date": "PARSED:2019-01-03",
"value": "10000",
},
],
"metric": "ncloc",
},
- Object {
- "history": Array [
- Object {
+ {
+ "history": [
+ {
"date": "PARSED:2019-01-04",
"value": "95.5",
},
@@ -1539,212 +1539,212 @@ exports[`application overview should render correctly 1`] = `
]
}
metrics={
- Array [
- Object {
+ [
+ {
"id": "alert_status",
"key": "alert_status",
"name": "alert_status",
"type": "INT",
},
- Object {
+ {
"id": "quality_gate_details",
"key": "quality_gate_details",
"name": "quality_gate_details",
"type": "INT",
},
- Object {
+ {
"id": "bugs",
"key": "bugs",
"name": "bugs",
"type": "INT",
},
- Object {
+ {
"id": "new_bugs",
"key": "new_bugs",
"name": "new_bugs",
"type": "INT",
},
- Object {
+ {
"id": "reliability_rating",
"key": "reliability_rating",
"name": "reliability_rating",
"type": "RATING",
},
- Object {
+ {
"id": "new_reliability_rating",
"key": "new_reliability_rating",
"name": "new_reliability_rating",
"type": "RATING",
},
- Object {
+ {
"id": "vulnerabilities",
"key": "vulnerabilities",
"name": "vulnerabilities",
"type": "INT",
},
- Object {
+ {
"id": "new_vulnerabilities",
"key": "new_vulnerabilities",
"name": "new_vulnerabilities",
"type": "INT",
},
- Object {
+ {
"id": "security_rating",
"key": "security_rating",
"name": "security_rating",
"type": "RATING",
},
- Object {
+ {
"id": "new_security_rating",
"key": "new_security_rating",
"name": "new_security_rating",
"type": "RATING",
},
- Object {
+ {
"id": "security_hotspots",
"key": "security_hotspots",
"name": "security_hotspots",
"type": "INT",
},
- Object {
+ {
"id": "new_security_hotspots",
"key": "new_security_hotspots",
"name": "new_security_hotspots",
"type": "INT",
},
- Object {
+ {
"id": "security_hotspots_reviewed",
"key": "security_hotspots_reviewed",
"name": "security_hotspots_reviewed",
"type": "INT",
},
- Object {
+ {
"id": "new_security_hotspots_reviewed",
"key": "new_security_hotspots_reviewed",
"name": "new_security_hotspots_reviewed",
"type": "INT",
},
- Object {
+ {
"id": "security_review_rating",
"key": "security_review_rating",
"name": "security_review_rating",
"type": "RATING",
},
- Object {
+ {
"id": "new_security_review_rating",
"key": "new_security_review_rating",
"name": "new_security_review_rating",
"type": "RATING",
},
- Object {
+ {
"id": "code_smells",
"key": "code_smells",
"name": "code_smells",
"type": "INT",
},
- Object {
+ {
"id": "new_code_smells",
"key": "new_code_smells",
"name": "new_code_smells",
"type": "INT",
},
- Object {
+ {
"id": "sqale_rating",
"key": "sqale_rating",
"name": "sqale_rating",
"type": "RATING",
},
- Object {
+ {
"id": "new_maintainability_rating",
"key": "new_maintainability_rating",
"name": "new_maintainability_rating",
"type": "RATING",
},
- Object {
+ {
"id": "sqale_index",
"key": "sqale_index",
"name": "sqale_index",
"type": "INT",
},
- Object {
+ {
"id": "new_technical_debt",
"key": "new_technical_debt",
"name": "new_technical_debt",
"type": "INT",
},
- Object {
+ {
"id": "coverage",
"key": "coverage",
"name": "coverage",
"type": "PERCENT",
},
- Object {
+ {
"id": "new_coverage",
"key": "new_coverage",
"name": "new_coverage",
"type": "PERCENT",
},
- Object {
+ {
"id": "lines_to_cover",
"key": "lines_to_cover",
"name": "lines_to_cover",
"type": "INT",
},
- Object {
+ {
"id": "new_lines_to_cover",
"key": "new_lines_to_cover",
"name": "new_lines_to_cover",
"type": "INT",
},
- Object {
+ {
"id": "tests",
"key": "tests",
"name": "tests",
"type": "INT",
},
- Object {
+ {
"id": "duplicated_lines_density",
"key": "duplicated_lines_density",
"name": "duplicated_lines_density",
"type": "INT",
},
- Object {
+ {
"id": "new_duplicated_lines_density",
"key": "new_duplicated_lines_density",
"name": "new_duplicated_lines_density",
"type": "INT",
},
- Object {
+ {
"id": "duplicated_blocks",
"key": "duplicated_blocks",
"name": "duplicated_blocks",
"type": "INT",
},
- Object {
+ {
"id": "ncloc",
"key": "ncloc",
"name": "ncloc",
"type": "INT",
},
- Object {
+ {
"id": "ncloc_language_distribution",
"key": "ncloc_language_distribution",
"name": "ncloc_language_distribution",
"type": "INT",
},
- Object {
+ {
"id": "projects",
"key": "projects",
"name": "projects",
"type": "INT",
},
- Object {
+ {
"id": "lines",
"key": "lines",
"name": "lines",
"type": "INT",
},
- Object {
+ {
"id": "new_lines",
"key": "new_lines",
"name": "new_lines",
@@ -1755,17 +1755,17 @@ exports[`application overview should render correctly 1`] = `
onGraphChange={[Function]}
projectIsEmpty={false}
qgStatuses={
- Array [
- Object {
+ [
+ {
"branchLike": undefined,
- "failedConditions": Array [
- Object {
+ "failedConditions": [
+ {
"actual": "10",
"error": "1.0",
"level": "ERROR",
- "measure": Object {
+ "measure": {
"bestValue": true,
- "metric": Object {
+ "metric": {
"id": "coverage",
"key": "coverage",
"name": "coverage",
@@ -1778,20 +1778,20 @@ exports[`application overview should render correctly 1`] = `
"op": "GT",
"period": undefined,
},
- Object {
+ {
"actual": "5",
"error": "1.0",
"level": "ERROR",
- "measure": Object {
+ "measure": {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "new_bugs",
"key": "new_bugs",
"name": "new_bugs",
"type": "INT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
@@ -1807,23 +1807,23 @@ exports[`application overview should render correctly 1`] = `
"name": "Foo",
"status": "ERROR",
},
- Object {
+ {
"branchLike": undefined,
- "failedConditions": Array [
- Object {
+ "failedConditions": [
+ {
"actual": "15",
"error": "5.0",
"level": "ERROR",
- "measure": Object {
+ "measure": {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "new_bugs",
"key": "new_bugs",
"name": "new_bugs",
"type": "INT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
@@ -1847,42 +1847,42 @@ exports[`application overview should render correctly 1`] = `
exports[`project overview should render correctly 1`] = `
<Memo(BranchOverviewRenderer)
analyses={
- Array [
- Object {
+ [
+ {
"date": "2017-03-01T09:36:01+0100",
"detectedCI": "Cirrus CI",
- "events": Array [],
+ "events": [],
"key": "foo",
"projectVersion": "1.0",
},
- Object {
+ {
"date": "2017-03-01T09:36:01+0100",
- "events": Array [],
+ "events": [],
"key": "foo",
"projectVersion": "1.0",
},
- Object {
+ {
"date": "2017-03-01T09:36:01+0100",
- "events": Array [],
+ "events": [],
"key": "foo",
"projectVersion": "1.0",
},
- Object {
+ {
"date": "2017-03-01T09:36:01+0100",
- "events": Array [],
+ "events": [],
"key": "foo",
"projectVersion": "1.0",
},
- Object {
+ {
"date": "2017-03-01T09:36:01+0100",
- "events": Array [],
+ "events": [],
"key": "foo",
"projectVersion": "1.0",
},
]
}
branch={
- Object {
+ {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": true,
@@ -1890,46 +1890,46 @@ exports[`project overview should render correctly 1`] = `
}
}
component={
- Object {
- "breadcrumbs": Array [
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [
+ {
+ "breadcrumbs": [],
"key": "foo",
"name": "MyProject",
"qualifier": "TRK",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
},
],
"key": "foo",
"name": "Foo",
"qualifier": "TRK",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
detectedCIOnLastAnalysis={true}
@@ -1937,10 +1937,10 @@ exports[`project overview should render correctly 1`] = `
loadingHistory={false}
loadingStatus={false}
measures={
- Array [
- Object {
+ [
+ {
"bestValue": true,
- "metric": Object {
+ "metric": {
"id": "alert_status",
"key": "alert_status",
"name": "alert_status",
@@ -1949,9 +1949,9 @@ exports[`project overview should render correctly 1`] = `
"period": undefined,
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
- "metric": Object {
+ "metric": {
"id": "quality_gate_details",
"key": "quality_gate_details",
"name": "quality_gate_details",
@@ -1960,9 +1960,9 @@ exports[`project overview should render correctly 1`] = `
"period": undefined,
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
- "metric": Object {
+ "metric": {
"id": "bugs",
"key": "bugs",
"name": "bugs",
@@ -1971,25 +1971,25 @@ exports[`project overview should render correctly 1`] = `
"period": undefined,
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "new_bugs",
"key": "new_bugs",
"name": "new_bugs",
"type": "INT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
- "metric": Object {
+ "metric": {
"id": "reliability_rating",
"key": "reliability_rating",
"name": "reliability_rating",
@@ -1998,25 +1998,25 @@ exports[`project overview should render correctly 1`] = `
"period": undefined,
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "new_reliability_rating",
"key": "new_reliability_rating",
"name": "new_reliability_rating",
"type": "RATING",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
- "metric": Object {
+ "metric": {
"id": "vulnerabilities",
"key": "vulnerabilities",
"name": "vulnerabilities",
@@ -2025,25 +2025,25 @@ exports[`project overview should render correctly 1`] = `
"period": undefined,
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "new_vulnerabilities",
"key": "new_vulnerabilities",
"name": "new_vulnerabilities",
"type": "INT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
- "metric": Object {
+ "metric": {
"id": "security_rating",
"key": "security_rating",
"name": "security_rating",
@@ -2052,25 +2052,25 @@ exports[`project overview should render correctly 1`] = `
"period": undefined,
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "new_security_rating",
"key": "new_security_rating",
"name": "new_security_rating",
"type": "RATING",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
- "metric": Object {
+ "metric": {
"id": "security_hotspots",
"key": "security_hotspots",
"name": "security_hotspots",
@@ -2079,25 +2079,25 @@ exports[`project overview should render correctly 1`] = `
"period": undefined,
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "new_security_hotspots",
"key": "new_security_hotspots",
"name": "new_security_hotspots",
"type": "INT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
- "metric": Object {
+ "metric": {
"id": "security_hotspots_reviewed",
"key": "security_hotspots_reviewed",
"name": "security_hotspots_reviewed",
@@ -2106,25 +2106,25 @@ exports[`project overview should render correctly 1`] = `
"period": undefined,
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "new_security_hotspots_reviewed",
"key": "new_security_hotspots_reviewed",
"name": "new_security_hotspots_reviewed",
"type": "INT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
- "metric": Object {
+ "metric": {
"id": "security_review_rating",
"key": "security_review_rating",
"name": "security_review_rating",
@@ -2133,25 +2133,25 @@ exports[`project overview should render correctly 1`] = `
"period": undefined,
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "new_security_review_rating",
"key": "new_security_review_rating",
"name": "new_security_review_rating",
"type": "RATING",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
- "metric": Object {
+ "metric": {
"id": "code_smells",
"key": "code_smells",
"name": "code_smells",
@@ -2160,25 +2160,25 @@ exports[`project overview should render correctly 1`] = `
"period": undefined,
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "new_code_smells",
"key": "new_code_smells",
"name": "new_code_smells",
"type": "INT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
- "metric": Object {
+ "metric": {
"id": "sqale_rating",
"key": "sqale_rating",
"name": "sqale_rating",
@@ -2187,25 +2187,25 @@ exports[`project overview should render correctly 1`] = `
"period": undefined,
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "new_maintainability_rating",
"key": "new_maintainability_rating",
"name": "new_maintainability_rating",
"type": "RATING",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
- "metric": Object {
+ "metric": {
"id": "sqale_index",
"key": "sqale_index",
"name": "sqale_index",
@@ -2214,25 +2214,25 @@ exports[`project overview should render correctly 1`] = `
"period": undefined,
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "new_technical_debt",
"key": "new_technical_debt",
"name": "new_technical_debt",
"type": "INT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
- "metric": Object {
+ "metric": {
"id": "coverage",
"key": "coverage",
"name": "coverage",
@@ -2241,25 +2241,25 @@ exports[`project overview should render correctly 1`] = `
"period": undefined,
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "new_coverage",
"key": "new_coverage",
"name": "new_coverage",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
- "metric": Object {
+ "metric": {
"id": "lines_to_cover",
"key": "lines_to_cover",
"name": "lines_to_cover",
@@ -2268,25 +2268,25 @@ exports[`project overview should render correctly 1`] = `
"period": undefined,
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "new_lines_to_cover",
"key": "new_lines_to_cover",
"name": "new_lines_to_cover",
"type": "INT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
- "metric": Object {
+ "metric": {
"id": "tests",
"key": "tests",
"name": "tests",
@@ -2295,9 +2295,9 @@ exports[`project overview should render correctly 1`] = `
"period": undefined,
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
- "metric": Object {
+ "metric": {
"id": "duplicated_lines_density",
"key": "duplicated_lines_density",
"name": "duplicated_lines_density",
@@ -2306,25 +2306,25 @@ exports[`project overview should render correctly 1`] = `
"period": undefined,
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "new_duplicated_lines_density",
"key": "new_duplicated_lines_density",
"name": "new_duplicated_lines_density",
"type": "INT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
- "metric": Object {
+ "metric": {
"id": "duplicated_blocks",
"key": "duplicated_blocks",
"name": "duplicated_blocks",
@@ -2333,9 +2333,9 @@ exports[`project overview should render correctly 1`] = `
"period": undefined,
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
- "metric": Object {
+ "metric": {
"id": "ncloc",
"key": "ncloc",
"name": "ncloc",
@@ -2344,9 +2344,9 @@ exports[`project overview should render correctly 1`] = `
"period": undefined,
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
- "metric": Object {
+ "metric": {
"id": "ncloc_language_distribution",
"key": "ncloc_language_distribution",
"name": "ncloc_language_distribution",
@@ -2355,9 +2355,9 @@ exports[`project overview should render correctly 1`] = `
"period": undefined,
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
- "metric": Object {
+ "metric": {
"id": "projects",
"key": "projects",
"name": "projects",
@@ -2366,9 +2366,9 @@ exports[`project overview should render correctly 1`] = `
"period": undefined,
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
- "metric": Object {
+ "metric": {
"id": "lines",
"key": "lines",
"name": "lines",
@@ -2377,16 +2377,16 @@ exports[`project overview should render correctly 1`] = `
"period": undefined,
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "new_lines",
"key": "new_lines",
"name": "new_lines",
"type": "INT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
@@ -2396,55 +2396,55 @@ exports[`project overview should render correctly 1`] = `
]
}
measuresHistory={
- Array [
- Object {
- "history": Array [
- Object {
+ [
+ {
+ "history": [
+ {
"date": "PARSED:2019-01-05",
"value": "2.0",
},
],
"metric": "bugs",
},
- Object {
- "history": Array [
- Object {
+ {
+ "history": [
+ {
"date": "PARSED:2019-01-05",
"value": "0",
},
],
"metric": "vulnerabilities",
},
- Object {
- "history": Array [
- Object {
+ {
+ "history": [
+ {
"date": "PARSED:2019-01-01",
"value": "1.0",
},
],
"metric": "sqale_index",
},
- Object {
- "history": Array [
- Object {
+ {
+ "history": [
+ {
"date": "PARSED:2019-01-02",
"value": "1.0",
},
],
"metric": "duplicated_lines_density",
},
- Object {
- "history": Array [
- Object {
+ {
+ "history": [
+ {
"date": "PARSED:2019-01-03",
"value": "10000",
},
],
"metric": "ncloc",
},
- Object {
- "history": Array [
- Object {
+ {
+ "history": [
+ {
"date": "PARSED:2019-01-04",
"value": "95.5",
},
@@ -2454,212 +2454,212 @@ exports[`project overview should render correctly 1`] = `
]
}
metrics={
- Array [
- Object {
+ [
+ {
"id": "alert_status",
"key": "alert_status",
"name": "alert_status",
"type": "INT",
},
- Object {
+ {
"id": "quality_gate_details",
"key": "quality_gate_details",
"name": "quality_gate_details",
"type": "INT",
},
- Object {
+ {
"id": "bugs",
"key": "bugs",
"name": "bugs",
"type": "INT",
},
- Object {
+ {
"id": "new_bugs",
"key": "new_bugs",
"name": "new_bugs",
"type": "INT",
},
- Object {
+ {
"id": "reliability_rating",
"key": "reliability_rating",
"name": "reliability_rating",
"type": "RATING",
},
- Object {
+ {
"id": "new_reliability_rating",
"key": "new_reliability_rating",
"name": "new_reliability_rating",
"type": "RATING",
},
- Object {
+ {
"id": "vulnerabilities",
"key": "vulnerabilities",
"name": "vulnerabilities",
"type": "INT",
},
- Object {
+ {
"id": "new_vulnerabilities",
"key": "new_vulnerabilities",
"name": "new_vulnerabilities",
"type": "INT",
},
- Object {
+ {
"id": "security_rating",
"key": "security_rating",
"name": "security_rating",
"type": "RATING",
},
- Object {
+ {
"id": "new_security_rating",
"key": "new_security_rating",
"name": "new_security_rating",
"type": "RATING",
},
- Object {
+ {
"id": "security_hotspots",
"key": "security_hotspots",
"name": "security_hotspots",
"type": "INT",
},
- Object {
+ {
"id": "new_security_hotspots",
"key": "new_security_hotspots",
"name": "new_security_hotspots",
"type": "INT",
},
- Object {
+ {
"id": "security_hotspots_reviewed",
"key": "security_hotspots_reviewed",
"name": "security_hotspots_reviewed",
"type": "INT",
},
- Object {
+ {
"id": "new_security_hotspots_reviewed",
"key": "new_security_hotspots_reviewed",
"name": "new_security_hotspots_reviewed",
"type": "INT",
},
- Object {
+ {
"id": "security_review_rating",
"key": "security_review_rating",
"name": "security_review_rating",
"type": "RATING",
},
- Object {
+ {
"id": "new_security_review_rating",
"key": "new_security_review_rating",
"name": "new_security_review_rating",
"type": "RATING",
},
- Object {
+ {
"id": "code_smells",
"key": "code_smells",
"name": "code_smells",
"type": "INT",
},
- Object {
+ {
"id": "new_code_smells",
"key": "new_code_smells",
"name": "new_code_smells",
"type": "INT",
},
- Object {
+ {
"id": "sqale_rating",
"key": "sqale_rating",
"name": "sqale_rating",
"type": "RATING",
},
- Object {
+ {
"id": "new_maintainability_rating",
"key": "new_maintainability_rating",
"name": "new_maintainability_rating",
"type": "RATING",
},
- Object {
+ {
"id": "sqale_index",
"key": "sqale_index",
"name": "sqale_index",
"type": "INT",
},
- Object {
+ {
"id": "new_technical_debt",
"key": "new_technical_debt",
"name": "new_technical_debt",
"type": "INT",
},
- Object {
+ {
"id": "coverage",
"key": "coverage",
"name": "coverage",
"type": "PERCENT",
},
- Object {
+ {
"id": "new_coverage",
"key": "new_coverage",
"name": "new_coverage",
"type": "PERCENT",
},
- Object {
+ {
"id": "lines_to_cover",
"key": "lines_to_cover",
"name": "lines_to_cover",
"type": "INT",
},
- Object {
+ {
"id": "new_lines_to_cover",
"key": "new_lines_to_cover",
"name": "new_lines_to_cover",
"type": "INT",
},
- Object {
+ {
"id": "tests",
"key": "tests",
"name": "tests",
"type": "INT",
},
- Object {
+ {
"id": "duplicated_lines_density",
"key": "duplicated_lines_density",
"name": "duplicated_lines_density",
"type": "INT",
},
- Object {
+ {
"id": "new_duplicated_lines_density",
"key": "new_duplicated_lines_density",
"name": "new_duplicated_lines_density",
"type": "INT",
},
- Object {
+ {
"id": "duplicated_blocks",
"key": "duplicated_blocks",
"name": "duplicated_blocks",
"type": "INT",
},
- Object {
+ {
"id": "ncloc",
"key": "ncloc",
"name": "ncloc",
"type": "INT",
},
- Object {
+ {
"id": "ncloc_language_distribution",
"key": "ncloc_language_distribution",
"name": "ncloc_language_distribution",
"type": "INT",
},
- Object {
+ {
"id": "projects",
"key": "projects",
"name": "projects",
"type": "INT",
},
- Object {
+ {
"id": "lines",
"key": "lines",
"name": "lines",
"type": "INT",
},
- Object {
+ {
"id": "new_lines",
"key": "new_lines",
"name": "new_lines",
@@ -2670,29 +2670,29 @@ exports[`project overview should render correctly 1`] = `
onGraphChange={[Function]}
projectIsEmpty={false}
qgStatuses={
- Array [
- Object {
- "branchLike": Object {
+ [
+ {
+ "branchLike": {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": true,
"name": "master",
},
- "failedConditions": Array [
- Object {
+ "failedConditions": [
+ {
"actual": "2",
"error": "1.0",
"level": "ERROR",
- "measure": Object {
+ "measure": {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "new_bugs",
"key": "new_bugs",
"name": "new_bugs",
"type": "INT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
@@ -2703,13 +2703,13 @@ exports[`project overview should render correctly 1`] = `
"op": "GT",
"period": 1,
},
- Object {
+ {
"actual": "5",
"error": "2.0",
"level": "ERROR",
- "measure": Object {
+ "measure": {
"bestValue": true,
- "metric": Object {
+ "metric": {
"id": "bugs",
"key": "bugs",
"name": "bugs",
diff --git a/server/sonar-web/src/main/js/apps/overview/branches/__tests__/__snapshots__/BranchOverviewRenderer-test.tsx.snap b/server/sonar-web/src/main/js/apps/overview/branches/__tests__/__snapshots__/BranchOverviewRenderer-test.tsx.snap
index 0d2d9dfaf80..f6702c71ce8 100644
--- a/server/sonar-web/src/main/js/apps/overview/branches/__tests__/__snapshots__/BranchOverviewRenderer-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/overview/branches/__tests__/__snapshots__/BranchOverviewRenderer-test.tsx.snap
@@ -4,25 +4,25 @@ exports[`should render correctly: default 1`] = `
<Fragment>
<withCurrentUserContext(FirstAnalysisNextStepsNotif)
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "TRK",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
/>
@@ -43,25 +43,25 @@ exports[`should render correctly: default 1`] = `
>
<Memo(QualityGatePanel)
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "TRK",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
loading={false}
@@ -75,7 +75,7 @@ exports[`should render correctly: default 1`] = `
>
<withRouter(Component)
branch={
- Object {
+ {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": true,
@@ -83,40 +83,40 @@ exports[`should render correctly: default 1`] = `
}
}
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "TRK",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
loading={false}
measures={
- Array [
- Object {
+ [
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "coverage",
"key": "coverage",
"name": "coverage",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
@@ -128,7 +128,7 @@ exports[`should render correctly: default 1`] = `
/>
<Memo(ActivityPanel)
branchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": true,
@@ -136,31 +136,31 @@ exports[`should render correctly: default 1`] = `
}
}
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "TRK",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
graph="issues"
loading={false}
- measuresHistory={Array []}
- metrics={Array []}
+ measuresHistory={[]}
+ metrics={[]}
onGraphChange={[MockFunction]}
/>
</div>
@@ -175,25 +175,25 @@ exports[`should render correctly: empty project 1`] = `
<Fragment>
<withCurrentUserContext(FirstAnalysisNextStepsNotif)
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "TRK",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
/>
@@ -208,7 +208,7 @@ exports[`should render correctly: empty project 1`] = `
/>
<Memo(NoCodeWarning)
branchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": true,
@@ -216,39 +216,39 @@ exports[`should render correctly: empty project 1`] = `
}
}
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "TRK",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
measures={
- Array [
- Object {
+ [
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "coverage",
"key": "coverage",
"name": "coverage",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
@@ -267,25 +267,25 @@ exports[`should render correctly: loading 1`] = `
<Fragment>
<withCurrentUserContext(FirstAnalysisNextStepsNotif)
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "TRK",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
/>
@@ -306,25 +306,25 @@ exports[`should render correctly: loading 1`] = `
>
<Memo(QualityGatePanel)
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "TRK",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
loading={true}
@@ -338,7 +338,7 @@ exports[`should render correctly: loading 1`] = `
>
<withRouter(Component)
branch={
- Object {
+ {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": true,
@@ -346,40 +346,40 @@ exports[`should render correctly: loading 1`] = `
}
}
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "TRK",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
loading={true}
measures={
- Array [
- Object {
+ [
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "coverage",
"key": "coverage",
"name": "coverage",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
@@ -391,7 +391,7 @@ exports[`should render correctly: loading 1`] = `
/>
<Memo(ActivityPanel)
branchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": true,
@@ -399,31 +399,31 @@ exports[`should render correctly: loading 1`] = `
}
}
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "TRK",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
graph="issues"
loading={true}
- measuresHistory={Array []}
- metrics={Array []}
+ measuresHistory={[]}
+ metrics={[]}
onGraphChange={[MockFunction]}
/>
</div>
diff --git a/server/sonar-web/src/main/js/apps/overview/branches/__tests__/__snapshots__/DebtValue-test.tsx.snap b/server/sonar-web/src/main/js/apps/overview/branches/__tests__/__snapshots__/DebtValue-test.tsx.snap
index ad01e43c191..de8bbe82a94 100644
--- a/server/sonar-web/src/main/js/apps/overview/branches/__tests__/__snapshots__/DebtValue-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/overview/branches/__tests__/__snapshots__/DebtValue-test.tsx.snap
@@ -5,7 +5,7 @@ exports[`should render correctly 1`] = `
<DrilldownLink
ariaLabel="overview.see_more_details_on_x_of_y.work_duration.x_minutes.1.sqale_index"
branchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": true,
@@ -31,7 +31,7 @@ exports[`should render correctly 2`] = `
<DrilldownLink
ariaLabel="overview.see_more_details_on_x_of_y.work_duration.x_minutes.1.new_technical_debt"
branchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": true,
diff --git a/server/sonar-web/src/main/js/apps/overview/branches/__tests__/__snapshots__/DrilldownMeasureValue-test.tsx.snap b/server/sonar-web/src/main/js/apps/overview/branches/__tests__/__snapshots__/DrilldownMeasureValue-test.tsx.snap
index fbea0639b08..ffa69935ea3 100644
--- a/server/sonar-web/src/main/js/apps/overview/branches/__tests__/__snapshots__/DrilldownMeasureValue-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/overview/branches/__tests__/__snapshots__/DrilldownMeasureValue-test.tsx.snap
@@ -8,7 +8,7 @@ exports[`should render correctly: default 1`] = `
<DrilldownLink
ariaLabel="overview.see_more_details_on_x_y.1.0.metric.tests.name"
branchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": true,
diff --git a/server/sonar-web/src/main/js/apps/overview/branches/__tests__/__snapshots__/Event-test.tsx.snap b/server/sonar-web/src/main/js/apps/overview/branches/__tests__/__snapshots__/Event-test.tsx.snap
index 0c7d0c11949..575f912e98b 100644
--- a/server/sonar-web/src/main/js/apps/overview/branches/__tests__/__snapshots__/Event-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/overview/branches/__tests__/__snapshots__/Event-test.tsx.snap
@@ -41,7 +41,7 @@ exports[`should render rich quality gate event 1`] = `
defaultMessage="event.quality_gate.still_x"
id="event.quality_gate.still_x"
values={
- Object {
+ {
"status": <Level
level="ERROR"
small={true}
diff --git a/server/sonar-web/src/main/js/apps/overview/branches/__tests__/__snapshots__/FirstAnalysisNextStepsNotif-test.tsx.snap b/server/sonar-web/src/main/js/apps/overview/branches/__tests__/__snapshots__/FirstAnalysisNextStepsNotif-test.tsx.snap
index 76e429a85c8..2b604303996 100644
--- a/server/sonar-web/src/main/js/apps/overview/branches/__tests__/__snapshots__/FirstAnalysisNextStepsNotif-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/overview/branches/__tests__/__snapshots__/FirstAnalysisNextStepsNotif-test.tsx.snap
@@ -9,10 +9,10 @@ exports[`should render correctly: show prompt to configure CI 1`] = `
defaultMessage="overview.project.next_steps.set_up_ci"
id="overview.project.next_steps.set_up_ci"
values={
- Object {
+ {
"link": <ForwardRef(Link)
to={
- Object {
+ {
"pathname": "/tutorials",
"search": "?id=my-project",
}
@@ -35,10 +35,10 @@ exports[`should render correctly: show prompt to configure PR decoration + CI, p
defaultMessage="overview.project.next_steps.set_up_pr_deco_and_ci.admin"
id="overview.project.next_steps.set_up_pr_deco_and_ci.admin"
values={
- Object {
+ {
"link_ci": <ForwardRef(Link)
to={
- Object {
+ {
"pathname": "/tutorials",
"search": "?id=my-project",
}
@@ -48,7 +48,7 @@ exports[`should render correctly: show prompt to configure PR decoration + CI, p
</ForwardRef(Link)>,
"link_project_settings": <ForwardRef(Link)
to={
- Object {
+ {
"pathname": "/project/settings",
"search": "?id=my-project&category=pull_request_decoration_binding",
}
@@ -71,10 +71,10 @@ exports[`should render correctly: show prompt to configure PR decoration + CI, r
defaultMessage="overview.project.next_steps.set_up_pr_deco_and_ci"
id="overview.project.next_steps.set_up_pr_deco_and_ci"
values={
- Object {
+ {
"link_ci": <ForwardRef(Link)
to={
- Object {
+ {
"pathname": "/tutorials",
"search": "?id=my-project",
}
@@ -97,10 +97,10 @@ exports[`should render correctly: show prompt to configure PR decoration, projec
defaultMessage="overview.project.next_steps.set_up_pr_deco.admin"
id="overview.project.next_steps.set_up_pr_deco.admin"
values={
- Object {
+ {
"link_project_settings": <ForwardRef(Link)
to={
- Object {
+ {
"pathname": "/project/settings",
"search": "?id=my-project&category=pull_request_decoration_binding",
}
diff --git a/server/sonar-web/src/main/js/apps/overview/branches/__tests__/__snapshots__/LeakPeriodInfo-test.tsx.snap b/server/sonar-web/src/main/js/apps/overview/branches/__tests__/__snapshots__/LeakPeriodInfo-test.tsx.snap
index 1feb0477f15..06c90039f64 100644
--- a/server/sonar-web/src/main/js/apps/overview/branches/__tests__/__snapshots__/LeakPeriodInfo-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/overview/branches/__tests__/__snapshots__/LeakPeriodInfo-test.tsx.snap
@@ -3,7 +3,7 @@
exports[`renders correctly for applications 1`] = `
<Memo(ApplicationLeakPeriodInfo)
leakPeriod={
- Object {
+ {
"date": "2017-10-01",
"project": "foo",
"projectName": "Foo",
@@ -15,7 +15,7 @@ exports[`renders correctly for applications 1`] = `
exports[`renders correctly for projects 1`] = `
<Memo(injectIntl(ProjectLeakPeriodInfo))
leakPeriod={
- Object {
+ {
"date": "2019-04-23T02:12:32+0100",
"index": 0,
"mode": "previous_version",
diff --git a/server/sonar-web/src/main/js/apps/overview/branches/__tests__/__snapshots__/MeasuresPanel-test.tsx.snap b/server/sonar-web/src/main/js/apps/overview/branches/__tests__/__snapshots__/MeasuresPanel-test.tsx.snap
index 5d512f3ce4c..3c2c3e2d22d 100644
--- a/server/sonar-web/src/main/js/apps/overview/branches/__tests__/__snapshots__/MeasuresPanel-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/overview/branches/__tests__/__snapshots__/MeasuresPanel-test.tsx.snap
@@ -15,7 +15,7 @@ exports[`should render correctly for applications: default 1`] = `
</h2>
<withCurrentUserContext(withAppStateContext(ComponentReportActions))
branch={
- Object {
+ {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": true,
@@ -23,25 +23,25 @@ exports[`should render correctly for applications: default 1`] = `
}
}
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "APP",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
/>
@@ -50,8 +50,8 @@ exports[`should render correctly for applications: default 1`] = `
onSelect={[Function]}
selected="new"
tabs={
- Array [
- Object {
+ [
+ {
"key": "new",
"label": <div
className="text-left overview-measures-tab"
@@ -63,7 +63,7 @@ exports[`should render correctly for applications: default 1`] = `
</span>
</div>,
},
- Object {
+ {
"key": "overall",
"label": <div
className="text-left overview-measures-tab"
@@ -71,7 +71,7 @@ exports[`should render correctly for applications: default 1`] = `
<span
className="text-bold"
style={
- Object {
+ {
"position": "absolute",
"top": 16,
}
@@ -92,7 +92,7 @@ exports[`should render correctly for applications: default 1`] = `
>
<MeasuresPanelIssueMeasureRow
branchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": true,
@@ -100,89 +100,89 @@ exports[`should render correctly for applications: default 1`] = `
}
}
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "APP",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
isNewCodeTab={true}
key="BUG"
measures={
- Array [
- Object {
+ [
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "coverage",
"key": "coverage",
"name": "coverage",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "new_coverage",
"key": "new_coverage",
"name": "new_coverage",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "bugs",
"key": "bugs",
"name": "bugs",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "new_bugs",
"key": "new_bugs",
"name": "new_bugs",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
@@ -195,7 +195,7 @@ exports[`should render correctly for applications: default 1`] = `
/>
<MeasuresPanelIssueMeasureRow
branchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": true,
@@ -203,89 +203,89 @@ exports[`should render correctly for applications: default 1`] = `
}
}
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "APP",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
isNewCodeTab={true}
key="VULNERABILITY"
measures={
- Array [
- Object {
+ [
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "coverage",
"key": "coverage",
"name": "coverage",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "new_coverage",
"key": "new_coverage",
"name": "new_coverage",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "bugs",
"key": "bugs",
"name": "bugs",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "new_bugs",
"key": "new_bugs",
"name": "new_bugs",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
@@ -298,7 +298,7 @@ exports[`should render correctly for applications: default 1`] = `
/>
<MeasuresPanelIssueMeasureRow
branchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": true,
@@ -306,89 +306,89 @@ exports[`should render correctly for applications: default 1`] = `
}
}
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "APP",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
isNewCodeTab={true}
key="SECURITY_HOTSPOT"
measures={
- Array [
- Object {
+ [
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "coverage",
"key": "coverage",
"name": "coverage",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "new_coverage",
"key": "new_coverage",
"name": "new_coverage",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "bugs",
"key": "bugs",
"name": "bugs",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "new_bugs",
"key": "new_bugs",
"name": "new_bugs",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
@@ -401,7 +401,7 @@ exports[`should render correctly for applications: default 1`] = `
/>
<MeasuresPanelIssueMeasureRow
branchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": true,
@@ -409,89 +409,89 @@ exports[`should render correctly for applications: default 1`] = `
}
}
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "APP",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
isNewCodeTab={true}
key="CODE_SMELL"
measures={
- Array [
- Object {
+ [
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "coverage",
"key": "coverage",
"name": "coverage",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "new_coverage",
"key": "new_coverage",
"name": "new_coverage",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "bugs",
"key": "bugs",
"name": "bugs",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "new_bugs",
"key": "new_bugs",
"name": "new_bugs",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
@@ -511,7 +511,7 @@ exports[`should render correctly for applications: default 1`] = `
>
<MeasurementLabel
branchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": true,
@@ -520,87 +520,87 @@ exports[`should render correctly for applications: default 1`] = `
}
centered={true}
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "APP",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
measures={
- Array [
- Object {
+ [
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "coverage",
"key": "coverage",
"name": "coverage",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "new_coverage",
"key": "new_coverage",
"name": "new_coverage",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "bugs",
"key": "bugs",
"name": "bugs",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "new_bugs",
"key": "new_bugs",
"name": "new_bugs",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
@@ -618,7 +618,7 @@ exports[`should render correctly for applications: default 1`] = `
>
<MeasurementLabel
branchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": true,
@@ -627,87 +627,87 @@ exports[`should render correctly for applications: default 1`] = `
}
centered={true}
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "APP",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
measures={
- Array [
- Object {
+ [
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "coverage",
"key": "coverage",
"name": "coverage",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "new_coverage",
"key": "new_coverage",
"name": "new_coverage",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "bugs",
"key": "bugs",
"name": "bugs",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "new_bugs",
"key": "new_bugs",
"name": "new_bugs",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
@@ -740,7 +740,7 @@ exports[`should render correctly for applications: overall 1`] = `
</h2>
<withCurrentUserContext(withAppStateContext(ComponentReportActions))
branch={
- Object {
+ {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": true,
@@ -748,25 +748,25 @@ exports[`should render correctly for applications: overall 1`] = `
}
}
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "APP",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
/>
@@ -775,8 +775,8 @@ exports[`should render correctly for applications: overall 1`] = `
onSelect={[Function]}
selected="overall"
tabs={
- Array [
- Object {
+ [
+ {
"key": "new",
"label": <div
className="text-left overview-measures-tab"
@@ -788,7 +788,7 @@ exports[`should render correctly for applications: overall 1`] = `
</span>
</div>,
},
- Object {
+ {
"key": "overall",
"label": <div
className="text-left overview-measures-tab"
@@ -796,7 +796,7 @@ exports[`should render correctly for applications: overall 1`] = `
<span
className="text-bold"
style={
- Object {
+ {
"position": "absolute",
"top": 16,
}
@@ -817,7 +817,7 @@ exports[`should render correctly for applications: overall 1`] = `
>
<MeasuresPanelIssueMeasureRow
branchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": true,
@@ -825,89 +825,89 @@ exports[`should render correctly for applications: overall 1`] = `
}
}
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "APP",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
isNewCodeTab={false}
key="BUG"
measures={
- Array [
- Object {
+ [
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "coverage",
"key": "coverage",
"name": "coverage",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "new_coverage",
"key": "new_coverage",
"name": "new_coverage",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "bugs",
"key": "bugs",
"name": "bugs",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "new_bugs",
"key": "new_bugs",
"name": "new_bugs",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
@@ -920,7 +920,7 @@ exports[`should render correctly for applications: overall 1`] = `
/>
<MeasuresPanelIssueMeasureRow
branchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": true,
@@ -928,89 +928,89 @@ exports[`should render correctly for applications: overall 1`] = `
}
}
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "APP",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
isNewCodeTab={false}
key="VULNERABILITY"
measures={
- Array [
- Object {
+ [
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "coverage",
"key": "coverage",
"name": "coverage",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "new_coverage",
"key": "new_coverage",
"name": "new_coverage",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "bugs",
"key": "bugs",
"name": "bugs",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "new_bugs",
"key": "new_bugs",
"name": "new_bugs",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
@@ -1023,7 +1023,7 @@ exports[`should render correctly for applications: overall 1`] = `
/>
<MeasuresPanelIssueMeasureRow
branchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": true,
@@ -1031,89 +1031,89 @@ exports[`should render correctly for applications: overall 1`] = `
}
}
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "APP",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
isNewCodeTab={false}
key="SECURITY_HOTSPOT"
measures={
- Array [
- Object {
+ [
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "coverage",
"key": "coverage",
"name": "coverage",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "new_coverage",
"key": "new_coverage",
"name": "new_coverage",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "bugs",
"key": "bugs",
"name": "bugs",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "new_bugs",
"key": "new_bugs",
"name": "new_bugs",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
@@ -1126,7 +1126,7 @@ exports[`should render correctly for applications: overall 1`] = `
/>
<MeasuresPanelIssueMeasureRow
branchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": true,
@@ -1134,89 +1134,89 @@ exports[`should render correctly for applications: overall 1`] = `
}
}
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "APP",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
isNewCodeTab={false}
key="CODE_SMELL"
measures={
- Array [
- Object {
+ [
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "coverage",
"key": "coverage",
"name": "coverage",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "new_coverage",
"key": "new_coverage",
"name": "new_coverage",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "bugs",
"key": "bugs",
"name": "bugs",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "new_bugs",
"key": "new_bugs",
"name": "new_bugs",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
@@ -1236,7 +1236,7 @@ exports[`should render correctly for applications: overall 1`] = `
>
<MeasurementLabel
branchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": true,
@@ -1245,87 +1245,87 @@ exports[`should render correctly for applications: overall 1`] = `
}
centered={false}
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "APP",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
measures={
- Array [
- Object {
+ [
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "coverage",
"key": "coverage",
"name": "coverage",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "new_coverage",
"key": "new_coverage",
"name": "new_coverage",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "bugs",
"key": "bugs",
"name": "bugs",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "new_bugs",
"key": "new_bugs",
"name": "new_bugs",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
@@ -1342,7 +1342,7 @@ exports[`should render correctly for applications: overall 1`] = `
>
<DrilldownMeasureValue
branchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": true,
@@ -1350,87 +1350,87 @@ exports[`should render correctly for applications: overall 1`] = `
}
}
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "APP",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
measures={
- Array [
- Object {
+ [
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "coverage",
"key": "coverage",
"name": "coverage",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "new_coverage",
"key": "new_coverage",
"name": "new_coverage",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "bugs",
"key": "bugs",
"name": "bugs",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "new_bugs",
"key": "new_bugs",
"name": "new_bugs",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
@@ -1448,7 +1448,7 @@ exports[`should render correctly for applications: overall 1`] = `
>
<MeasurementLabel
branchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": true,
@@ -1457,87 +1457,87 @@ exports[`should render correctly for applications: overall 1`] = `
}
centered={false}
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "APP",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
measures={
- Array [
- Object {
+ [
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "coverage",
"key": "coverage",
"name": "coverage",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "new_coverage",
"key": "new_coverage",
"name": "new_coverage",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "bugs",
"key": "bugs",
"name": "bugs",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "new_bugs",
"key": "new_bugs",
"name": "new_bugs",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
@@ -1554,7 +1554,7 @@ exports[`should render correctly for applications: overall 1`] = `
>
<DrilldownMeasureValue
branchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": true,
@@ -1562,87 +1562,87 @@ exports[`should render correctly for applications: overall 1`] = `
}
}
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "APP",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
measures={
- Array [
- Object {
+ [
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "coverage",
"key": "coverage",
"name": "coverage",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "new_coverage",
"key": "new_coverage",
"name": "new_coverage",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "bugs",
"key": "bugs",
"name": "bugs",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "new_bugs",
"key": "new_bugs",
"name": "new_bugs",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
@@ -1675,7 +1675,7 @@ exports[`should render correctly for projects: default 1`] = `
</h2>
<withCurrentUserContext(withAppStateContext(ComponentReportActions))
branch={
- Object {
+ {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": true,
@@ -1683,25 +1683,25 @@ exports[`should render correctly for projects: default 1`] = `
}
}
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "TRK",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
/>
@@ -1710,8 +1710,8 @@ exports[`should render correctly for projects: default 1`] = `
onSelect={[Function]}
selected="new"
tabs={
- Array [
- Object {
+ [
+ {
"key": "new",
"label": <div
className="text-left overview-measures-tab"
@@ -1723,7 +1723,7 @@ exports[`should render correctly for projects: default 1`] = `
</span>
</div>,
},
- Object {
+ {
"key": "overall",
"label": <div
className="text-left overview-measures-tab"
@@ -1731,7 +1731,7 @@ exports[`should render correctly for projects: default 1`] = `
<span
className="text-bold"
style={
- Object {
+ {
"position": "absolute",
"top": 16,
}
@@ -1752,7 +1752,7 @@ exports[`should render correctly for projects: default 1`] = `
>
<MeasuresPanelIssueMeasureRow
branchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": true,
@@ -1760,89 +1760,89 @@ exports[`should render correctly for projects: default 1`] = `
}
}
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "TRK",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
isNewCodeTab={true}
key="BUG"
measures={
- Array [
- Object {
+ [
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "coverage",
"key": "coverage",
"name": "coverage",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "new_coverage",
"key": "new_coverage",
"name": "new_coverage",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "bugs",
"key": "bugs",
"name": "bugs",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "new_bugs",
"key": "new_bugs",
"name": "new_bugs",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
@@ -1855,7 +1855,7 @@ exports[`should render correctly for projects: default 1`] = `
/>
<MeasuresPanelIssueMeasureRow
branchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": true,
@@ -1863,89 +1863,89 @@ exports[`should render correctly for projects: default 1`] = `
}
}
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "TRK",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
isNewCodeTab={true}
key="VULNERABILITY"
measures={
- Array [
- Object {
+ [
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "coverage",
"key": "coverage",
"name": "coverage",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "new_coverage",
"key": "new_coverage",
"name": "new_coverage",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "bugs",
"key": "bugs",
"name": "bugs",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "new_bugs",
"key": "new_bugs",
"name": "new_bugs",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
@@ -1958,7 +1958,7 @@ exports[`should render correctly for projects: default 1`] = `
/>
<MeasuresPanelIssueMeasureRow
branchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": true,
@@ -1966,89 +1966,89 @@ exports[`should render correctly for projects: default 1`] = `
}
}
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "TRK",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
isNewCodeTab={true}
key="SECURITY_HOTSPOT"
measures={
- Array [
- Object {
+ [
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "coverage",
"key": "coverage",
"name": "coverage",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "new_coverage",
"key": "new_coverage",
"name": "new_coverage",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "bugs",
"key": "bugs",
"name": "bugs",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "new_bugs",
"key": "new_bugs",
"name": "new_bugs",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
@@ -2061,7 +2061,7 @@ exports[`should render correctly for projects: default 1`] = `
/>
<MeasuresPanelIssueMeasureRow
branchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": true,
@@ -2069,89 +2069,89 @@ exports[`should render correctly for projects: default 1`] = `
}
}
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "TRK",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
isNewCodeTab={true}
key="CODE_SMELL"
measures={
- Array [
- Object {
+ [
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "coverage",
"key": "coverage",
"name": "coverage",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "new_coverage",
"key": "new_coverage",
"name": "new_coverage",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "bugs",
"key": "bugs",
"name": "bugs",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "new_bugs",
"key": "new_bugs",
"name": "new_bugs",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
@@ -2171,7 +2171,7 @@ exports[`should render correctly for projects: default 1`] = `
>
<MeasurementLabel
branchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": true,
@@ -2180,87 +2180,87 @@ exports[`should render correctly for projects: default 1`] = `
}
centered={true}
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "TRK",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
measures={
- Array [
- Object {
+ [
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "coverage",
"key": "coverage",
"name": "coverage",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "new_coverage",
"key": "new_coverage",
"name": "new_coverage",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "bugs",
"key": "bugs",
"name": "bugs",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "new_bugs",
"key": "new_bugs",
"name": "new_bugs",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
@@ -2278,7 +2278,7 @@ exports[`should render correctly for projects: default 1`] = `
>
<MeasurementLabel
branchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": true,
@@ -2287,87 +2287,87 @@ exports[`should render correctly for projects: default 1`] = `
}
centered={true}
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "TRK",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
measures={
- Array [
- Object {
+ [
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "coverage",
"key": "coverage",
"name": "coverage",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "new_coverage",
"key": "new_coverage",
"name": "new_coverage",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "bugs",
"key": "bugs",
"name": "bugs",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "new_bugs",
"key": "new_bugs",
"name": "new_bugs",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
@@ -2400,7 +2400,7 @@ exports[`should render correctly for projects: overall 1`] = `
</h2>
<withCurrentUserContext(withAppStateContext(ComponentReportActions))
branch={
- Object {
+ {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": true,
@@ -2408,25 +2408,25 @@ exports[`should render correctly for projects: overall 1`] = `
}
}
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "TRK",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
/>
@@ -2435,8 +2435,8 @@ exports[`should render correctly for projects: overall 1`] = `
onSelect={[Function]}
selected="overall"
tabs={
- Array [
- Object {
+ [
+ {
"key": "new",
"label": <div
className="text-left overview-measures-tab"
@@ -2448,7 +2448,7 @@ exports[`should render correctly for projects: overall 1`] = `
</span>
</div>,
},
- Object {
+ {
"key": "overall",
"label": <div
className="text-left overview-measures-tab"
@@ -2456,7 +2456,7 @@ exports[`should render correctly for projects: overall 1`] = `
<span
className="text-bold"
style={
- Object {
+ {
"position": "absolute",
"top": 16,
}
@@ -2477,7 +2477,7 @@ exports[`should render correctly for projects: overall 1`] = `
>
<MeasuresPanelIssueMeasureRow
branchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": true,
@@ -2485,89 +2485,89 @@ exports[`should render correctly for projects: overall 1`] = `
}
}
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "TRK",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
isNewCodeTab={false}
key="BUG"
measures={
- Array [
- Object {
+ [
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "coverage",
"key": "coverage",
"name": "coverage",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "new_coverage",
"key": "new_coverage",
"name": "new_coverage",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "bugs",
"key": "bugs",
"name": "bugs",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "new_bugs",
"key": "new_bugs",
"name": "new_bugs",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
@@ -2580,7 +2580,7 @@ exports[`should render correctly for projects: overall 1`] = `
/>
<MeasuresPanelIssueMeasureRow
branchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": true,
@@ -2588,89 +2588,89 @@ exports[`should render correctly for projects: overall 1`] = `
}
}
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "TRK",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
isNewCodeTab={false}
key="VULNERABILITY"
measures={
- Array [
- Object {
+ [
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "coverage",
"key": "coverage",
"name": "coverage",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "new_coverage",
"key": "new_coverage",
"name": "new_coverage",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "bugs",
"key": "bugs",
"name": "bugs",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "new_bugs",
"key": "new_bugs",
"name": "new_bugs",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
@@ -2683,7 +2683,7 @@ exports[`should render correctly for projects: overall 1`] = `
/>
<MeasuresPanelIssueMeasureRow
branchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": true,
@@ -2691,89 +2691,89 @@ exports[`should render correctly for projects: overall 1`] = `
}
}
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "TRK",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
isNewCodeTab={false}
key="SECURITY_HOTSPOT"
measures={
- Array [
- Object {
+ [
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "coverage",
"key": "coverage",
"name": "coverage",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "new_coverage",
"key": "new_coverage",
"name": "new_coverage",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "bugs",
"key": "bugs",
"name": "bugs",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "new_bugs",
"key": "new_bugs",
"name": "new_bugs",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
@@ -2786,7 +2786,7 @@ exports[`should render correctly for projects: overall 1`] = `
/>
<MeasuresPanelIssueMeasureRow
branchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": true,
@@ -2794,89 +2794,89 @@ exports[`should render correctly for projects: overall 1`] = `
}
}
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "TRK",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
isNewCodeTab={false}
key="CODE_SMELL"
measures={
- Array [
- Object {
+ [
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "coverage",
"key": "coverage",
"name": "coverage",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "new_coverage",
"key": "new_coverage",
"name": "new_coverage",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "bugs",
"key": "bugs",
"name": "bugs",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "new_bugs",
"key": "new_bugs",
"name": "new_bugs",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
@@ -2896,7 +2896,7 @@ exports[`should render correctly for projects: overall 1`] = `
>
<MeasurementLabel
branchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": true,
@@ -2905,87 +2905,87 @@ exports[`should render correctly for projects: overall 1`] = `
}
centered={false}
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "TRK",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
measures={
- Array [
- Object {
+ [
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "coverage",
"key": "coverage",
"name": "coverage",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "new_coverage",
"key": "new_coverage",
"name": "new_coverage",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "bugs",
"key": "bugs",
"name": "bugs",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "new_bugs",
"key": "new_bugs",
"name": "new_bugs",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
@@ -3002,7 +3002,7 @@ exports[`should render correctly for projects: overall 1`] = `
>
<DrilldownMeasureValue
branchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": true,
@@ -3010,87 +3010,87 @@ exports[`should render correctly for projects: overall 1`] = `
}
}
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "TRK",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
measures={
- Array [
- Object {
+ [
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "coverage",
"key": "coverage",
"name": "coverage",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "new_coverage",
"key": "new_coverage",
"name": "new_coverage",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "bugs",
"key": "bugs",
"name": "bugs",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "new_bugs",
"key": "new_bugs",
"name": "new_bugs",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
@@ -3108,7 +3108,7 @@ exports[`should render correctly for projects: overall 1`] = `
>
<MeasurementLabel
branchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": true,
@@ -3117,87 +3117,87 @@ exports[`should render correctly for projects: overall 1`] = `
}
centered={false}
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "TRK",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
measures={
- Array [
- Object {
+ [
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "coverage",
"key": "coverage",
"name": "coverage",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "new_coverage",
"key": "new_coverage",
"name": "new_coverage",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "bugs",
"key": "bugs",
"name": "bugs",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "new_bugs",
"key": "new_bugs",
"name": "new_bugs",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
@@ -3214,7 +3214,7 @@ exports[`should render correctly for projects: overall 1`] = `
>
<DrilldownMeasureValue
branchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": true,
@@ -3222,87 +3222,87 @@ exports[`should render correctly for projects: overall 1`] = `
}
}
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "TRK",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
measures={
- Array [
- Object {
+ [
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "coverage",
"key": "coverage",
"name": "coverage",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "new_coverage",
"key": "new_coverage",
"name": "new_coverage",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "bugs",
"key": "bugs",
"name": "bugs",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "new_bugs",
"key": "new_bugs",
"name": "new_bugs",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
@@ -3335,7 +3335,7 @@ exports[`should render correctly if branch is misconfigured: hide settings 1`] =
</h2>
<withCurrentUserContext(withAppStateContext(ComponentReportActions))
branch={
- Object {
+ {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": false,
@@ -3343,25 +3343,25 @@ exports[`should render correctly if branch is misconfigured: hide settings 1`] =
}
}
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "TRK",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
/>
@@ -3370,8 +3370,8 @@ exports[`should render correctly if branch is misconfigured: hide settings 1`] =
onSelect={[Function]}
selected="new"
tabs={
- Array [
- Object {
+ [
+ {
"key": "new",
"label": <div
className="text-left overview-measures-tab"
@@ -3383,7 +3383,7 @@ exports[`should render correctly if branch is misconfigured: hide settings 1`] =
</span>
<LeakPeriodInfo
leakPeriod={
- Object {
+ {
"date": undefined,
"index": 0,
"mode": "REFERENCE_BRANCH",
@@ -3393,7 +3393,7 @@ exports[`should render correctly if branch is misconfigured: hide settings 1`] =
/>
</div>,
},
- Object {
+ {
"key": "overall",
"label": <div
className="text-left overview-measures-tab"
@@ -3401,7 +3401,7 @@ exports[`should render correctly if branch is misconfigured: hide settings 1`] =
<span
className="text-bold"
style={
- Object {
+ {
"position": "absolute",
"top": 16,
}
@@ -3422,7 +3422,7 @@ exports[`should render correctly if branch is misconfigured: hide settings 1`] =
>
<MeasuresPanelNoNewCode
branch={
- Object {
+ {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": false,
@@ -3430,29 +3430,29 @@ exports[`should render correctly if branch is misconfigured: hide settings 1`] =
}
}
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "TRK",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
period={
- Object {
+ {
"date": undefined,
"index": 0,
"mode": "REFERENCE_BRANCH",
@@ -3479,7 +3479,7 @@ exports[`should render correctly if branch is misconfigured: show settings 1`] =
</h2>
<withCurrentUserContext(withAppStateContext(ComponentReportActions))
branch={
- Object {
+ {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": false,
@@ -3487,28 +3487,28 @@ exports[`should render correctly if branch is misconfigured: show settings 1`] =
}
}
component={
- Object {
- "breadcrumbs": Array [],
- "configuration": Object {
+ {
+ "breadcrumbs": [],
+ "configuration": {
"showSettings": true,
},
"key": "my-project",
"name": "MyProject",
"qualifier": "TRK",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
/>
@@ -3517,8 +3517,8 @@ exports[`should render correctly if branch is misconfigured: show settings 1`] =
onSelect={[Function]}
selected="new"
tabs={
- Array [
- Object {
+ [
+ {
"key": "new",
"label": <div
className="text-left overview-measures-tab"
@@ -3530,7 +3530,7 @@ exports[`should render correctly if branch is misconfigured: show settings 1`] =
</span>
<LeakPeriodInfo
leakPeriod={
- Object {
+ {
"date": undefined,
"index": 0,
"mode": "REFERENCE_BRANCH",
@@ -3540,7 +3540,7 @@ exports[`should render correctly if branch is misconfigured: show settings 1`] =
/>
</div>,
},
- Object {
+ {
"key": "overall",
"label": <div
className="text-left overview-measures-tab"
@@ -3548,7 +3548,7 @@ exports[`should render correctly if branch is misconfigured: show settings 1`] =
<span
className="text-bold"
style={
- Object {
+ {
"position": "absolute",
"top": 16,
}
@@ -3569,7 +3569,7 @@ exports[`should render correctly if branch is misconfigured: show settings 1`] =
>
<MeasuresPanelNoNewCode
branch={
- Object {
+ {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": false,
@@ -3577,32 +3577,32 @@ exports[`should render correctly if branch is misconfigured: show settings 1`] =
}
}
component={
- Object {
- "breadcrumbs": Array [],
- "configuration": Object {
+ {
+ "breadcrumbs": [],
+ "configuration": {
"showSettings": true,
},
"key": "my-project",
"name": "MyProject",
"qualifier": "TRK",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
period={
- Object {
+ {
"date": undefined,
"index": 0,
"mode": "REFERENCE_BRANCH",
@@ -3629,7 +3629,7 @@ exports[`should render correctly if the data is still loading 1`] = `
</h2>
<withCurrentUserContext(withAppStateContext(ComponentReportActions))
branch={
- Object {
+ {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": true,
@@ -3637,25 +3637,25 @@ exports[`should render correctly if the data is still loading 1`] = `
}
}
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "TRK",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
/>
@@ -3685,7 +3685,7 @@ exports[`should render correctly if there is no coverage 1`] = `
</h2>
<withCurrentUserContext(withAppStateContext(ComponentReportActions))
branch={
- Object {
+ {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": true,
@@ -3693,25 +3693,25 @@ exports[`should render correctly if there is no coverage 1`] = `
}
}
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "TRK",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
/>
@@ -3720,8 +3720,8 @@ exports[`should render correctly if there is no coverage 1`] = `
onSelect={[Function]}
selected="new"
tabs={
- Array [
- Object {
+ [
+ {
"key": "new",
"label": <div
className="text-left overview-measures-tab"
@@ -3733,7 +3733,7 @@ exports[`should render correctly if there is no coverage 1`] = `
</span>
</div>,
},
- Object {
+ {
"key": "overall",
"label": <div
className="text-left overview-measures-tab"
@@ -3741,7 +3741,7 @@ exports[`should render correctly if there is no coverage 1`] = `
<span
className="text-bold"
style={
- Object {
+ {
"position": "absolute",
"top": 16,
}
@@ -3762,7 +3762,7 @@ exports[`should render correctly if there is no coverage 1`] = `
>
<MeasuresPanelIssueMeasureRow
branchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": true,
@@ -3770,57 +3770,57 @@ exports[`should render correctly if there is no coverage 1`] = `
}
}
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "TRK",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
isNewCodeTab={true}
key="BUG"
measures={
- Array [
- Object {
+ [
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "bugs",
"key": "bugs",
"name": "bugs",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "new_bugs",
"key": "new_bugs",
"name": "new_bugs",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
@@ -3833,7 +3833,7 @@ exports[`should render correctly if there is no coverage 1`] = `
/>
<MeasuresPanelIssueMeasureRow
branchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": true,
@@ -3841,57 +3841,57 @@ exports[`should render correctly if there is no coverage 1`] = `
}
}
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "TRK",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
isNewCodeTab={true}
key="VULNERABILITY"
measures={
- Array [
- Object {
+ [
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "bugs",
"key": "bugs",
"name": "bugs",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "new_bugs",
"key": "new_bugs",
"name": "new_bugs",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
@@ -3904,7 +3904,7 @@ exports[`should render correctly if there is no coverage 1`] = `
/>
<MeasuresPanelIssueMeasureRow
branchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": true,
@@ -3912,57 +3912,57 @@ exports[`should render correctly if there is no coverage 1`] = `
}
}
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "TRK",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
isNewCodeTab={true}
key="SECURITY_HOTSPOT"
measures={
- Array [
- Object {
+ [
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "bugs",
"key": "bugs",
"name": "bugs",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "new_bugs",
"key": "new_bugs",
"name": "new_bugs",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
@@ -3975,7 +3975,7 @@ exports[`should render correctly if there is no coverage 1`] = `
/>
<MeasuresPanelIssueMeasureRow
branchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": true,
@@ -3983,57 +3983,57 @@ exports[`should render correctly if there is no coverage 1`] = `
}
}
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "TRK",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
isNewCodeTab={true}
key="CODE_SMELL"
measures={
- Array [
- Object {
+ [
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "bugs",
"key": "bugs",
"name": "bugs",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "new_bugs",
"key": "new_bugs",
"name": "new_bugs",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
@@ -4052,7 +4052,7 @@ exports[`should render correctly if there is no coverage 1`] = `
>
<MeasurementLabel
branchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": true,
@@ -4061,55 +4061,55 @@ exports[`should render correctly if there is no coverage 1`] = `
}
centered={true}
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "TRK",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
measures={
- Array [
- Object {
+ [
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "bugs",
"key": "bugs",
"name": "bugs",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "new_bugs",
"key": "new_bugs",
"name": "new_bugs",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
@@ -4142,7 +4142,7 @@ exports[`should render correctly if there is no new code measures 1`] = `
</h2>
<withCurrentUserContext(withAppStateContext(ComponentReportActions))
branch={
- Object {
+ {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": true,
@@ -4150,25 +4150,25 @@ exports[`should render correctly if there is no new code measures 1`] = `
}
}
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "TRK",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
/>
@@ -4177,8 +4177,8 @@ exports[`should render correctly if there is no new code measures 1`] = `
onSelect={[Function]}
selected="new"
tabs={
- Array [
- Object {
+ [
+ {
"key": "new",
"label": <div
className="text-left overview-measures-tab"
@@ -4190,7 +4190,7 @@ exports[`should render correctly if there is no new code measures 1`] = `
</span>
</div>,
},
- Object {
+ {
"key": "overall",
"label": <div
className="text-left overview-measures-tab"
@@ -4198,7 +4198,7 @@ exports[`should render correctly if there is no new code measures 1`] = `
<span
className="text-bold"
style={
- Object {
+ {
"position": "absolute",
"top": 16,
}
@@ -4219,7 +4219,7 @@ exports[`should render correctly if there is no new code measures 1`] = `
>
<MeasuresPanelNoNewCode
branch={
- Object {
+ {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": true,
@@ -4227,25 +4227,25 @@ exports[`should render correctly if there is no new code measures 1`] = `
}
}
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "TRK",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
/>
@@ -4268,7 +4268,7 @@ exports[`should render correctly when code scope is new code 1`] = `
</h2>
<withCurrentUserContext(withAppStateContext(ComponentReportActions))
branch={
- Object {
+ {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": true,
@@ -4276,25 +4276,25 @@ exports[`should render correctly when code scope is new code 1`] = `
}
}
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "TRK",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
/>
@@ -4303,8 +4303,8 @@ exports[`should render correctly when code scope is new code 1`] = `
onSelect={[Function]}
selected="new"
tabs={
- Array [
- Object {
+ [
+ {
"key": "new",
"label": <div
className="text-left overview-measures-tab"
@@ -4316,7 +4316,7 @@ exports[`should render correctly when code scope is new code 1`] = `
</span>
</div>,
},
- Object {
+ {
"key": "overall",
"label": <div
className="text-left overview-measures-tab"
@@ -4324,7 +4324,7 @@ exports[`should render correctly when code scope is new code 1`] = `
<span
className="text-bold"
style={
- Object {
+ {
"position": "absolute",
"top": 16,
}
@@ -4345,7 +4345,7 @@ exports[`should render correctly when code scope is new code 1`] = `
>
<MeasuresPanelIssueMeasureRow
branchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": true,
@@ -4353,89 +4353,89 @@ exports[`should render correctly when code scope is new code 1`] = `
}
}
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "TRK",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
isNewCodeTab={true}
key="BUG"
measures={
- Array [
- Object {
+ [
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "coverage",
"key": "coverage",
"name": "coverage",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "new_coverage",
"key": "new_coverage",
"name": "new_coverage",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "bugs",
"key": "bugs",
"name": "bugs",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "new_bugs",
"key": "new_bugs",
"name": "new_bugs",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
@@ -4448,7 +4448,7 @@ exports[`should render correctly when code scope is new code 1`] = `
/>
<MeasuresPanelIssueMeasureRow
branchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": true,
@@ -4456,89 +4456,89 @@ exports[`should render correctly when code scope is new code 1`] = `
}
}
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "TRK",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
isNewCodeTab={true}
key="VULNERABILITY"
measures={
- Array [
- Object {
+ [
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "coverage",
"key": "coverage",
"name": "coverage",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "new_coverage",
"key": "new_coverage",
"name": "new_coverage",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "bugs",
"key": "bugs",
"name": "bugs",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "new_bugs",
"key": "new_bugs",
"name": "new_bugs",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
@@ -4551,7 +4551,7 @@ exports[`should render correctly when code scope is new code 1`] = `
/>
<MeasuresPanelIssueMeasureRow
branchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": true,
@@ -4559,89 +4559,89 @@ exports[`should render correctly when code scope is new code 1`] = `
}
}
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "TRK",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
isNewCodeTab={true}
key="SECURITY_HOTSPOT"
measures={
- Array [
- Object {
+ [
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "coverage",
"key": "coverage",
"name": "coverage",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "new_coverage",
"key": "new_coverage",
"name": "new_coverage",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "bugs",
"key": "bugs",
"name": "bugs",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "new_bugs",
"key": "new_bugs",
"name": "new_bugs",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
@@ -4654,7 +4654,7 @@ exports[`should render correctly when code scope is new code 1`] = `
/>
<MeasuresPanelIssueMeasureRow
branchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": true,
@@ -4662,89 +4662,89 @@ exports[`should render correctly when code scope is new code 1`] = `
}
}
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "TRK",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
isNewCodeTab={true}
key="CODE_SMELL"
measures={
- Array [
- Object {
+ [
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "coverage",
"key": "coverage",
"name": "coverage",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "new_coverage",
"key": "new_coverage",
"name": "new_coverage",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "bugs",
"key": "bugs",
"name": "bugs",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "new_bugs",
"key": "new_bugs",
"name": "new_bugs",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
@@ -4764,7 +4764,7 @@ exports[`should render correctly when code scope is new code 1`] = `
>
<MeasurementLabel
branchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": true,
@@ -4773,87 +4773,87 @@ exports[`should render correctly when code scope is new code 1`] = `
}
centered={true}
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "TRK",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
measures={
- Array [
- Object {
+ [
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "coverage",
"key": "coverage",
"name": "coverage",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "new_coverage",
"key": "new_coverage",
"name": "new_coverage",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "bugs",
"key": "bugs",
"name": "bugs",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "new_bugs",
"key": "new_bugs",
"name": "new_bugs",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
@@ -4871,7 +4871,7 @@ exports[`should render correctly when code scope is new code 1`] = `
>
<MeasurementLabel
branchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": true,
@@ -4880,87 +4880,87 @@ exports[`should render correctly when code scope is new code 1`] = `
}
centered={true}
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "TRK",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
measures={
- Array [
- Object {
+ [
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "coverage",
"key": "coverage",
"name": "coverage",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "new_coverage",
"key": "new_coverage",
"name": "new_coverage",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "bugs",
"key": "bugs",
"name": "bugs",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "new_bugs",
"key": "new_bugs",
"name": "new_bugs",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
@@ -4993,7 +4993,7 @@ exports[`should render correctly when code scope is overall code 1`] = `
</h2>
<withCurrentUserContext(withAppStateContext(ComponentReportActions))
branch={
- Object {
+ {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": true,
@@ -5001,25 +5001,25 @@ exports[`should render correctly when code scope is overall code 1`] = `
}
}
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "TRK",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
/>
@@ -5028,8 +5028,8 @@ exports[`should render correctly when code scope is overall code 1`] = `
onSelect={[Function]}
selected="overall"
tabs={
- Array [
- Object {
+ [
+ {
"key": "new",
"label": <div
className="text-left overview-measures-tab"
@@ -5041,7 +5041,7 @@ exports[`should render correctly when code scope is overall code 1`] = `
</span>
</div>,
},
- Object {
+ {
"key": "overall",
"label": <div
className="text-left overview-measures-tab"
@@ -5049,7 +5049,7 @@ exports[`should render correctly when code scope is overall code 1`] = `
<span
className="text-bold"
style={
- Object {
+ {
"position": "absolute",
"top": 16,
}
@@ -5070,7 +5070,7 @@ exports[`should render correctly when code scope is overall code 1`] = `
>
<MeasuresPanelIssueMeasureRow
branchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": true,
@@ -5078,89 +5078,89 @@ exports[`should render correctly when code scope is overall code 1`] = `
}
}
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "TRK",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
isNewCodeTab={false}
key="BUG"
measures={
- Array [
- Object {
+ [
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "coverage",
"key": "coverage",
"name": "coverage",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "new_coverage",
"key": "new_coverage",
"name": "new_coverage",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "bugs",
"key": "bugs",
"name": "bugs",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "new_bugs",
"key": "new_bugs",
"name": "new_bugs",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
@@ -5173,7 +5173,7 @@ exports[`should render correctly when code scope is overall code 1`] = `
/>
<MeasuresPanelIssueMeasureRow
branchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": true,
@@ -5181,89 +5181,89 @@ exports[`should render correctly when code scope is overall code 1`] = `
}
}
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "TRK",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
isNewCodeTab={false}
key="VULNERABILITY"
measures={
- Array [
- Object {
+ [
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "coverage",
"key": "coverage",
"name": "coverage",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "new_coverage",
"key": "new_coverage",
"name": "new_coverage",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "bugs",
"key": "bugs",
"name": "bugs",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "new_bugs",
"key": "new_bugs",
"name": "new_bugs",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
@@ -5276,7 +5276,7 @@ exports[`should render correctly when code scope is overall code 1`] = `
/>
<MeasuresPanelIssueMeasureRow
branchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": true,
@@ -5284,89 +5284,89 @@ exports[`should render correctly when code scope is overall code 1`] = `
}
}
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "TRK",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
isNewCodeTab={false}
key="SECURITY_HOTSPOT"
measures={
- Array [
- Object {
+ [
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "coverage",
"key": "coverage",
"name": "coverage",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "new_coverage",
"key": "new_coverage",
"name": "new_coverage",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "bugs",
"key": "bugs",
"name": "bugs",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "new_bugs",
"key": "new_bugs",
"name": "new_bugs",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
@@ -5379,7 +5379,7 @@ exports[`should render correctly when code scope is overall code 1`] = `
/>
<MeasuresPanelIssueMeasureRow
branchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": true,
@@ -5387,89 +5387,89 @@ exports[`should render correctly when code scope is overall code 1`] = `
}
}
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "TRK",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
isNewCodeTab={false}
key="CODE_SMELL"
measures={
- Array [
- Object {
+ [
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "coverage",
"key": "coverage",
"name": "coverage",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "new_coverage",
"key": "new_coverage",
"name": "new_coverage",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "bugs",
"key": "bugs",
"name": "bugs",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "new_bugs",
"key": "new_bugs",
"name": "new_bugs",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
@@ -5489,7 +5489,7 @@ exports[`should render correctly when code scope is overall code 1`] = `
>
<MeasurementLabel
branchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": true,
@@ -5498,87 +5498,87 @@ exports[`should render correctly when code scope is overall code 1`] = `
}
centered={false}
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "TRK",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
measures={
- Array [
- Object {
+ [
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "coverage",
"key": "coverage",
"name": "coverage",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "new_coverage",
"key": "new_coverage",
"name": "new_coverage",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "bugs",
"key": "bugs",
"name": "bugs",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "new_bugs",
"key": "new_bugs",
"name": "new_bugs",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
@@ -5595,7 +5595,7 @@ exports[`should render correctly when code scope is overall code 1`] = `
>
<DrilldownMeasureValue
branchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": true,
@@ -5603,87 +5603,87 @@ exports[`should render correctly when code scope is overall code 1`] = `
}
}
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "TRK",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
measures={
- Array [
- Object {
+ [
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "coverage",
"key": "coverage",
"name": "coverage",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "new_coverage",
"key": "new_coverage",
"name": "new_coverage",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "bugs",
"key": "bugs",
"name": "bugs",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "new_bugs",
"key": "new_bugs",
"name": "new_bugs",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
@@ -5701,7 +5701,7 @@ exports[`should render correctly when code scope is overall code 1`] = `
>
<MeasurementLabel
branchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": true,
@@ -5710,87 +5710,87 @@ exports[`should render correctly when code scope is overall code 1`] = `
}
centered={false}
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "TRK",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
measures={
- Array [
- Object {
+ [
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "coverage",
"key": "coverage",
"name": "coverage",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "new_coverage",
"key": "new_coverage",
"name": "new_coverage",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "bugs",
"key": "bugs",
"name": "bugs",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "new_bugs",
"key": "new_bugs",
"name": "new_bugs",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
@@ -5807,7 +5807,7 @@ exports[`should render correctly when code scope is overall code 1`] = `
>
<DrilldownMeasureValue
branchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": true,
@@ -5815,87 +5815,87 @@ exports[`should render correctly when code scope is overall code 1`] = `
}
}
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "TRK",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
measures={
- Array [
- Object {
+ [
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "coverage",
"key": "coverage",
"name": "coverage",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "new_coverage",
"key": "new_coverage",
"name": "new_coverage",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "bugs",
"key": "bugs",
"name": "bugs",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "new_bugs",
"key": "new_bugs",
"name": "new_bugs",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
diff --git a/server/sonar-web/src/main/js/apps/overview/branches/__tests__/__snapshots__/MeasuresPanelIssueMeasureRow-test.tsx.snap b/server/sonar-web/src/main/js/apps/overview/branches/__tests__/__snapshots__/MeasuresPanelIssueMeasureRow-test.tsx.snap
index cf234b9c859..630549852b9 100644
--- a/server/sonar-web/src/main/js/apps/overview/branches/__tests__/__snapshots__/MeasuresPanelIssueMeasureRow-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/overview/branches/__tests__/__snapshots__/MeasuresPanelIssueMeasureRow-test.tsx.snap
@@ -10,7 +10,7 @@ exports[`should render correctly for apps: new code 1`] = `
>
<Memo(IssueLabel)
branchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": true,
@@ -18,87 +18,87 @@ exports[`should render correctly for apps: new code 1`] = `
}
}
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "APP",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
measures={
- Array [
- Object {
+ [
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "coverage",
"key": "coverage",
"name": "coverage",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "new_coverage",
"key": "new_coverage",
"name": "new_coverage",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "bugs",
"key": "bugs",
"name": "bugs",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "new_bugs",
"key": "new_bugs",
"name": "new_bugs",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
@@ -124,7 +124,7 @@ exports[`should render correctly for apps: overview 1`] = `
>
<Memo(IssueLabel)
branchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": true,
@@ -132,87 +132,87 @@ exports[`should render correctly for apps: overview 1`] = `
}
}
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "APP",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
measures={
- Array [
- Object {
+ [
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "coverage",
"key": "coverage",
"name": "coverage",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "new_coverage",
"key": "new_coverage",
"name": "new_coverage",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "bugs",
"key": "bugs",
"name": "bugs",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "new_bugs",
"key": "new_bugs",
"name": "new_bugs",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
@@ -230,7 +230,7 @@ exports[`should render correctly for apps: overview 1`] = `
>
<Memo(IssueRating)
branchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": true,
@@ -238,87 +238,87 @@ exports[`should render correctly for apps: overview 1`] = `
}
}
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "APP",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
measures={
- Array [
- Object {
+ [
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "coverage",
"key": "coverage",
"name": "coverage",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "new_coverage",
"key": "new_coverage",
"name": "new_coverage",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "bugs",
"key": "bugs",
"name": "bugs",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "new_bugs",
"key": "new_bugs",
"name": "new_bugs",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
@@ -344,7 +344,7 @@ exports[`should render correctly for projects: Bug 1`] = `
>
<Memo(IssueLabel)
branchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": true,
@@ -352,87 +352,87 @@ exports[`should render correctly for projects: Bug 1`] = `
}
}
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "TRK",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
measures={
- Array [
- Object {
+ [
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "coverage",
"key": "coverage",
"name": "coverage",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "new_coverage",
"key": "new_coverage",
"name": "new_coverage",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "bugs",
"key": "bugs",
"name": "bugs",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "new_bugs",
"key": "new_bugs",
"name": "new_bugs",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
@@ -450,7 +450,7 @@ exports[`should render correctly for projects: Bug 1`] = `
>
<Memo(IssueRating)
branchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": true,
@@ -458,87 +458,87 @@ exports[`should render correctly for projects: Bug 1`] = `
}
}
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "TRK",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
measures={
- Array [
- Object {
+ [
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "coverage",
"key": "coverage",
"name": "coverage",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "new_coverage",
"key": "new_coverage",
"name": "new_coverage",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "bugs",
"key": "bugs",
"name": "bugs",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "new_bugs",
"key": "new_bugs",
"name": "new_bugs",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
@@ -564,7 +564,7 @@ exports[`should render correctly for projects: Code Smell 1`] = `
>
<Memo(DebtValue)
branchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": true,
@@ -572,87 +572,87 @@ exports[`should render correctly for projects: Code Smell 1`] = `
}
}
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "TRK",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
measures={
- Array [
- Object {
+ [
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "coverage",
"key": "coverage",
"name": "coverage",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "new_coverage",
"key": "new_coverage",
"name": "new_coverage",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "bugs",
"key": "bugs",
"name": "bugs",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "new_bugs",
"key": "new_bugs",
"name": "new_bugs",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
@@ -669,7 +669,7 @@ exports[`should render correctly for projects: Code Smell 1`] = `
>
<Memo(IssueLabel)
branchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": true,
@@ -677,87 +677,87 @@ exports[`should render correctly for projects: Code Smell 1`] = `
}
}
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "TRK",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
measures={
- Array [
- Object {
+ [
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "coverage",
"key": "coverage",
"name": "coverage",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "new_coverage",
"key": "new_coverage",
"name": "new_coverage",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "bugs",
"key": "bugs",
"name": "bugs",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "new_bugs",
"key": "new_bugs",
"name": "new_bugs",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
@@ -775,7 +775,7 @@ exports[`should render correctly for projects: Code Smell 1`] = `
>
<Memo(IssueRating)
branchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": true,
@@ -783,87 +783,87 @@ exports[`should render correctly for projects: Code Smell 1`] = `
}
}
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "TRK",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
measures={
- Array [
- Object {
+ [
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "coverage",
"key": "coverage",
"name": "coverage",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "new_coverage",
"key": "new_coverage",
"name": "new_coverage",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "bugs",
"key": "bugs",
"name": "bugs",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "new_bugs",
"key": "new_bugs",
"name": "new_bugs",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
@@ -889,7 +889,7 @@ exports[`should render correctly for projects: Hotspot 1`] = `
>
<Memo(IssueLabel)
branchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": true,
@@ -897,88 +897,88 @@ exports[`should render correctly for projects: Hotspot 1`] = `
}
}
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "TRK",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
helpTooltip="metric.security_hotspots.full_description"
measures={
- Array [
- Object {
+ [
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "coverage",
"key": "coverage",
"name": "coverage",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "new_coverage",
"key": "new_coverage",
"name": "new_coverage",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "bugs",
"key": "bugs",
"name": "bugs",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "new_bugs",
"key": "new_bugs",
"name": "new_bugs",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
@@ -996,65 +996,65 @@ exports[`should render correctly for projects: Hotspot 1`] = `
>
<SecurityHotspotsReviewed
measures={
- Array [
- Object {
+ [
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "coverage",
"key": "coverage",
"name": "coverage",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "new_coverage",
"key": "new_coverage",
"name": "new_coverage",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "bugs",
"key": "bugs",
"name": "bugs",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "new_bugs",
"key": "new_bugs",
"name": "new_bugs",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
@@ -1071,7 +1071,7 @@ exports[`should render correctly for projects: Hotspot 1`] = `
>
<Memo(IssueRating)
branchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": true,
@@ -1079,87 +1079,87 @@ exports[`should render correctly for projects: Hotspot 1`] = `
}
}
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "TRK",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
measures={
- Array [
- Object {
+ [
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "coverage",
"key": "coverage",
"name": "coverage",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "new_coverage",
"key": "new_coverage",
"name": "new_coverage",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "bugs",
"key": "bugs",
"name": "bugs",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "new_bugs",
"key": "new_bugs",
"name": "new_bugs",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
@@ -1185,7 +1185,7 @@ exports[`should render correctly for projects: Overview 1`] = `
>
<Memo(IssueLabel)
branchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": true,
@@ -1193,87 +1193,87 @@ exports[`should render correctly for projects: Overview 1`] = `
}
}
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "TRK",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
measures={
- Array [
- Object {
+ [
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "coverage",
"key": "coverage",
"name": "coverage",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "new_coverage",
"key": "new_coverage",
"name": "new_coverage",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "bugs",
"key": "bugs",
"name": "bugs",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "new_bugs",
"key": "new_bugs",
"name": "new_bugs",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
@@ -1291,7 +1291,7 @@ exports[`should render correctly for projects: Overview 1`] = `
>
<Memo(IssueRating)
branchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": true,
@@ -1299,87 +1299,87 @@ exports[`should render correctly for projects: Overview 1`] = `
}
}
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "TRK",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
measures={
- Array [
- Object {
+ [
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "coverage",
"key": "coverage",
"name": "coverage",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "new_coverage",
"key": "new_coverage",
"name": "new_coverage",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "bugs",
"key": "bugs",
"name": "bugs",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "new_bugs",
"key": "new_bugs",
"name": "new_bugs",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
@@ -1405,7 +1405,7 @@ exports[`should render correctly for projects: Vulnerabilty 1`] = `
>
<Memo(IssueLabel)
branchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": true,
@@ -1413,87 +1413,87 @@ exports[`should render correctly for projects: Vulnerabilty 1`] = `
}
}
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "TRK",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
measures={
- Array [
- Object {
+ [
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "coverage",
"key": "coverage",
"name": "coverage",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "new_coverage",
"key": "new_coverage",
"name": "new_coverage",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "bugs",
"key": "bugs",
"name": "bugs",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "new_bugs",
"key": "new_bugs",
"name": "new_bugs",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
@@ -1511,7 +1511,7 @@ exports[`should render correctly for projects: Vulnerabilty 1`] = `
>
<Memo(IssueRating)
branchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": true,
@@ -1519,87 +1519,87 @@ exports[`should render correctly for projects: Vulnerabilty 1`] = `
}
}
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "TRK",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
measures={
- Array [
- Object {
+ [
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "coverage",
"key": "coverage",
"name": "coverage",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "new_coverage",
"key": "new_coverage",
"name": "new_coverage",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "bugs",
"key": "bugs",
"name": "bugs",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "new_bugs",
"key": "new_bugs",
"name": "new_bugs",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
diff --git a/server/sonar-web/src/main/js/apps/overview/branches/__tests__/__snapshots__/MeasuresPanelNoNewCode-test.tsx.snap b/server/sonar-web/src/main/js/apps/overview/branches/__tests__/__snapshots__/MeasuresPanelNoNewCode-test.tsx.snap
index 7bfe4d72fb9..94904723054 100644
--- a/server/sonar-web/src/main/js/apps/overview/branches/__tests__/__snapshots__/MeasuresPanelNoNewCode-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/overview/branches/__tests__/__snapshots__/MeasuresPanelNoNewCode-test.tsx.snap
@@ -4,7 +4,7 @@ exports[`should render "bad code setting" explanation: no link 1`] = `
<div
className="display-flex-center display-flex-justify-center"
style={
- Object {
+ {
"height": 500,
}
}
@@ -18,7 +18,7 @@ exports[`should render "bad code setting" explanation: no link 1`] = `
<div
className="big-spacer-left text-muted"
style={
- Object {
+ {
"maxWidth": 500,
}
}
@@ -33,7 +33,7 @@ exports[`should render "bad code setting" explanation: no link 1`] = `
defaultMessage="overview.measures.empty_link"
id="overview.measures.empty_link"
values={
- Object {
+ {
"learn_more_link": <withAppStateContext(DocLink)
to="/user-guide/clean-as-you-code/"
>
@@ -51,7 +51,7 @@ exports[`should render "bad code setting" explanation: with link 1`] = `
<div
className="display-flex-center display-flex-justify-center"
style={
- Object {
+ {
"height": 500,
}
}
@@ -65,7 +65,7 @@ exports[`should render "bad code setting" explanation: with link 1`] = `
<div
className="big-spacer-left text-muted"
style={
- Object {
+ {
"maxWidth": 500,
}
}
@@ -80,7 +80,7 @@ exports[`should render "bad code setting" explanation: with link 1`] = `
defaultMessage="overview.measures.empty_link"
id="overview.measures.empty_link"
values={
- Object {
+ {
"learn_more_link": <withAppStateContext(DocLink)
to="/user-guide/clean-as-you-code/"
>
@@ -98,7 +98,7 @@ exports[`should render the default message 5`] = `
<div
className="display-flex-center display-flex-justify-center"
style={
- Object {
+ {
"height": 500,
}
}
@@ -112,7 +112,7 @@ exports[`should render the default message 5`] = `
<div
className="big-spacer-left text-muted"
style={
- Object {
+ {
"maxWidth": 500,
}
}
@@ -130,7 +130,7 @@ exports[`should render the default message 6`] = `
<div
className="display-flex-center display-flex-justify-center"
style={
- Object {
+ {
"height": 500,
}
}
@@ -144,7 +144,7 @@ exports[`should render the default message 6`] = `
<div
className="big-spacer-left text-muted"
style={
- Object {
+ {
"maxWidth": 500,
}
}
@@ -159,7 +159,7 @@ exports[`should render the default message 6`] = `
defaultMessage="overview.measures.empty_link"
id="overview.measures.empty_link"
values={
- Object {
+ {
"learn_more_link": <withAppStateContext(DocLink)
to="/user-guide/clean-as-you-code/"
>
diff --git a/server/sonar-web/src/main/js/apps/overview/branches/__tests__/__snapshots__/QualityGatePanel-test.tsx.snap b/server/sonar-web/src/main/js/apps/overview/branches/__tests__/__snapshots__/QualityGatePanel-test.tsx.snap
index 06972ac7b00..2215810e4e6 100644
--- a/server/sonar-web/src/main/js/apps/overview/branches/__tests__/__snapshots__/QualityGatePanel-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/overview/branches/__tests__/__snapshots__/QualityGatePanel-test.tsx.snap
@@ -47,45 +47,45 @@ exports[`should render correctly for applications 1`] = `
>
<Memo(QualityGatePanelSection)
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "APP",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
key="foo"
qgStatus={
- Object {
- "failedConditions": Array [
- Object {
+ {
+ "failedConditions": [
+ {
"actual": "10",
"error": "0",
"level": "ERROR",
- "measure": Object {
+ "measure": {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "coverage",
"key": "coverage",
"name": "coverage",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
@@ -105,45 +105,45 @@ exports[`should render correctly for applications 1`] = `
/>
<Memo(QualityGatePanelSection)
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "APP",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
key="foo"
qgStatus={
- Object {
- "failedConditions": Array [
- Object {
+ {
+ "failedConditions": [
+ {
"actual": "10",
"error": "0",
"level": "ERROR",
- "measure": Object {
+ "measure": {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "coverage",
"key": "coverage",
"name": "coverage",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
@@ -153,20 +153,20 @@ exports[`should render correctly for applications 1`] = `
"metric": "foo",
"op": "GT",
},
- Object {
+ {
"actual": "10",
"error": "0",
"level": "ERROR",
- "measure": Object {
+ "measure": {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "new_code_smells",
"key": "new_code_smells",
"name": "new_code_smells",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
@@ -188,21 +188,21 @@ exports[`should render correctly for applications 1`] = `
</div>
<withCurrentUserContext(SonarLintPromotion)
qgConditions={
- Array [
- Object {
+ [
+ {
"actual": "10",
"error": "0",
"level": "ERROR",
- "measure": Object {
+ "measure": {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "coverage",
"key": "coverage",
"name": "coverage",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
@@ -212,20 +212,20 @@ exports[`should render correctly for applications 1`] = `
"metric": "foo",
"op": "GT",
},
- Object {
+ {
"actual": "10",
"error": "0",
"level": "ERROR",
- "measure": Object {
+ "measure": {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "coverage",
"key": "coverage",
"name": "coverage",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
@@ -235,20 +235,20 @@ exports[`should render correctly for applications 1`] = `
"metric": "foo",
"op": "GT",
},
- Object {
+ {
"actual": "10",
"error": "0",
"level": "ERROR",
- "measure": Object {
+ "measure": {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "new_code_smells",
"key": "new_code_smells",
"name": "new_code_smells",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
@@ -311,45 +311,45 @@ exports[`should render correctly for applications 2`] = `
>
<Memo(QualityGatePanelSection)
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "APP",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
key="foo"
qgStatus={
- Object {
- "failedConditions": Array [
- Object {
+ {
+ "failedConditions": [
+ {
"actual": "10",
"error": "0",
"level": "ERROR",
- "measure": Object {
+ "measure": {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "coverage",
"key": "coverage",
"name": "coverage",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
@@ -369,31 +369,31 @@ exports[`should render correctly for applications 2`] = `
/>
<Memo(QualityGatePanelSection)
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "APP",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
key="foo"
qgStatus={
- Object {
- "failedConditions": Array [],
+ {
+ "failedConditions": [],
"ignoredConditions": false,
"key": "foo",
"name": "Foo",
@@ -405,21 +405,21 @@ exports[`should render correctly for applications 2`] = `
</div>
<withCurrentUserContext(SonarLintPromotion)
qgConditions={
- Array [
- Object {
+ [
+ {
"actual": "10",
"error": "0",
"level": "ERROR",
- "measure": Object {
+ "measure": {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "coverage",
"key": "coverage",
"name": "coverage",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
@@ -482,45 +482,45 @@ exports[`should render correctly for projects 1`] = `
>
<Memo(QualityGatePanelSection)
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "TRK",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
key="foo"
qgStatus={
- Object {
- "failedConditions": Array [
- Object {
+ {
+ "failedConditions": [
+ {
"actual": "10",
"error": "0",
"level": "ERROR",
- "measure": Object {
+ "measure": {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "coverage",
"key": "coverage",
"name": "coverage",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
@@ -542,21 +542,21 @@ exports[`should render correctly for projects 1`] = `
</div>
<withCurrentUserContext(SonarLintPromotion)
qgConditions={
- Array [
- Object {
+ [
+ {
"actual": "10",
"error": "0",
"level": "ERROR",
- "measure": Object {
+ "measure": {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "coverage",
"key": "coverage",
"name": "coverage",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
@@ -616,7 +616,7 @@ exports[`should render correctly for projects 2`] = `
</div>
</div>
<withCurrentUserContext(SonarLintPromotion)
- qgConditions={Array []}
+ qgConditions={[]}
/>
</div>
`;
@@ -683,45 +683,45 @@ exports[`should render correctly for projects 3`] = `
>
<Memo(QualityGatePanelSection)
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "TRK",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
key="foo"
qgStatus={
- Object {
- "failedConditions": Array [
- Object {
+ {
+ "failedConditions": [
+ {
"actual": "10",
"error": "0",
"level": "ERROR",
- "measure": Object {
+ "measure": {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "coverage",
"key": "coverage",
"name": "coverage",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
@@ -743,21 +743,21 @@ exports[`should render correctly for projects 3`] = `
</div>
<withCurrentUserContext(SonarLintPromotion)
qgConditions={
- Array [
- Object {
+ [
+ {
"actual": "10",
"error": "0",
"level": "ERROR",
- "measure": Object {
+ "measure": {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "coverage",
"key": "coverage",
"name": "coverage",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
diff --git a/server/sonar-web/src/main/js/apps/overview/branches/__tests__/__snapshots__/QualityGatePanelSection-test.tsx.snap b/server/sonar-web/src/main/js/apps/overview/branches/__tests__/__snapshots__/QualityGatePanelSection-test.tsx.snap
index eeb53194ffa..92a740dd57b 100644
--- a/server/sonar-web/src/main/js/apps/overview/branches/__tests__/__snapshots__/QualityGatePanelSection-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/overview/branches/__tests__/__snapshots__/QualityGatePanelSection-test.tsx.snap
@@ -11,22 +11,22 @@ exports[`should render correctly 1`] = `
</h4>
<Memo(QualityGateConditions)
component={
- Object {
- "failedConditions": Array [
- Object {
+ {
+ "failedConditions": [
+ {
"actual": "10",
"error": "0",
"level": "ERROR",
- "measure": Object {
+ "measure": {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "coverage",
"key": "coverage",
"name": "coverage",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
@@ -36,20 +36,20 @@ exports[`should render correctly 1`] = `
"metric": "bugs",
"op": "GT",
},
- Object {
+ {
"actual": "10",
"error": "0",
"level": "ERROR",
- "measure": Object {
+ "measure": {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "coverage",
"key": "coverage",
"name": "coverage",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
@@ -67,21 +67,21 @@ exports[`should render correctly 1`] = `
}
}
failedConditions={
- Array [
- Object {
+ [
+ {
"actual": "10",
"error": "0",
"level": "ERROR",
- "measure": Object {
+ "measure": {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "coverage",
"key": "coverage",
"name": "coverage",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
@@ -101,22 +101,22 @@ exports[`should render correctly 1`] = `
</h4>
<Memo(QualityGateConditions)
component={
- Object {
- "failedConditions": Array [
- Object {
+ {
+ "failedConditions": [
+ {
"actual": "10",
"error": "0",
"level": "ERROR",
- "measure": Object {
+ "measure": {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "coverage",
"key": "coverage",
"name": "coverage",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
@@ -126,20 +126,20 @@ exports[`should render correctly 1`] = `
"metric": "bugs",
"op": "GT",
},
- Object {
+ {
"actual": "10",
"error": "0",
"level": "ERROR",
- "measure": Object {
+ "measure": {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "coverage",
"key": "coverage",
"name": "coverage",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
@@ -157,21 +157,21 @@ exports[`should render correctly 1`] = `
}
}
failedConditions={
- Array [
- Object {
+ [
+ {
"actual": "10",
"error": "0",
"level": "ERROR",
- "measure": Object {
+ "measure": {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "coverage",
"key": "coverage",
"name": "coverage",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
@@ -203,22 +203,22 @@ exports[`should render correctly 2`] = `
</h4>
<Memo(QualityGateConditions)
component={
- Object {
- "failedConditions": Array [
- Object {
+ {
+ "failedConditions": [
+ {
"actual": "10",
"error": "0",
"level": "ERROR",
- "measure": Object {
+ "measure": {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "coverage",
"key": "coverage",
"name": "coverage",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
@@ -228,20 +228,20 @@ exports[`should render correctly 2`] = `
"metric": "bugs",
"op": "GT",
},
- Object {
+ {
"actual": "10",
"error": "0",
"level": "ERROR",
- "measure": Object {
+ "measure": {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "coverage",
"key": "coverage",
"name": "coverage",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
@@ -259,21 +259,21 @@ exports[`should render correctly 2`] = `
}
}
failedConditions={
- Array [
- Object {
+ [
+ {
"actual": "10",
"error": "0",
"level": "ERROR",
- "measure": Object {
+ "measure": {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "coverage",
"key": "coverage",
"name": "coverage",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
@@ -293,22 +293,22 @@ exports[`should render correctly 2`] = `
</h4>
<Memo(QualityGateConditions)
component={
- Object {
- "failedConditions": Array [
- Object {
+ {
+ "failedConditions": [
+ {
"actual": "10",
"error": "0",
"level": "ERROR",
- "measure": Object {
+ "measure": {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "coverage",
"key": "coverage",
"name": "coverage",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
@@ -318,20 +318,20 @@ exports[`should render correctly 2`] = `
"metric": "bugs",
"op": "GT",
},
- Object {
+ {
"actual": "10",
"error": "0",
"level": "ERROR",
- "measure": Object {
+ "measure": {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "coverage",
"key": "coverage",
"name": "coverage",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
@@ -349,21 +349,21 @@ exports[`should render correctly 2`] = `
}
}
failedConditions={
- Array [
- Object {
+ [
+ {
"actual": "10",
"error": "0",
"level": "ERROR",
- "measure": Object {
+ "measure": {
"bestValue": true,
"leak": "1",
- "metric": Object {
+ "metric": {
"id": "coverage",
"key": "coverage",
"name": "coverage",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
diff --git a/server/sonar-web/src/main/js/apps/overview/components/__tests__/__snapshots__/EmptyOverview-test.tsx.snap b/server/sonar-web/src/main/js/apps/overview/components/__tests__/__snapshots__/EmptyOverview-test.tsx.snap
index afd2b0d3b0c..ef723cf1b24 100644
--- a/server/sonar-web/src/main/js/apps/overview/components/__tests__/__snapshots__/EmptyOverview-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/overview/components/__tests__/__snapshots__/EmptyOverview-test.tsx.snap
@@ -6,38 +6,38 @@ exports[`renders correctly 1`] = `
>
<withRouter(TutorialSelection)
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "TRK",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
"version": "0.0.1",
}
}
currentUser={
- Object {
- "dismissedNotices": Object {
+ {
+ "dismissedNotices": {
"educationPrinciples": false,
},
- "groups": Array [],
+ "groups": [],
"isLoggedIn": true,
"login": "luke",
"name": "Skywalker",
- "scmAccounts": Array [],
+ "scmAccounts": [],
}
}
willRefreshAutomatically={true}
@@ -62,7 +62,7 @@ exports[`renders correctly 3`] = `
defaultMessage="provisioning.no_analysis_on_main_branch"
id="provisioning.no_analysis_on_main_branch"
values={
- Object {
+ {
"branchName": "master",
}
}
@@ -77,42 +77,42 @@ exports[`renders correctly 4`] = `
>
<withRouter(TutorialSelection)
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "TRK",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
"version": "0.0.1",
}
}
currentUser={
- Object {
- "dismissedNotices": Object {
+ {
+ "dismissedNotices": {
"educationPrinciples": false,
},
- "groups": Array [],
+ "groups": [],
"isLoggedIn": true,
"login": "luke",
"name": "Skywalker",
- "scmAccounts": Array [],
+ "scmAccounts": [],
}
}
projectBinding={
- Object {
+ {
"alm": "github",
"key": "foo",
"monorepo": true,
@@ -147,7 +147,7 @@ exports[`should render another message when there are branches 1`] = `
defaultMessage="provisioning.no_analysis_on_main_branch.bad_configuration"
id="provisioning.no_analysis_on_main_branch.bad_configuration"
values={
- Object {
+ {
"branchName": "master",
"branchType": "branches.main_branch",
}
@@ -168,7 +168,7 @@ exports[`should render another message when there are branches 2`] = `
defaultMessage="provisioning.no_analysis_on_main_branch.bad_configuration"
id="provisioning.no_analysis_on_main_branch.bad_configuration"
values={
- Object {
+ {
"branchName": "master",
"branchType": "branches.main_branch",
}
diff --git a/server/sonar-web/src/main/js/apps/overview/components/__tests__/__snapshots__/IssueLabel-test.tsx.snap b/server/sonar-web/src/main/js/apps/overview/components/__tests__/__snapshots__/IssueLabel-test.tsx.snap
index 335b5497f4b..9780158f073 100644
--- a/server/sonar-web/src/main/js/apps/overview/components/__tests__/__snapshots__/IssueLabel-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/overview/components/__tests__/__snapshots__/IssueLabel-test.tsx.snap
@@ -6,7 +6,7 @@ exports[`should render correctly for bugs 1`] = `
aria-label="overview.see_list_of_x_y_issues.1.0.metric.bugs.name"
className="overview-measures-value text-light"
to={
- Object {
+ {
"hash": "",
"pathname": "/project/issues",
"search": "?pullRequest=1001&resolved=false&types=BUG&inNewCodePeriod=false&id=my-project",
@@ -28,7 +28,7 @@ exports[`should render correctly for bugs 2`] = `
aria-label="overview.see_list_of_x_y_issues.1.0.metric.new_bugs.name"
className="overview-measures-value text-light"
to={
- Object {
+ {
"hash": "",
"pathname": "/project/issues",
"search": "?pullRequest=1001&resolved=false&types=BUG&inNewCodePeriod=true&id=my-project",
@@ -50,7 +50,7 @@ exports[`should render correctly for code smells 1`] = `
aria-label="overview.see_list_of_x_y_issues.1.0.metric.code_smells.name"
className="overview-measures-value text-light"
to={
- Object {
+ {
"hash": "",
"pathname": "/project/issues",
"search": "?pullRequest=1001&resolved=false&types=CODE_SMELL&inNewCodePeriod=false&id=my-project",
@@ -72,7 +72,7 @@ exports[`should render correctly for code smells 2`] = `
aria-label="overview.see_list_of_x_y_issues.1.0.metric.new_code_smells.name"
className="overview-measures-value text-light"
to={
- Object {
+ {
"hash": "",
"pathname": "/project/issues",
"search": "?pullRequest=1001&resolved=false&types=CODE_SMELL&inNewCodePeriod=true&id=my-project",
@@ -94,7 +94,7 @@ exports[`should render correctly for hotspots 1`] = `
aria-label="overview.see_list_of_x_y_issues.1.0.metric.security_hotspots.name"
className="overview-measures-value text-light"
to={
- Object {
+ {
"hash": "",
"pathname": "/security_hotspots",
"search": "?id=my-project&pullRequest=1001&inNewCodePeriod=false",
@@ -120,7 +120,7 @@ exports[`should render correctly for hotspots 2`] = `
aria-label="overview.see_list_of_x_y_issues.1.0.metric.new_security_hotspots.name"
className="overview-measures-value text-light"
to={
- Object {
+ {
"hash": "",
"pathname": "/security_hotspots",
"search": "?id=my-project&pullRequest=1001&inNewCodePeriod=true",
@@ -146,7 +146,7 @@ exports[`should render correctly for vulnerabilities 1`] = `
aria-label="overview.see_list_of_x_y_issues.1.0.metric.vulnerabilities.name"
className="overview-measures-value text-light"
to={
- Object {
+ {
"hash": "",
"pathname": "/project/issues",
"search": "?pullRequest=1001&resolved=false&types=VULNERABILITY&inNewCodePeriod=false&id=my-project",
@@ -168,7 +168,7 @@ exports[`should render correctly for vulnerabilities 2`] = `
aria-label="overview.see_list_of_x_y_issues.1.0.metric.new_vulnerabilities.name"
className="overview-measures-value text-light"
to={
- Object {
+ {
"hash": "",
"pathname": "/project/issues",
"search": "?pullRequest=1001&resolved=false&types=VULNERABILITY&inNewCodePeriod=true&id=my-project",
diff --git a/server/sonar-web/src/main/js/apps/overview/components/__tests__/__snapshots__/IssueRating-test.tsx.snap b/server/sonar-web/src/main/js/apps/overview/components/__tests__/__snapshots__/IssueRating-test.tsx.snap
index e692f12d8c5..9a3ff0faa92 100644
--- a/server/sonar-web/src/main/js/apps/overview/components/__tests__/__snapshots__/IssueRating-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/overview/components/__tests__/__snapshots__/IssueRating-test.tsx.snap
@@ -18,7 +18,7 @@ exports[`should render correctly for bugs 1`] = `
<span>
<DrilldownLink
branchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"base": "master",
"branch": "feature/foo/bar",
@@ -58,7 +58,7 @@ exports[`should render correctly for bugs 2`] = `
<span>
<DrilldownLink
branchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"base": "master",
"branch": "feature/foo/bar",
@@ -98,7 +98,7 @@ exports[`should render correctly for code smells 1`] = `
<span>
<DrilldownLink
branchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"base": "master",
"branch": "feature/foo/bar",
@@ -138,7 +138,7 @@ exports[`should render correctly for code smells 2`] = `
<span>
<DrilldownLink
branchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"base": "master",
"branch": "feature/foo/bar",
@@ -178,7 +178,7 @@ exports[`should render correctly for vulnerabilities 1`] = `
<span>
<DrilldownLink
branchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"base": "master",
"branch": "feature/foo/bar",
@@ -218,7 +218,7 @@ exports[`should render correctly for vulnerabilities 2`] = `
<span>
<DrilldownLink
branchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"base": "master",
"branch": "feature/foo/bar",
diff --git a/server/sonar-web/src/main/js/apps/overview/components/__tests__/__snapshots__/MeasurementLabel-test.tsx.snap b/server/sonar-web/src/main/js/apps/overview/components/__tests__/__snapshots__/MeasurementLabel-test.tsx.snap
index f6f0bb6f716..407684f3a3d 100644
--- a/server/sonar-web/src/main/js/apps/overview/components/__tests__/__snapshots__/MeasurementLabel-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/overview/components/__tests__/__snapshots__/MeasurementLabel-test.tsx.snap
@@ -19,7 +19,7 @@ exports[`should render correctly for coverage 1`] = `
<DrilldownLink
ariaLabel="overview.see_more_details_on_x_of_y.1.0%.metric.coverage.name"
branchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"base": "master",
"branch": "feature/foo/bar",
@@ -63,7 +63,7 @@ exports[`should render correctly for coverage 2`] = `
<DrilldownLink
ariaLabel="overview.see_more_details_on_x_of_y.1.0%.metric.coverage.name"
branchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"base": "master",
"branch": "feature/foo/bar",
@@ -86,10 +86,10 @@ exports[`should render correctly for coverage 2`] = `
defaultMessage="overview.coverage_on_X_lines"
id="overview.coverage_on_X_lines"
values={
- Object {
+ {
"count": <DrilldownLink
branchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"base": "master",
"branch": "feature/foo/bar",
@@ -131,7 +131,7 @@ exports[`should render correctly for coverage 3`] = `
<DrilldownLink
ariaLabel="overview.see_more_details_on_x_of_y.1.0%.metric.new_coverage.name"
branchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"base": "master",
"branch": "feature/foo/bar",
@@ -154,10 +154,10 @@ exports[`should render correctly for coverage 3`] = `
defaultMessage="overview.coverage_on_X_new_lines"
id="overview.coverage_on_X_new_lines"
values={
- Object {
+ {
"count": <DrilldownLink
branchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"base": "master",
"branch": "feature/foo/bar",
@@ -199,7 +199,7 @@ exports[`should render correctly for duplications 1`] = `
<DrilldownLink
ariaLabel="overview.see_more_details_on_x_of_y.1.0%.metric.duplicated_lines_density.name"
branchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"base": "master",
"branch": "feature/foo/bar",
@@ -243,7 +243,7 @@ exports[`should render correctly for duplications 2`] = `
<DrilldownLink
ariaLabel="overview.see_more_details_on_x_of_y.1.0%.metric.duplicated_lines_density.name"
branchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"base": "master",
"branch": "feature/foo/bar",
@@ -266,10 +266,10 @@ exports[`should render correctly for duplications 2`] = `
defaultMessage="overview.duplications_on_X_lines"
id="overview.duplications_on_X_lines"
values={
- Object {
+ {
"count": <DrilldownLink
branchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"base": "master",
"branch": "feature/foo/bar",
@@ -311,7 +311,7 @@ exports[`should render correctly for duplications 3`] = `
<DrilldownLink
ariaLabel="overview.see_more_details_on_x_of_y.1.0%.metric.new_duplicated_lines_density.name"
branchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"base": "master",
"branch": "feature/foo/bar",
@@ -334,10 +334,10 @@ exports[`should render correctly for duplications 3`] = `
defaultMessage="overview.duplications_on_X_new_lines"
id="overview.duplications_on_X_new_lines"
values={
- Object {
+ {
"count": <DrilldownLink
branchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"base": "master",
"branch": "feature/foo/bar",
@@ -378,7 +378,7 @@ exports[`should render correctly when centered 1`] = `
<DrilldownLink
ariaLabel="overview.see_more_details_on_x_of_y.1.0%.metric.coverage.name"
branchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"base": "master",
"branch": "feature/foo/bar",
diff --git a/server/sonar-web/src/main/js/apps/overview/components/__tests__/__snapshots__/QualityGateCondition-test.tsx.snap b/server/sonar-web/src/main/js/apps/overview/components/__tests__/__snapshots__/QualityGateCondition-test.tsx.snap
index 70ea3e38769..32cc7f8bcb1 100644
--- a/server/sonar-web/src/main/js/apps/overview/components/__tests__/__snapshots__/QualityGateCondition-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/overview/components/__tests__/__snapshots__/QualityGateCondition-test.tsx.snap
@@ -49,7 +49,7 @@ exports[`should render correclty 2`] = `
<ForwardRef(Link)
className="overview-quality-gate-condition overview-quality-gate-condition-error"
to={
- Object {
+ {
"hash": "",
"pathname": "/project/issues",
"search": "?resolved=false&types=BUG&severities=BLOCKER%2CCRITICAL%2CMAJOR%2CMINOR&id=abcd-key",
@@ -97,7 +97,7 @@ exports[`should render correclty 3`] = `
<ForwardRef(Link)
className="overview-quality-gate-condition overview-quality-gate-condition-error"
to={
- Object {
+ {
"hash": "",
"pathname": "/project/issues",
"search": "?resolved=false&types=VULNERABILITY&severities=BLOCKER%2CCRITICAL%2CMAJOR%2CMINOR&id=abcd-key",
@@ -145,7 +145,7 @@ exports[`should render correclty 4`] = `
<ForwardRef(Link)
className="overview-quality-gate-condition overview-quality-gate-condition-error"
to={
- Object {
+ {
"hash": "",
"pathname": "/project/issues",
"search": "?resolved=false&types=CODE_SMELL&id=abcd-key",
@@ -193,7 +193,7 @@ exports[`should render correclty 5`] = `
<ForwardRef(Link)
className="overview-quality-gate-condition overview-quality-gate-condition-error"
to={
- Object {
+ {
"hash": "",
"pathname": "/project/issues",
"search": "?resolved=false&types=BUG&severities=BLOCKER%2CCRITICAL%2CMAJOR%2CMINOR&inNewCodePeriod=true&id=abcd-key",
@@ -241,7 +241,7 @@ exports[`should render correclty 6`] = `
<ForwardRef(Link)
className="overview-quality-gate-condition overview-quality-gate-condition-error"
to={
- Object {
+ {
"hash": "",
"pathname": "/project/issues",
"search": "?resolved=false&types=VULNERABILITY&severities=BLOCKER%2CCRITICAL%2CMAJOR%2CMINOR&inNewCodePeriod=true&id=abcd-key",
@@ -289,7 +289,7 @@ exports[`should render correclty 7`] = `
<ForwardRef(Link)
className="overview-quality-gate-condition overview-quality-gate-condition-error"
to={
- Object {
+ {
"hash": "",
"pathname": "/project/issues",
"search": "?resolved=false&types=CODE_SMELL&inNewCodePeriod=true&id=abcd-key",
@@ -337,7 +337,7 @@ exports[`should render correclty 8`] = `
<ForwardRef(Link)
className="overview-quality-gate-condition overview-quality-gate-condition-error"
to={
- Object {
+ {
"hash": "",
"pathname": "/security_hotspots",
"search": "?id=abcd-key",
@@ -385,7 +385,7 @@ exports[`should render correclty 9`] = `
<ForwardRef(Link)
className="overview-quality-gate-condition overview-quality-gate-condition-error"
to={
- Object {
+ {
"hash": "",
"pathname": "/security_hotspots",
"search": "?id=abcd-key&inNewCodePeriod=true",
@@ -433,7 +433,7 @@ exports[`should work with branch 1`] = `
<ForwardRef(Link)
className="overview-quality-gate-condition overview-quality-gate-condition-error"
to={
- Object {
+ {
"hash": "",
"pathname": "/project/issues",
"search": "?resolved=false&branch=branch-6.7&types=CODE_SMELL&inNewCodePeriod=true&id=abcd-key",
diff --git a/server/sonar-web/src/main/js/apps/overview/components/__tests__/__snapshots__/SonarLintPromition-test.tsx.snap b/server/sonar-web/src/main/js/apps/overview/components/__tests__/__snapshots__/SonarLintPromition-test.tsx.snap
index e0d43e8cda1..bdabd1b0678 100644
--- a/server/sonar-web/src/main/js/apps/overview/components/__tests__/__snapshots__/SonarLintPromition-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/overview/components/__tests__/__snapshots__/SonarLintPromition-test.tsx.snap
@@ -8,7 +8,7 @@ exports[`should render correctly: has failed condition 1`] = `
defaultMessage="overview.fix_failed_conditions_with_sonarlint"
id="overview.fix_failed_conditions_with_sonarlint"
values={
- Object {
+ {
"link": <React.Fragment>
<a
href="https://www.sonarqube.org/sonarlint/?referrer=sonarqube"
diff --git a/server/sonar-web/src/main/js/apps/overview/pullRequests/__tests__/__snapshots__/LargeQualityGateBadge-test.tsx.snap b/server/sonar-web/src/main/js/apps/overview/pullRequests/__tests__/__snapshots__/LargeQualityGateBadge-test.tsx.snap
index 6777ccaacca..c6b39b92521 100644
--- a/server/sonar-web/src/main/js/apps/overview/pullRequests/__tests__/__snapshots__/LargeQualityGateBadge-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/overview/pullRequests/__tests__/__snapshots__/LargeQualityGateBadge-test.tsx.snap
@@ -17,10 +17,10 @@ exports[`should render correctly for SQ 1`] = `
defaultMessage="overview.quality_gate.conditions_on_new_code"
id="overview.quality_gate.conditions_on_new_code"
values={
- Object {
+ {
"link": <ForwardRef(Link)
to={
- Object {
+ {
"pathname": "/quality_gates/show/30",
}
}
@@ -63,10 +63,10 @@ exports[`should render correctly for SQ 2`] = `
defaultMessage="overview.quality_gate.conditions_on_new_code"
id="overview.quality_gate.conditions_on_new_code"
values={
- Object {
+ {
"link": <ForwardRef(Link)
to={
- Object {
+ {
"pathname": "/quality_gates/show/30",
}
}
diff --git a/server/sonar-web/src/main/js/apps/overview/pullRequests/__tests__/__snapshots__/PullRequestOverview-test.tsx.snap b/server/sonar-web/src/main/js/apps/overview/pullRequests/__tests__/__snapshots__/PullRequestOverview-test.tsx.snap
index 4b272aefe8c..1a58b5506a1 100644
--- a/server/sonar-web/src/main/js/apps/overview/pullRequests/__tests__/__snapshots__/PullRequestOverview-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/overview/pullRequests/__tests__/__snapshots__/PullRequestOverview-test.tsx.snap
@@ -30,33 +30,33 @@ exports[`should render correctly for a failed QG 1`] = `
</h2>
<Memo(LargeQualityGateBadge)
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "TRK",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
level="ERROR"
/>
<withCurrentUserContext(SonarLintPromotion)
qgConditions={
- Array [
- Object {
+ [
+ {
"actual": "10",
"error": "1.0",
"level": "OK",
@@ -64,7 +64,7 @@ exports[`should render correctly for a failed QG 1`] = `
"op": "GT",
"period": 1,
},
- Object {
+ {
"actual": "10",
"error": "1.0",
"level": "ERROR",
@@ -86,7 +86,7 @@ exports[`should render correctly for a failed QG 1`] = `
</h2>
<Memo(QualityGateConditions)
branchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"base": "master",
"branch": "feature/foo/bar",
@@ -97,42 +97,42 @@ exports[`should render correctly for a failed QG 1`] = `
}
collapsible={true}
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "TRK",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
failedConditions={
- Array [
- Object {
+ [
+ {
"actual": "10",
"error": "1.0",
"level": "ERROR",
- "measure": Object {
+ "measure": {
"bestValue": true,
- "metric": Object {
+ "metric": {
"id": "new_code_smells",
"key": "new_code_smells",
"name": "new_code_smells",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
@@ -167,7 +167,7 @@ exports[`should render correctly for a failed QG 1`] = `
>
<Memo(IssueLabel)
branchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"base": "master",
"branch": "feature/foo/bar",
@@ -177,83 +177,83 @@ exports[`should render correctly for a failed QG 1`] = `
}
}
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "TRK",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
measures={
- Array [
- Object {
+ [
+ {
"bestValue": true,
- "metric": Object {
+ "metric": {
"id": "new_bugs",
"key": "new_bugs",
"name": "new_bugs",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
- "metric": Object {
+ "metric": {
"id": "new_vulnerabilities",
"key": "new_vulnerabilities",
"name": "new_vulnerabilities",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
- "metric": Object {
+ "metric": {
"id": "new_code_smells",
"key": "new_code_smells",
"name": "new_code_smells",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
- "metric": Object {
+ "metric": {
"id": "new_security_hotspots",
"key": "new_security_hotspots",
"name": "new_security_hotspots",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
@@ -271,7 +271,7 @@ exports[`should render correctly for a failed QG 1`] = `
>
<Memo(IssueRating)
branchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"base": "master",
"branch": "feature/foo/bar",
@@ -281,83 +281,83 @@ exports[`should render correctly for a failed QG 1`] = `
}
}
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "TRK",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
measures={
- Array [
- Object {
+ [
+ {
"bestValue": true,
- "metric": Object {
+ "metric": {
"id": "new_bugs",
"key": "new_bugs",
"name": "new_bugs",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
- "metric": Object {
+ "metric": {
"id": "new_vulnerabilities",
"key": "new_vulnerabilities",
"name": "new_vulnerabilities",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
- "metric": Object {
+ "metric": {
"id": "new_code_smells",
"key": "new_code_smells",
"name": "new_code_smells",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
- "metric": Object {
+ "metric": {
"id": "new_security_hotspots",
"key": "new_security_hotspots",
"name": "new_security_hotspots",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
@@ -380,7 +380,7 @@ exports[`should render correctly for a failed QG 1`] = `
>
<Memo(IssueLabel)
branchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"base": "master",
"branch": "feature/foo/bar",
@@ -390,83 +390,83 @@ exports[`should render correctly for a failed QG 1`] = `
}
}
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "TRK",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
measures={
- Array [
- Object {
+ [
+ {
"bestValue": true,
- "metric": Object {
+ "metric": {
"id": "new_bugs",
"key": "new_bugs",
"name": "new_bugs",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
- "metric": Object {
+ "metric": {
"id": "new_vulnerabilities",
"key": "new_vulnerabilities",
"name": "new_vulnerabilities",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
- "metric": Object {
+ "metric": {
"id": "new_code_smells",
"key": "new_code_smells",
"name": "new_code_smells",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
- "metric": Object {
+ "metric": {
"id": "new_security_hotspots",
"key": "new_security_hotspots",
"name": "new_security_hotspots",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
@@ -484,7 +484,7 @@ exports[`should render correctly for a failed QG 1`] = `
>
<Memo(IssueRating)
branchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"base": "master",
"branch": "feature/foo/bar",
@@ -494,83 +494,83 @@ exports[`should render correctly for a failed QG 1`] = `
}
}
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "TRK",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
measures={
- Array [
- Object {
+ [
+ {
"bestValue": true,
- "metric": Object {
+ "metric": {
"id": "new_bugs",
"key": "new_bugs",
"name": "new_bugs",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
- "metric": Object {
+ "metric": {
"id": "new_vulnerabilities",
"key": "new_vulnerabilities",
"name": "new_vulnerabilities",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
- "metric": Object {
+ "metric": {
"id": "new_code_smells",
"key": "new_code_smells",
"name": "new_code_smells",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
- "metric": Object {
+ "metric": {
"id": "new_security_hotspots",
"key": "new_security_hotspots",
"name": "new_security_hotspots",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
@@ -593,7 +593,7 @@ exports[`should render correctly for a failed QG 1`] = `
>
<Memo(IssueLabel)
branchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"base": "master",
"branch": "feature/foo/bar",
@@ -603,83 +603,83 @@ exports[`should render correctly for a failed QG 1`] = `
}
}
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "TRK",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
measures={
- Array [
- Object {
+ [
+ {
"bestValue": true,
- "metric": Object {
+ "metric": {
"id": "new_bugs",
"key": "new_bugs",
"name": "new_bugs",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
- "metric": Object {
+ "metric": {
"id": "new_vulnerabilities",
"key": "new_vulnerabilities",
"name": "new_vulnerabilities",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
- "metric": Object {
+ "metric": {
"id": "new_code_smells",
"key": "new_code_smells",
"name": "new_code_smells",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
- "metric": Object {
+ "metric": {
"id": "new_security_hotspots",
"key": "new_security_hotspots",
"name": "new_security_hotspots",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
@@ -697,7 +697,7 @@ exports[`should render correctly for a failed QG 1`] = `
>
<Memo(IssueRating)
branchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"base": "master",
"branch": "feature/foo/bar",
@@ -707,83 +707,83 @@ exports[`should render correctly for a failed QG 1`] = `
}
}
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "TRK",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
measures={
- Array [
- Object {
+ [
+ {
"bestValue": true,
- "metric": Object {
+ "metric": {
"id": "new_bugs",
"key": "new_bugs",
"name": "new_bugs",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
- "metric": Object {
+ "metric": {
"id": "new_vulnerabilities",
"key": "new_vulnerabilities",
"name": "new_vulnerabilities",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
- "metric": Object {
+ "metric": {
"id": "new_code_smells",
"key": "new_code_smells",
"name": "new_code_smells",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
- "metric": Object {
+ "metric": {
"id": "new_security_hotspots",
"key": "new_security_hotspots",
"name": "new_security_hotspots",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
@@ -806,7 +806,7 @@ exports[`should render correctly for a failed QG 1`] = `
>
<Memo(IssueLabel)
branchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"base": "master",
"branch": "feature/foo/bar",
@@ -816,83 +816,83 @@ exports[`should render correctly for a failed QG 1`] = `
}
}
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "TRK",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
measures={
- Array [
- Object {
+ [
+ {
"bestValue": true,
- "metric": Object {
+ "metric": {
"id": "new_bugs",
"key": "new_bugs",
"name": "new_bugs",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
- "metric": Object {
+ "metric": {
"id": "new_vulnerabilities",
"key": "new_vulnerabilities",
"name": "new_vulnerabilities",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
- "metric": Object {
+ "metric": {
"id": "new_code_smells",
"key": "new_code_smells",
"name": "new_code_smells",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
- "metric": Object {
+ "metric": {
"id": "new_security_hotspots",
"key": "new_security_hotspots",
"name": "new_security_hotspots",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
@@ -910,7 +910,7 @@ exports[`should render correctly for a failed QG 1`] = `
>
<Memo(IssueRating)
branchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"base": "master",
"branch": "feature/foo/bar",
@@ -920,83 +920,83 @@ exports[`should render correctly for a failed QG 1`] = `
}
}
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "TRK",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
measures={
- Array [
- Object {
+ [
+ {
"bestValue": true,
- "metric": Object {
+ "metric": {
"id": "new_bugs",
"key": "new_bugs",
"name": "new_bugs",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
- "metric": Object {
+ "metric": {
"id": "new_vulnerabilities",
"key": "new_vulnerabilities",
"name": "new_vulnerabilities",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
- "metric": Object {
+ "metric": {
"id": "new_code_smells",
"key": "new_code_smells",
"name": "new_code_smells",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
- "metric": Object {
+ "metric": {
"id": "new_security_hotspots",
"key": "new_security_hotspots",
"name": "new_security_hotspots",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
@@ -1019,7 +1019,7 @@ exports[`should render correctly for a failed QG 1`] = `
>
<MeasurementLabel
branchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"base": "master",
"branch": "feature/foo/bar",
@@ -1029,83 +1029,83 @@ exports[`should render correctly for a failed QG 1`] = `
}
}
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "TRK",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
measures={
- Array [
- Object {
+ [
+ {
"bestValue": true,
- "metric": Object {
+ "metric": {
"id": "new_bugs",
"key": "new_bugs",
"name": "new_bugs",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
- "metric": Object {
+ "metric": {
"id": "new_vulnerabilities",
"key": "new_vulnerabilities",
"name": "new_vulnerabilities",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
- "metric": Object {
+ "metric": {
"id": "new_code_smells",
"key": "new_code_smells",
"name": "new_code_smells",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
- "metric": Object {
+ "metric": {
"id": "new_security_hotspots",
"key": "new_security_hotspots",
"name": "new_security_hotspots",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
@@ -1121,61 +1121,61 @@ exports[`should render correctly for a failed QG 1`] = `
<Memo(AfterMergeEstimate)
className="overview-panel-big-padded overview-measures-aside text-right overview-measures-emphasis"
measures={
- Array [
- Object {
+ [
+ {
"bestValue": true,
- "metric": Object {
+ "metric": {
"id": "new_bugs",
"key": "new_bugs",
"name": "new_bugs",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
- "metric": Object {
+ "metric": {
"id": "new_vulnerabilities",
"key": "new_vulnerabilities",
"name": "new_vulnerabilities",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
- "metric": Object {
+ "metric": {
"id": "new_code_smells",
"key": "new_code_smells",
"name": "new_code_smells",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
- "metric": Object {
+ "metric": {
"id": "new_security_hotspots",
"key": "new_security_hotspots",
"name": "new_security_hotspots",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
@@ -1196,7 +1196,7 @@ exports[`should render correctly for a failed QG 1`] = `
>
<MeasurementLabel
branchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"base": "master",
"branch": "feature/foo/bar",
@@ -1206,83 +1206,83 @@ exports[`should render correctly for a failed QG 1`] = `
}
}
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "TRK",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
measures={
- Array [
- Object {
+ [
+ {
"bestValue": true,
- "metric": Object {
+ "metric": {
"id": "new_bugs",
"key": "new_bugs",
"name": "new_bugs",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
- "metric": Object {
+ "metric": {
"id": "new_vulnerabilities",
"key": "new_vulnerabilities",
"name": "new_vulnerabilities",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
- "metric": Object {
+ "metric": {
"id": "new_code_smells",
"key": "new_code_smells",
"name": "new_code_smells",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
- "metric": Object {
+ "metric": {
"id": "new_security_hotspots",
"key": "new_security_hotspots",
"name": "new_security_hotspots",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
@@ -1298,61 +1298,61 @@ exports[`should render correctly for a failed QG 1`] = `
<Memo(AfterMergeEstimate)
className="overview-panel-big-padded overview-measures-aside text-right overview-measures-emphasis"
measures={
- Array [
- Object {
+ [
+ {
"bestValue": true,
- "metric": Object {
+ "metric": {
"id": "new_bugs",
"key": "new_bugs",
"name": "new_bugs",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
- "metric": Object {
+ "metric": {
"id": "new_vulnerabilities",
"key": "new_vulnerabilities",
"name": "new_vulnerabilities",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
- "metric": Object {
+ "metric": {
"id": "new_code_smells",
"key": "new_code_smells",
"name": "new_code_smells",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
- "metric": Object {
+ "metric": {
"id": "new_security_hotspots",
"key": "new_security_hotspots",
"name": "new_security_hotspots",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
@@ -1401,31 +1401,31 @@ exports[`should render correctly for a passed QG 1`] = `
</h2>
<Memo(LargeQualityGateBadge)
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "TRK",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
level="OK"
/>
<withCurrentUserContext(SonarLintPromotion)
- qgConditions={Array []}
+ qgConditions={[]}
/>
</div>
<div
@@ -1448,7 +1448,7 @@ exports[`should render correctly for a passed QG 1`] = `
>
<Memo(IssueLabel)
branchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"base": "master",
"branch": "feature/foo/bar",
@@ -1458,83 +1458,83 @@ exports[`should render correctly for a passed QG 1`] = `
}
}
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "TRK",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
measures={
- Array [
- Object {
+ [
+ {
"bestValue": true,
- "metric": Object {
+ "metric": {
"id": "new_bugs",
"key": "new_bugs",
"name": "new_bugs",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
- "metric": Object {
+ "metric": {
"id": "new_vulnerabilities",
"key": "new_vulnerabilities",
"name": "new_vulnerabilities",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
- "metric": Object {
+ "metric": {
"id": "new_code_smells",
"key": "new_code_smells",
"name": "new_code_smells",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
- "metric": Object {
+ "metric": {
"id": "new_security_hotspots",
"key": "new_security_hotspots",
"name": "new_security_hotspots",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
@@ -1552,7 +1552,7 @@ exports[`should render correctly for a passed QG 1`] = `
>
<Memo(IssueRating)
branchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"base": "master",
"branch": "feature/foo/bar",
@@ -1562,83 +1562,83 @@ exports[`should render correctly for a passed QG 1`] = `
}
}
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "TRK",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
measures={
- Array [
- Object {
+ [
+ {
"bestValue": true,
- "metric": Object {
+ "metric": {
"id": "new_bugs",
"key": "new_bugs",
"name": "new_bugs",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
- "metric": Object {
+ "metric": {
"id": "new_vulnerabilities",
"key": "new_vulnerabilities",
"name": "new_vulnerabilities",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
- "metric": Object {
+ "metric": {
"id": "new_code_smells",
"key": "new_code_smells",
"name": "new_code_smells",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
- "metric": Object {
+ "metric": {
"id": "new_security_hotspots",
"key": "new_security_hotspots",
"name": "new_security_hotspots",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
@@ -1661,7 +1661,7 @@ exports[`should render correctly for a passed QG 1`] = `
>
<Memo(IssueLabel)
branchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"base": "master",
"branch": "feature/foo/bar",
@@ -1671,83 +1671,83 @@ exports[`should render correctly for a passed QG 1`] = `
}
}
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "TRK",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
measures={
- Array [
- Object {
+ [
+ {
"bestValue": true,
- "metric": Object {
+ "metric": {
"id": "new_bugs",
"key": "new_bugs",
"name": "new_bugs",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
- "metric": Object {
+ "metric": {
"id": "new_vulnerabilities",
"key": "new_vulnerabilities",
"name": "new_vulnerabilities",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
- "metric": Object {
+ "metric": {
"id": "new_code_smells",
"key": "new_code_smells",
"name": "new_code_smells",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
- "metric": Object {
+ "metric": {
"id": "new_security_hotspots",
"key": "new_security_hotspots",
"name": "new_security_hotspots",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
@@ -1765,7 +1765,7 @@ exports[`should render correctly for a passed QG 1`] = `
>
<Memo(IssueRating)
branchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"base": "master",
"branch": "feature/foo/bar",
@@ -1775,83 +1775,83 @@ exports[`should render correctly for a passed QG 1`] = `
}
}
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "TRK",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
measures={
- Array [
- Object {
+ [
+ {
"bestValue": true,
- "metric": Object {
+ "metric": {
"id": "new_bugs",
"key": "new_bugs",
"name": "new_bugs",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
- "metric": Object {
+ "metric": {
"id": "new_vulnerabilities",
"key": "new_vulnerabilities",
"name": "new_vulnerabilities",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
- "metric": Object {
+ "metric": {
"id": "new_code_smells",
"key": "new_code_smells",
"name": "new_code_smells",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
- "metric": Object {
+ "metric": {
"id": "new_security_hotspots",
"key": "new_security_hotspots",
"name": "new_security_hotspots",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
@@ -1874,7 +1874,7 @@ exports[`should render correctly for a passed QG 1`] = `
>
<Memo(IssueLabel)
branchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"base": "master",
"branch": "feature/foo/bar",
@@ -1884,83 +1884,83 @@ exports[`should render correctly for a passed QG 1`] = `
}
}
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "TRK",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
measures={
- Array [
- Object {
+ [
+ {
"bestValue": true,
- "metric": Object {
+ "metric": {
"id": "new_bugs",
"key": "new_bugs",
"name": "new_bugs",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
- "metric": Object {
+ "metric": {
"id": "new_vulnerabilities",
"key": "new_vulnerabilities",
"name": "new_vulnerabilities",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
- "metric": Object {
+ "metric": {
"id": "new_code_smells",
"key": "new_code_smells",
"name": "new_code_smells",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
- "metric": Object {
+ "metric": {
"id": "new_security_hotspots",
"key": "new_security_hotspots",
"name": "new_security_hotspots",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
@@ -1978,7 +1978,7 @@ exports[`should render correctly for a passed QG 1`] = `
>
<Memo(IssueRating)
branchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"base": "master",
"branch": "feature/foo/bar",
@@ -1988,83 +1988,83 @@ exports[`should render correctly for a passed QG 1`] = `
}
}
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "TRK",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
measures={
- Array [
- Object {
+ [
+ {
"bestValue": true,
- "metric": Object {
+ "metric": {
"id": "new_bugs",
"key": "new_bugs",
"name": "new_bugs",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
- "metric": Object {
+ "metric": {
"id": "new_vulnerabilities",
"key": "new_vulnerabilities",
"name": "new_vulnerabilities",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
- "metric": Object {
+ "metric": {
"id": "new_code_smells",
"key": "new_code_smells",
"name": "new_code_smells",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
- "metric": Object {
+ "metric": {
"id": "new_security_hotspots",
"key": "new_security_hotspots",
"name": "new_security_hotspots",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
@@ -2087,7 +2087,7 @@ exports[`should render correctly for a passed QG 1`] = `
>
<Memo(IssueLabel)
branchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"base": "master",
"branch": "feature/foo/bar",
@@ -2097,83 +2097,83 @@ exports[`should render correctly for a passed QG 1`] = `
}
}
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "TRK",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
measures={
- Array [
- Object {
+ [
+ {
"bestValue": true,
- "metric": Object {
+ "metric": {
"id": "new_bugs",
"key": "new_bugs",
"name": "new_bugs",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
- "metric": Object {
+ "metric": {
"id": "new_vulnerabilities",
"key": "new_vulnerabilities",
"name": "new_vulnerabilities",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
- "metric": Object {
+ "metric": {
"id": "new_code_smells",
"key": "new_code_smells",
"name": "new_code_smells",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
- "metric": Object {
+ "metric": {
"id": "new_security_hotspots",
"key": "new_security_hotspots",
"name": "new_security_hotspots",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
@@ -2191,7 +2191,7 @@ exports[`should render correctly for a passed QG 1`] = `
>
<Memo(IssueRating)
branchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"base": "master",
"branch": "feature/foo/bar",
@@ -2201,83 +2201,83 @@ exports[`should render correctly for a passed QG 1`] = `
}
}
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "TRK",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
measures={
- Array [
- Object {
+ [
+ {
"bestValue": true,
- "metric": Object {
+ "metric": {
"id": "new_bugs",
"key": "new_bugs",
"name": "new_bugs",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
- "metric": Object {
+ "metric": {
"id": "new_vulnerabilities",
"key": "new_vulnerabilities",
"name": "new_vulnerabilities",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
- "metric": Object {
+ "metric": {
"id": "new_code_smells",
"key": "new_code_smells",
"name": "new_code_smells",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
- "metric": Object {
+ "metric": {
"id": "new_security_hotspots",
"key": "new_security_hotspots",
"name": "new_security_hotspots",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
@@ -2300,7 +2300,7 @@ exports[`should render correctly for a passed QG 1`] = `
>
<MeasurementLabel
branchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"base": "master",
"branch": "feature/foo/bar",
@@ -2310,83 +2310,83 @@ exports[`should render correctly for a passed QG 1`] = `
}
}
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "TRK",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
measures={
- Array [
- Object {
+ [
+ {
"bestValue": true,
- "metric": Object {
+ "metric": {
"id": "new_bugs",
"key": "new_bugs",
"name": "new_bugs",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
- "metric": Object {
+ "metric": {
"id": "new_vulnerabilities",
"key": "new_vulnerabilities",
"name": "new_vulnerabilities",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
- "metric": Object {
+ "metric": {
"id": "new_code_smells",
"key": "new_code_smells",
"name": "new_code_smells",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
- "metric": Object {
+ "metric": {
"id": "new_security_hotspots",
"key": "new_security_hotspots",
"name": "new_security_hotspots",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
@@ -2402,61 +2402,61 @@ exports[`should render correctly for a passed QG 1`] = `
<Memo(AfterMergeEstimate)
className="overview-panel-big-padded overview-measures-aside text-right overview-measures-emphasis"
measures={
- Array [
- Object {
+ [
+ {
"bestValue": true,
- "metric": Object {
+ "metric": {
"id": "new_bugs",
"key": "new_bugs",
"name": "new_bugs",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
- "metric": Object {
+ "metric": {
"id": "new_vulnerabilities",
"key": "new_vulnerabilities",
"name": "new_vulnerabilities",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
- "metric": Object {
+ "metric": {
"id": "new_code_smells",
"key": "new_code_smells",
"name": "new_code_smells",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
- "metric": Object {
+ "metric": {
"id": "new_security_hotspots",
"key": "new_security_hotspots",
"name": "new_security_hotspots",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
@@ -2477,7 +2477,7 @@ exports[`should render correctly for a passed QG 1`] = `
>
<MeasurementLabel
branchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"base": "master",
"branch": "feature/foo/bar",
@@ -2487,83 +2487,83 @@ exports[`should render correctly for a passed QG 1`] = `
}
}
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "TRK",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
measures={
- Array [
- Object {
+ [
+ {
"bestValue": true,
- "metric": Object {
+ "metric": {
"id": "new_bugs",
"key": "new_bugs",
"name": "new_bugs",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
- "metric": Object {
+ "metric": {
"id": "new_vulnerabilities",
"key": "new_vulnerabilities",
"name": "new_vulnerabilities",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
- "metric": Object {
+ "metric": {
"id": "new_code_smells",
"key": "new_code_smells",
"name": "new_code_smells",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
- "metric": Object {
+ "metric": {
"id": "new_security_hotspots",
"key": "new_security_hotspots",
"name": "new_security_hotspots",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
@@ -2579,61 +2579,61 @@ exports[`should render correctly for a passed QG 1`] = `
<Memo(AfterMergeEstimate)
className="overview-panel-big-padded overview-measures-aside text-right overview-measures-emphasis"
measures={
- Array [
- Object {
+ [
+ {
"bestValue": true,
- "metric": Object {
+ "metric": {
"id": "new_bugs",
"key": "new_bugs",
"name": "new_bugs",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
- "metric": Object {
+ "metric": {
"id": "new_vulnerabilities",
"key": "new_vulnerabilities",
"name": "new_vulnerabilities",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
- "metric": Object {
+ "metric": {
"id": "new_code_smells",
"key": "new_code_smells",
"name": "new_code_smells",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
},
"value": "1.0",
},
- Object {
+ {
"bestValue": true,
- "metric": Object {
+ "metric": {
"id": "new_security_hotspots",
"key": "new_security_hotspots",
"name": "new_security_hotspots",
"type": "PERCENT",
},
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
diff --git a/server/sonar-web/src/main/js/apps/permission-templates/components/__tests__/__snapshots__/App-test.tsx.snap b/server/sonar-web/src/main/js/apps/permission-templates/components/__tests__/__snapshots__/App-test.tsx.snap
index e053a57b4a5..df6976323cd 100644
--- a/server/sonar-web/src/main/js/apps/permission-templates/components/__tests__/__snapshots__/App-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/permission-templates/components/__tests__/__snapshots__/App-test.tsx.snap
@@ -12,12 +12,12 @@ exports[`should render correctly 1`] = `
title="permission_templates.page"
/>
<Home
- permissionTemplates={Array []}
- permissions={Array []}
+ permissionTemplates={[]}
+ permissions={[]}
ready={false}
refresh={[Function]}
topQualifiers={
- Array [
+ [
"TRK",
]
}
@@ -38,17 +38,17 @@ exports[`should render correctly 2`] = `
/>
<Home
permissionTemplates={
- Array [
- Object {
+ [
+ {
"createdAt": "2019-02-07T17:23:26+0100",
- "defaultFor": Array [
+ "defaultFor": [
"TRK",
],
"description": "Default permission template",
"id": "1",
"name": "Default template",
- "permissions": Array [
- Object {
+ "permissions": [
+ {
"description": "Code viewer permission",
"groupsCount": 1,
"key": "codeviewer",
@@ -56,7 +56,7 @@ exports[`should render correctly 2`] = `
"usersCount": 0,
"withProjectCreator": false,
},
- Object {
+ {
"description": "Admin permission",
"groupsCount": 1,
"key": "admin",
@@ -70,13 +70,13 @@ exports[`should render correctly 2`] = `
]
}
permissions={
- Array [
- Object {
+ [
+ {
"description": "Code viewer permission",
"key": "codeviewer",
"name": "See Source Code",
},
- Object {
+ {
"description": "Admin permission",
"key": "admin",
"name": "Administer",
@@ -86,7 +86,7 @@ exports[`should render correctly 2`] = `
ready={true}
refresh={[Function]}
topQualifiers={
- Array [
+ [
"TRK",
]
}
diff --git a/server/sonar-web/src/main/js/apps/permission-templates/components/__tests__/__snapshots__/ListItem-test.tsx.snap b/server/sonar-web/src/main/js/apps/permission-templates/components/__tests__/__snapshots__/ListItem-test.tsx.snap
index ecd0a74aeb6..44b252caa0c 100644
--- a/server/sonar-web/src/main/js/apps/permission-templates/components/__tests__/__snapshots__/ListItem-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/permission-templates/components/__tests__/__snapshots__/ListItem-test.tsx.snap
@@ -7,12 +7,12 @@ exports[`render correctly 1`] = `
>
<NameCell
template={
- Object {
+ {
"createdAt": "2020-01-01",
- "defaultFor": Array [],
+ "defaultFor": [],
"id": "1",
"name": "test",
- "permissions": Array [],
+ "permissions": [],
}
}
/>
@@ -21,16 +21,16 @@ exports[`render correctly 1`] = `
>
<withRouter(ActionsCell)
permissionTemplate={
- Object {
+ {
"createdAt": "2020-01-01",
- "defaultFor": Array [],
+ "defaultFor": [],
"id": "1",
"name": "test",
- "permissions": Array [],
+ "permissions": [],
}
}
refresh={[Function]}
- topQualifiers={Array []}
+ topQualifiers={[]}
/>
</td>
</tr>
diff --git a/server/sonar-web/src/main/js/apps/permission-templates/components/__tests__/__snapshots__/NameCell-test.tsx.snap b/server/sonar-web/src/main/js/apps/permission-templates/components/__tests__/__snapshots__/NameCell-test.tsx.snap
index a6c24bb7e16..acb52f514c6 100644
--- a/server/sonar-web/src/main/js/apps/permission-templates/components/__tests__/__snapshots__/NameCell-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/permission-templates/components/__tests__/__snapshots__/NameCell-test.tsx.snap
@@ -6,7 +6,7 @@ exports[`render correctly 1`] = `
>
<ForwardRef(Link)
to={
- Object {
+ {
"pathname": "/admin/permission_templates",
"search": "?id=1",
}
@@ -23,14 +23,14 @@ exports[`render correctly 1`] = `
>
<Defaults
template={
- Object {
+ {
"createdAt": "2020-01-01",
- "defaultFor": Array [
+ "defaultFor": [
"user",
],
"id": "1",
"name": "test",
- "permissions": Array [],
+ "permissions": [],
}
}
/>
diff --git a/server/sonar-web/src/main/js/apps/permission-templates/components/__tests__/__snapshots__/Template-test.tsx.snap b/server/sonar-web/src/main/js/apps/permission-templates/components/__tests__/__snapshots__/Template-test.tsx.snap
index b2d22fb5330..cc47b3c3113 100644
--- a/server/sonar-web/src/main/js/apps/permission-templates/components/__tests__/__snapshots__/Template-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/permission-templates/components/__tests__/__snapshots__/Template-test.tsx.snap
@@ -14,60 +14,60 @@ exports[`render correctly 1`] = `
loading={true}
refresh={[Function]}
template={
- Object {
+ {
"createdAt": "2020-01-01",
- "defaultFor": Array [],
+ "defaultFor": [],
"id": "1",
"name": "test",
- "permissions": Array [],
+ "permissions": [],
}
}
- topQualifiers={Array []}
+ topQualifiers={[]}
/>
<TemplateDetails
template={
- Object {
+ {
"createdAt": "2020-01-01",
- "defaultFor": Array [],
+ "defaultFor": [],
"id": "1",
"name": "test",
- "permissions": Array [],
+ "permissions": [],
}
}
/>
<HoldersList
- groups={Array []}
+ groups={[]}
onSelectPermission={[Function]}
onToggleGroup={[Function]}
onToggleUser={[Function]}
permissions={
- Array [
- Object {
+ [
+ {
"description": "projects_role.user.desc",
"key": "user",
"name": "projects_role.user",
},
- Object {
+ {
"description": "projects_role.codeviewer.desc",
"key": "codeviewer",
"name": "projects_role.codeviewer",
},
- Object {
+ {
"description": "projects_role.issueadmin.desc",
"key": "issueadmin",
"name": "projects_role.issueadmin",
},
- Object {
+ {
"description": "projects_role.securityhotspotadmin.desc",
"key": "securityhotspotadmin",
"name": "projects_role.securityhotspotadmin",
},
- Object {
+ {
"description": "projects_role.admin.desc",
"key": "admin",
"name": "projects_role.admin",
},
- Object {
+ {
"description": "projects_role.scan.desc",
"key": "scan",
"name": "projects_role.scan",
@@ -76,11 +76,11 @@ exports[`render correctly 1`] = `
}
showPublicProjectsWarning={true}
users={
- Array [
- Object {
+ [
+ {
"login": "<creator>",
"name": "permission_templates.project_creators",
- "permissions": Array [],
+ "permissions": [],
},
]
}
diff --git a/server/sonar-web/src/main/js/apps/permissions/global/components/__tests__/__snapshots__/AllHoldersList-test.tsx.snap b/server/sonar-web/src/main/js/apps/permissions/global/components/__tests__/__snapshots__/AllHoldersList-test.tsx.snap
index 62855ead53b..829c3a7c22d 100644
--- a/server/sonar-web/src/main/js/apps/permissions/global/components/__tests__/__snapshots__/AllHoldersList-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/permissions/global/components/__tests__/__snapshots__/AllHoldersList-test.tsx.snap
@@ -5,10 +5,10 @@ exports[`should render correctly: applications available 1`] = `
<HoldersList
filter=""
groups={
- Array [
- Object {
+ [
+ {
"name": "sonar-admins",
- "permissions": Array [
+ "permissions": [
"provisioning",
],
},
@@ -17,41 +17,41 @@ exports[`should render correctly: applications available 1`] = `
onToggleGroup={[Function]}
onToggleUser={[Function]}
permissions={
- Array [
- Object {
+ [
+ {
"description": "global_permissions.admin.desc",
"key": "admin",
"name": "global_permissions.admin",
},
- Object {
+ {
"category": "administer",
- "permissions": Array [
- Object {
+ "permissions": [
+ {
"description": "global_permissions.gateadmin.desc",
"key": "gateadmin",
"name": "global_permissions.gateadmin",
},
- Object {
+ {
"description": "global_permissions.profileadmin.desc",
"key": "profileadmin",
"name": "global_permissions.profileadmin",
},
],
},
- Object {
+ {
"description": "global_permissions.scan.desc",
"key": "scan",
"name": "global_permissions.scan",
},
- Object {
+ {
"category": "creator",
- "permissions": Array [
- Object {
+ "permissions": [
+ {
"description": "global_permissions.provisioning.desc",
"key": "provisioning",
"name": "global_permissions.provisioning",
},
- Object {
+ {
"description": "global_permissions.applicationcreator.desc",
"key": "applicationcreator",
"name": "global_permissions.applicationcreator",
@@ -62,13 +62,13 @@ exports[`should render correctly: applications available 1`] = `
}
query=""
users={
- Array [
- Object {
+ [
+ {
"active": true,
"local": true,
"login": "john.doe",
"name": "johndoe",
- "permissions": Array [
+ "permissions": [
"provisioning",
],
},
@@ -95,10 +95,10 @@ exports[`should render correctly: default 1`] = `
<HoldersList
filter=""
groups={
- Array [
- Object {
+ [
+ {
"name": "sonar-admins",
- "permissions": Array [
+ "permissions": [
"provisioning",
],
},
@@ -107,36 +107,36 @@ exports[`should render correctly: default 1`] = `
onToggleGroup={[Function]}
onToggleUser={[Function]}
permissions={
- Array [
- Object {
+ [
+ {
"description": "global_permissions.admin.desc",
"key": "admin",
"name": "global_permissions.admin",
},
- Object {
+ {
"category": "administer",
- "permissions": Array [
- Object {
+ "permissions": [
+ {
"description": "global_permissions.gateadmin.desc",
"key": "gateadmin",
"name": "global_permissions.gateadmin",
},
- Object {
+ {
"description": "global_permissions.profileadmin.desc",
"key": "profileadmin",
"name": "global_permissions.profileadmin",
},
],
},
- Object {
+ {
"description": "global_permissions.scan.desc",
"key": "scan",
"name": "global_permissions.scan",
},
- Object {
+ {
"category": "creator",
- "permissions": Array [
- Object {
+ "permissions": [
+ {
"description": "global_permissions.provisioning.desc",
"key": "provisioning",
"name": "global_permissions.provisioning",
@@ -147,13 +147,13 @@ exports[`should render correctly: default 1`] = `
}
query=""
users={
- Array [
- Object {
+ [
+ {
"active": true,
"local": true,
"login": "john.doe",
"name": "johndoe",
- "permissions": Array [
+ "permissions": [
"provisioning",
],
},
@@ -180,10 +180,10 @@ exports[`should render correctly: filter groups 1`] = `
<HoldersList
filter="groups"
groups={
- Array [
- Object {
+ [
+ {
"name": "sonar-admins",
- "permissions": Array [
+ "permissions": [
"provisioning",
],
},
@@ -192,36 +192,36 @@ exports[`should render correctly: filter groups 1`] = `
onToggleGroup={[Function]}
onToggleUser={[Function]}
permissions={
- Array [
- Object {
+ [
+ {
"description": "global_permissions.admin.desc",
"key": "admin",
"name": "global_permissions.admin",
},
- Object {
+ {
"category": "administer",
- "permissions": Array [
- Object {
+ "permissions": [
+ {
"description": "global_permissions.gateadmin.desc",
"key": "gateadmin",
"name": "global_permissions.gateadmin",
},
- Object {
+ {
"description": "global_permissions.profileadmin.desc",
"key": "profileadmin",
"name": "global_permissions.profileadmin",
},
],
},
- Object {
+ {
"description": "global_permissions.scan.desc",
"key": "scan",
"name": "global_permissions.scan",
},
- Object {
+ {
"category": "creator",
- "permissions": Array [
- Object {
+ "permissions": [
+ {
"description": "global_permissions.provisioning.desc",
"key": "provisioning",
"name": "global_permissions.provisioning",
@@ -232,13 +232,13 @@ exports[`should render correctly: filter groups 1`] = `
}
query=""
users={
- Array [
- Object {
+ [
+ {
"active": true,
"local": true,
"login": "john.doe",
"name": "johndoe",
- "permissions": Array [
+ "permissions": [
"provisioning",
],
},
@@ -265,10 +265,10 @@ exports[`should render correctly: filter users 1`] = `
<HoldersList
filter="users"
groups={
- Array [
- Object {
+ [
+ {
"name": "sonar-admins",
- "permissions": Array [
+ "permissions": [
"provisioning",
],
},
@@ -277,36 +277,36 @@ exports[`should render correctly: filter users 1`] = `
onToggleGroup={[Function]}
onToggleUser={[Function]}
permissions={
- Array [
- Object {
+ [
+ {
"description": "global_permissions.admin.desc",
"key": "admin",
"name": "global_permissions.admin",
},
- Object {
+ {
"category": "administer",
- "permissions": Array [
- Object {
+ "permissions": [
+ {
"description": "global_permissions.gateadmin.desc",
"key": "gateadmin",
"name": "global_permissions.gateadmin",
},
- Object {
+ {
"description": "global_permissions.profileadmin.desc",
"key": "profileadmin",
"name": "global_permissions.profileadmin",
},
],
},
- Object {
+ {
"description": "global_permissions.scan.desc",
"key": "scan",
"name": "global_permissions.scan",
},
- Object {
+ {
"category": "creator",
- "permissions": Array [
- Object {
+ "permissions": [
+ {
"description": "global_permissions.provisioning.desc",
"key": "provisioning",
"name": "global_permissions.provisioning",
@@ -317,13 +317,13 @@ exports[`should render correctly: filter users 1`] = `
}
query=""
users={
- Array [
- Object {
+ [
+ {
"active": true,
"local": true,
"login": "john.doe",
"name": "johndoe",
- "permissions": Array [
+ "permissions": [
"provisioning",
],
},
@@ -350,10 +350,10 @@ exports[`should render correctly: portfolios available 1`] = `
<HoldersList
filter=""
groups={
- Array [
- Object {
+ [
+ {
"name": "sonar-admins",
- "permissions": Array [
+ "permissions": [
"provisioning",
],
},
@@ -362,41 +362,41 @@ exports[`should render correctly: portfolios available 1`] = `
onToggleGroup={[Function]}
onToggleUser={[Function]}
permissions={
- Array [
- Object {
+ [
+ {
"description": "global_permissions.admin.desc",
"key": "admin",
"name": "global_permissions.admin",
},
- Object {
+ {
"category": "administer",
- "permissions": Array [
- Object {
+ "permissions": [
+ {
"description": "global_permissions.gateadmin.desc",
"key": "gateadmin",
"name": "global_permissions.gateadmin",
},
- Object {
+ {
"description": "global_permissions.profileadmin.desc",
"key": "profileadmin",
"name": "global_permissions.profileadmin",
},
],
},
- Object {
+ {
"description": "global_permissions.scan.desc",
"key": "scan",
"name": "global_permissions.scan",
},
- Object {
+ {
"category": "creator",
- "permissions": Array [
- Object {
+ "permissions": [
+ {
"description": "global_permissions.provisioning.desc",
"key": "provisioning",
"name": "global_permissions.provisioning",
},
- Object {
+ {
"description": "global_permissions.portfoliocreator.desc",
"key": "portfoliocreator",
"name": "global_permissions.portfoliocreator",
@@ -407,13 +407,13 @@ exports[`should render correctly: portfolios available 1`] = `
}
query=""
users={
- Array [
- Object {
+ [
+ {
"active": true,
"local": true,
"login": "john.doe",
"name": "johndoe",
- "permissions": Array [
+ "permissions": [
"provisioning",
],
},
diff --git a/server/sonar-web/src/main/js/apps/permissions/global/components/__tests__/__snapshots__/App-test.tsx.snap b/server/sonar-web/src/main/js/apps/permissions/global/components/__tests__/__snapshots__/App-test.tsx.snap
index 17de9f73448..d53531cfe3d 100644
--- a/server/sonar-web/src/main/js/apps/permissions/global/components/__tests__/__snapshots__/App-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/permissions/global/components/__tests__/__snapshots__/App-test.tsx.snap
@@ -20,7 +20,7 @@ exports[`should render correctly 1`] = `
filter="all"
grantPermissionToGroup={[Function]}
grantPermissionToUser={[Function]}
- groups={Array []}
+ groups={[]}
loading={true}
onFilter={[Function]}
onLoadMore={[Function]}
@@ -28,7 +28,7 @@ exports[`should render correctly 1`] = `
query=""
revokePermissionFromGroup={[Function]}
revokePermissionFromUser={[Function]}
- users={Array []}
+ users={[]}
/>
</div>
`;
@@ -54,25 +54,25 @@ exports[`should render correctly 2`] = `
grantPermissionToGroup={[Function]}
grantPermissionToUser={[Function]}
groups={
- Array [
- Object {
+ [
+ {
"name": "Anyone",
- "permissions": Array [
+ "permissions": [
"admin",
"codeviewer",
"issueadmin",
],
},
- Object {
+ {
"description": "SonarSource team",
"id": "1",
"name": "SonarSource",
- "permissions": Array [],
+ "permissions": [],
},
]
}
groupsPaging={
- Object {
+ {
"pageIndex": 1,
"pageSize": 100,
"total": 2,
@@ -86,34 +86,34 @@ exports[`should render correctly 2`] = `
revokePermissionFromGroup={[Function]}
revokePermissionFromUser={[Function]}
users={
- Array [
- Object {
+ [
+ {
"avatar": "admin-avatar",
"email": "admin@gmail.com",
"login": "admin",
"name": "Admin Admin",
- "permissions": Array [
+ "permissions": [
"admin",
],
},
- Object {
+ {
"avatar": "user-avatar-1",
"email": "user1@gmail.com",
"login": "user1",
"name": "User Number 1",
- "permissions": Array [],
+ "permissions": [],
},
- Object {
+ {
"avatar": "user-avatar-2",
"email": "user2@gmail.com",
"login": "user2",
"name": "User Number 2",
- "permissions": Array [],
+ "permissions": [],
},
]
}
usersPaging={
- Object {
+ {
"pageIndex": 1,
"pageSize": 100,
"total": 3,
diff --git a/server/sonar-web/src/main/js/apps/permissions/project/components/__tests__/__snapshots__/App-test.tsx.snap b/server/sonar-web/src/main/js/apps/permissions/project/components/__tests__/__snapshots__/App-test.tsx.snap
index 645156d36dd..6a58d8fdf30 100644
--- a/server/sonar-web/src/main/js/apps/permissions/project/components/__tests__/__snapshots__/App-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/permissions/project/components/__tests__/__snapshots__/App-test.tsx.snap
@@ -13,25 +13,25 @@ exports[`should render correctly 1`] = `
/>
<PageHeader
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "TRK",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
loadHolders={[Function]}
@@ -45,31 +45,31 @@ exports[`should render correctly 1`] = `
</div>
<AllHoldersList
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "TRK",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
filter="all"
grantPermissionToGroup={[Function]}
grantPermissionToUser={[Function]}
- groups={Array []}
+ groups={[]}
onFilterChange={[Function]}
onLoadMore={[Function]}
onPermissionSelect={[Function]}
@@ -77,7 +77,7 @@ exports[`should render correctly 1`] = `
query=""
revokePermissionFromGroup={[Function]}
revokePermissionFromUser={[Function]}
- users={Array []}
+ users={[]}
/>
</div>
`;
@@ -95,25 +95,25 @@ exports[`should render correctly 2`] = `
/>
<PageHeader
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "TRK",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
loadHolders={[Function]}
@@ -127,50 +127,50 @@ exports[`should render correctly 2`] = `
</div>
<AllHoldersList
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "TRK",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
filter="all"
grantPermissionToGroup={[Function]}
grantPermissionToUser={[Function]}
groups={
- Array [
- Object {
+ [
+ {
"name": "Anyone",
- "permissions": Array [
+ "permissions": [
"admin",
"codeviewer",
"issueadmin",
],
},
- Object {
+ {
"description": "SonarSource team",
"id": "1",
"name": "SonarSource",
- "permissions": Array [],
+ "permissions": [],
},
]
}
groupsPaging={
- Object {
+ {
"pageIndex": 1,
"pageSize": 100,
"total": 2,
@@ -184,34 +184,34 @@ exports[`should render correctly 2`] = `
revokePermissionFromGroup={[Function]}
revokePermissionFromUser={[Function]}
users={
- Array [
- Object {
+ [
+ {
"avatar": "admin-avatar",
"email": "admin@gmail.com",
"login": "admin",
"name": "Admin Admin",
- "permissions": Array [
+ "permissions": [
"admin",
],
},
- Object {
+ {
"avatar": "user-avatar-1",
"email": "user1@gmail.com",
"login": "user1",
"name": "User Number 1",
- "permissions": Array [],
+ "permissions": [],
},
- Object {
+ {
"avatar": "user-avatar-2",
"email": "user2@gmail.com",
"login": "user2",
"name": "User Number 2",
- "permissions": Array [],
+ "permissions": [],
},
]
}
usersPaging={
- Object {
+ {
"pageIndex": 1,
"pageSize": 100,
"total": 3,
diff --git a/server/sonar-web/src/main/js/apps/permissions/project/components/__tests__/__snapshots__/ApplyTemplate-test.tsx.snap b/server/sonar-web/src/main/js/apps/permissions/project/components/__tests__/__snapshots__/ApplyTemplate-test.tsx.snap
index ac0f0a062e0..78bf796249c 100644
--- a/server/sonar-web/src/main/js/apps/permissions/project/components/__tests__/__snapshots__/ApplyTemplate-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/permissions/project/components/__tests__/__snapshots__/ApplyTemplate-test.tsx.snap
@@ -49,14 +49,14 @@ exports[`render correctly 2`] = `
inputId="project-permissions-template-input"
onChange={[Function]}
options={
- Array [
- Object {
+ [
+ {
"label": "SonarSource projects",
"value": "tmp1",
},
]
}
- value={Array []}
+ value={[]}
/>
</div>
</div>
diff --git a/server/sonar-web/src/main/js/apps/permissions/shared/components/__tests__/__snapshots__/GroupHolder-test.tsx.snap b/server/sonar-web/src/main/js/apps/permissions/shared/components/__tests__/__snapshots__/GroupHolder-test.tsx.snap
index c8d55b33e47..5bcaa37fe90 100644
--- a/server/sonar-web/src/main/js/apps/permissions/shared/components/__tests__/__snapshots__/GroupHolder-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/permissions/shared/components/__tests__/__snapshots__/GroupHolder-test.tsx.snap
@@ -24,7 +24,7 @@ exports[`should render correctly: default 1`] = `
<div
className="little-spacer-top"
style={
- Object {
+ {
"whiteSpace": "normal",
}
}
@@ -34,18 +34,18 @@ exports[`should render correctly: default 1`] = `
</td>
<PermissionCell
key="admin"
- loading={Array []}
+ loading={[]}
onCheck={[Function]}
permission={
- Object {
+ {
"category": "admin",
- "permissions": Array [
- Object {
+ "permissions": [
+ {
"description": "",
"key": "foo",
"name": "Foo",
},
- Object {
+ {
"description": "",
"key": "bar",
"name": "Bar",
@@ -54,10 +54,10 @@ exports[`should render correctly: default 1`] = `
}
}
permissionItem={
- Object {
+ {
"id": "foobar",
"name": "sonar-admins",
- "permissions": Array [
+ "permissions": [
"provisioning",
],
}
@@ -66,20 +66,20 @@ exports[`should render correctly: default 1`] = `
/>
<PermissionCell
key="baz"
- loading={Array []}
+ loading={[]}
onCheck={[Function]}
permission={
- Object {
+ {
"description": "",
"key": "baz",
"name": "Baz",
}
}
permissionItem={
- Object {
+ {
"id": "foobar",
"name": "sonar-admins",
- "permissions": Array [
+ "permissions": [
"provisioning",
],
}
diff --git a/server/sonar-web/src/main/js/apps/permissions/shared/components/__tests__/__snapshots__/HoldersList-test.tsx.snap b/server/sonar-web/src/main/js/apps/permissions/shared/components/__tests__/__snapshots__/HoldersList-test.tsx.snap
index 1d3044703ac..7d56a20a08a 100644
--- a/server/sonar-web/src/main/js/apps/permissions/shared/components/__tests__/__snapshots__/HoldersList-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/permissions/shared/components/__tests__/__snapshots__/HoldersList-test.tsx.snap
@@ -16,7 +16,7 @@ exports[`should display users and groups 1`] = `
key="foo"
onSelectPermission={[MockFunction]}
permission={
- Object {
+ {
"description": "",
"key": "foo",
"name": "Foo",
@@ -28,15 +28,15 @@ exports[`should display users and groups 1`] = `
key="admin"
onSelectPermission={[MockFunction]}
permission={
- Object {
+ {
"category": "admin",
- "permissions": Array [
- Object {
+ "permissions": [
+ {
"description": "",
"key": "bar",
"name": "Bar",
},
- Object {
+ {
"description": "",
"key": "baz",
"name": "Baz",
@@ -53,21 +53,21 @@ exports[`should display users and groups 1`] = `
key="user-barbaz"
onToggle={[Function]}
permissions={
- Array [
- Object {
+ [
+ {
"description": "",
"key": "foo",
"name": "Foo",
},
- Object {
+ {
"category": "admin",
- "permissions": Array [
- Object {
+ "permissions": [
+ {
"description": "",
"key": "bar",
"name": "Bar",
},
- Object {
+ {
"description": "",
"key": "baz",
"name": "Baz",
@@ -78,10 +78,10 @@ exports[`should display users and groups 1`] = `
}
selectedPermission="bar"
user={
- Object {
+ {
"login": "barbaz",
"name": "Barbaz",
- "permissions": Array [
+ "permissions": [
"bar",
],
}
@@ -89,10 +89,10 @@ exports[`should display users and groups 1`] = `
/>
<GroupHolder
group={
- Object {
+ {
"id": "barbaz",
"name": "Barbaz",
- "permissions": Array [
+ "permissions": [
"bar",
],
}
@@ -100,21 +100,21 @@ exports[`should display users and groups 1`] = `
key="group-barbaz"
onToggle={[Function]}
permissions={
- Array [
- Object {
+ [
+ {
"description": "",
"key": "foo",
"name": "Foo",
},
- Object {
+ {
"category": "admin",
- "permissions": Array [
- Object {
+ "permissions": [
+ {
"description": "",
"key": "bar",
"name": "Bar",
},
- Object {
+ {
"description": "",
"key": "baz",
"name": "Baz",
@@ -129,21 +129,21 @@ exports[`should display users and groups 1`] = `
key="user-foobar"
onToggle={[Function]}
permissions={
- Array [
- Object {
+ [
+ {
"description": "",
"key": "foo",
"name": "Foo",
},
- Object {
+ {
"category": "admin",
- "permissions": Array [
- Object {
+ "permissions": [
+ {
"description": "",
"key": "bar",
"name": "Bar",
},
- Object {
+ {
"description": "",
"key": "baz",
"name": "Baz",
@@ -154,10 +154,10 @@ exports[`should display users and groups 1`] = `
}
selectedPermission="bar"
user={
- Object {
+ {
"login": "foobar",
"name": "Foobar",
- "permissions": Array [
+ "permissions": [
"bar",
],
}
@@ -165,10 +165,10 @@ exports[`should display users and groups 1`] = `
/>
<GroupHolder
group={
- Object {
+ {
"id": "foobar",
"name": "Foobar",
- "permissions": Array [
+ "permissions": [
"bar",
],
}
@@ -176,21 +176,21 @@ exports[`should display users and groups 1`] = `
key="group-foobar"
onToggle={[Function]}
permissions={
- Array [
- Object {
+ [
+ {
"description": "",
"key": "foo",
"name": "Foo",
},
- Object {
+ {
"category": "admin",
- "permissions": Array [
- Object {
+ "permissions": [
+ {
"description": "",
"key": "bar",
"name": "Bar",
},
- Object {
+ {
"description": "",
"key": "baz",
"name": "Baz",
@@ -210,30 +210,30 @@ exports[`should display users and groups 1`] = `
<tr />
<GroupHolder
group={
- Object {
+ {
"id": "abc",
"name": "abc",
- "permissions": Array [],
+ "permissions": [],
}
}
key="group-abc"
onToggle={[Function]}
permissions={
- Array [
- Object {
+ [
+ {
"description": "",
"key": "foo",
"name": "Foo",
},
- Object {
+ {
"category": "admin",
- "permissions": Array [
- Object {
+ "permissions": [
+ {
"description": "",
"key": "bar",
"name": "Bar",
},
- Object {
+ {
"description": "",
"key": "baz",
"name": "Baz",
@@ -248,21 +248,21 @@ exports[`should display users and groups 1`] = `
key="user-bcd"
onToggle={[Function]}
permissions={
- Array [
- Object {
+ [
+ {
"description": "",
"key": "foo",
"name": "Foo",
},
- Object {
+ {
"category": "admin",
- "permissions": Array [
- Object {
+ "permissions": [
+ {
"description": "",
"key": "bar",
"name": "Bar",
},
- Object {
+ {
"description": "",
"key": "baz",
"name": "Baz",
@@ -273,10 +273,10 @@ exports[`should display users and groups 1`] = `
}
selectedPermission="bar"
user={
- Object {
+ {
"login": "bcd",
"name": "bcd",
- "permissions": Array [],
+ "permissions": [],
}
}
/>
diff --git a/server/sonar-web/src/main/js/apps/permissions/shared/components/__tests__/__snapshots__/UserHolder-test.tsx.snap b/server/sonar-web/src/main/js/apps/permissions/shared/components/__tests__/__snapshots__/UserHolder-test.tsx.snap
index 10307a9b053..1133c690cb2 100644
--- a/server/sonar-web/src/main/js/apps/permissions/shared/components/__tests__/__snapshots__/UserHolder-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/permissions/shared/components/__tests__/__snapshots__/UserHolder-test.tsx.snap
@@ -13,7 +13,7 @@ exports[`should render correctly: creator 1`] = `
<div
className="little-spacer-top"
style={
- Object {
+ {
"whiteSpace": "normal",
}
}
@@ -23,18 +23,18 @@ exports[`should render correctly: creator 1`] = `
</td>
<PermissionCell
key="admin"
- loading={Array []}
+ loading={[]}
onCheck={[Function]}
permission={
- Object {
+ {
"category": "admin",
- "permissions": Array [
- Object {
+ "permissions": [
+ {
"description": "",
"key": "foo",
"name": "Foo",
},
- Object {
+ {
"description": "",
"key": "bar",
"name": "Bar",
@@ -43,12 +43,12 @@ exports[`should render correctly: creator 1`] = `
}
}
permissionItem={
- Object {
+ {
"active": true,
"local": true,
"login": "<creator>",
"name": "johndoe",
- "permissions": Array [
+ "permissions": [
"provisioning",
],
}
@@ -57,22 +57,22 @@ exports[`should render correctly: creator 1`] = `
/>
<PermissionCell
key="baz"
- loading={Array []}
+ loading={[]}
onCheck={[Function]}
permission={
- Object {
+ {
"description": "",
"key": "baz",
"name": "Baz",
}
}
permissionItem={
- Object {
+ {
"active": true,
"local": true,
"login": "<creator>",
"name": "johndoe",
- "permissions": Array [
+ "permissions": [
"provisioning",
],
}
@@ -120,18 +120,18 @@ exports[`should render correctly: default 1`] = `
</td>
<PermissionCell
key="admin"
- loading={Array []}
+ loading={[]}
onCheck={[Function]}
permission={
- Object {
+ {
"category": "admin",
- "permissions": Array [
- Object {
+ "permissions": [
+ {
"description": "",
"key": "foo",
"name": "Foo",
},
- Object {
+ {
"description": "",
"key": "bar",
"name": "Bar",
@@ -140,13 +140,13 @@ exports[`should render correctly: default 1`] = `
}
}
permissionItem={
- Object {
+ {
"active": true,
"email": "john.doe@sonarsource.com",
"local": true,
"login": "john.doe",
"name": "John Doe",
- "permissions": Array [
+ "permissions": [
"provisioning",
],
}
@@ -155,23 +155,23 @@ exports[`should render correctly: default 1`] = `
/>
<PermissionCell
key="baz"
- loading={Array []}
+ loading={[]}
onCheck={[Function]}
permission={
- Object {
+ {
"description": "",
"key": "baz",
"name": "Baz",
}
}
permissionItem={
- Object {
+ {
"active": true,
"email": "john.doe@sonarsource.com",
"local": true,
"login": "john.doe",
"name": "John Doe",
- "permissions": Array [
+ "permissions": [
"provisioning",
],
}
diff --git a/server/sonar-web/src/main/js/apps/projectActivity/__tests__/__snapshots__/actions-test.ts.snap b/server/sonar-web/src/main/js/apps/projectActivity/__tests__/__snapshots__/actions-test.ts.snap
index 10cb48ebfeb..4e39a9042c1 100644
--- a/server/sonar-web/src/main/js/apps/projectActivity/__tests__/__snapshots__/actions-test.ts.snap
+++ b/server/sonar-web/src/main/js/apps/projectActivity/__tests__/__snapshots__/actions-test.ts.snap
@@ -1,10 +1,10 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`addCustomEvent should correctly add a custom event 1`] = `
-Object {
+{
"date": 2016-10-27T10:21:15.000Z,
- "events": Array [
- Object {
+ "events": [
+ {
"category": "Custom",
"key": "Enew",
"name": "Foo",
@@ -15,10 +15,10 @@ Object {
`;
exports[`changeEvent should correctly update an event 1`] = `
-Object {
+{
"date": 2016-10-27T14:33:50.000Z,
- "events": Array [
- Object {
+ "events": [
+ {
"category": "VERSION",
"key": "E1",
"name": "changed",
@@ -29,21 +29,21 @@ Object {
`;
exports[`deleteAnalysis should correctly delete an analyses 1`] = `
-Array [
- Object {
+[
+ {
"date": 2016-10-27T10:21:15.000Z,
- "events": Array [],
+ "events": [],
"key": "A2",
},
- Object {
+ {
"date": 2016-10-26T10:17:29.000Z,
- "events": Array [
- Object {
+ "events": [
+ {
"category": "OTHER",
"key": "E2",
"name": "foo",
},
- Object {
+ {
"category": "OTHER",
"key": "E3",
"name": "foo",
@@ -55,26 +55,26 @@ Array [
`;
exports[`deleteEvent should correctly remove an event 1`] = `
-Object {
+{
"date": 2016-10-27T14:33:50.000Z,
- "events": Array [],
+ "events": [],
"key": "A1",
}
`;
exports[`deleteEvent should correctly remove an event 2`] = `
-Object {
+{
"date": 2016-10-27T10:21:15.000Z,
- "events": Array [],
+ "events": [],
"key": "A2",
}
`;
exports[`deleteEvent should correctly remove an event 3`] = `
-Object {
+{
"date": 2016-10-26T10:17:29.000Z,
- "events": Array [
- Object {
+ "events": [
+ {
"category": "OTHER",
"key": "E3",
"name": "foo",
diff --git a/server/sonar-web/src/main/js/apps/projectActivity/__tests__/__snapshots__/utils-test.ts.snap b/server/sonar-web/src/main/js/apps/projectActivity/__tests__/__snapshots__/utils-test.ts.snap
index 0f23892e414..ac5297e2908 100644
--- a/server/sonar-web/src/main/js/apps/projectActivity/__tests__/__snapshots__/utils-test.ts.snap
+++ b/server/sonar-web/src/main/js/apps/projectActivity/__tests__/__snapshots__/utils-test.ts.snap
@@ -1,17 +1,17 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`getAnalysesByVersionByDay should also filter analysis based on the query 1`] = `
-Array [
- Object {
- "byDay": Object {
- "1495065600000": Array [
- Object {
+[
+ {
+ "byDay": {
+ "1495065600000": [
+ {
"date": 2017-05-18T14:13:07.000Z,
- "events": Array [
- Object {
+ "events": [
+ {
"category": "QUALITY_PROFILE",
"key": "AVxZtC-N7841nF4RNEMJ",
- "name": "Changes in \\"Default - SonarSource conventions\\" (Java)",
+ "name": "Changes in "Default - SonarSource conventions" (Java)",
},
],
"key": "AVxZtCpH7841nF4RNEMI",
@@ -21,21 +21,21 @@ Array [
"key": "AVyM9oI1HjR_PLDzRciU",
"version": "1.1",
},
- Object {
- "byDay": Object {
- "1494892800000": Array [
- Object {
+ {
+ "byDay": {
+ "1494892800000": [
+ {
"date": 2017-05-16T07:09:59.000Z,
- "events": Array [
- Object {
+ "events": [
+ {
"category": "VERSION",
"key": "AVyM9oI1HjR_PLDzRciU",
"name": "1.0",
},
- Object {
+ {
"category": "QUALITY_PROFILE",
"key": "AVwQF7zXl-nNFgFWOJ3W",
- "name": "Changes in \\"Default - SonarSource conventions\\" (Java)",
+ "name": "Changes in "Default - SonarSource conventions" (Java)",
},
],
"key": "AVwQF7kwl-nNFgFWOJ3V",
@@ -49,13 +49,13 @@ Array [
`;
exports[`getAnalysesByVersionByDay should also filter analysis based on the query 2`] = `
-Array [
- Object {
- "byDay": Object {
- "1496966400000": Array [
- Object {
+[
+ {
+ "byDay": {
+ "1496966400000": [
+ {
"date": 2017-06-09T11:12:27.000Z,
- "events": Array [],
+ "events": [],
"key": "AVyM9n3cHjR_PLDzRciT",
},
],
@@ -63,26 +63,26 @@ Array [
"key": "AVyM9oI1HjR_PLDzRciU",
"version": "1.1-SNAPSHOT",
},
- Object {
- "byDay": Object {
- "1495065600000": Array [
- Object {
+ {
+ "byDay": {
+ "1495065600000": [
+ {
"date": 2017-05-18T14:13:07.000Z,
- "events": Array [
- Object {
+ "events": [
+ {
"category": "QUALITY_PROFILE",
"key": "AVxZtC-N7841nF4RNEMJ",
- "name": "Changes in \\"Default - SonarSource conventions\\" (Java)",
+ "name": "Changes in "Default - SonarSource conventions" (Java)",
},
],
"key": "AVxZtCpH7841nF4RNEMI",
},
],
- "1496966400000": Array [
- Object {
+ "1496966400000": [
+ {
"date": 2017-06-09T11:12:27.000Z,
- "events": Array [
- Object {
+ "events": [
+ {
"category": "VERSION",
"key": "AVyM9oI1HjR_PLDzRciU",
"name": "1.1",
@@ -95,8 +95,8 @@ Array [
"key": "AVyM9oI1HjR_PLDzRciU",
"version": "1.1",
},
- Object {
- "byDay": Object {},
+ {
+ "byDay": {},
"key": "AVyM9oI1HjR_PLDzRciU",
"version": "1.0",
},
@@ -104,14 +104,14 @@ Array [
`;
exports[`getAnalysesByVersionByDay should correctly map analysis by versions and by days 1`] = `
-Array [
- Object {
- "byDay": Object {
- "1496966400000": Array [
- Object {
+[
+ {
+ "byDay": {
+ "1496966400000": [
+ {
"date": 2017-06-09T13:06:10.000Z,
- "events": Array [
- Object {
+ "events": [
+ {
"category": "VERSION",
"key": "AVyM9oI1HjR_PLDzRciU",
"name": "1.1-SNAPSHOT",
@@ -119,9 +119,9 @@ Array [
],
"key": "AVyMjlK1HjR_PLDzRbB9",
},
- Object {
+ {
"date": 2017-06-09T11:12:27.000Z,
- "events": Array [],
+ "events": [],
"key": "AVyM9n3cHjR_PLDzRciT",
},
],
@@ -129,31 +129,31 @@ Array [
"key": "AVyM9oI1HjR_PLDzRciU",
"version": "1.1-SNAPSHOT",
},
- Object {
- "byDay": Object {
- "1495065600000": Array [
- Object {
+ {
+ "byDay": {
+ "1495065600000": [
+ {
"date": 2017-05-18T14:13:07.000Z,
- "events": Array [
- Object {
+ "events": [
+ {
"category": "QUALITY_PROFILE",
"key": "AVxZtC-N7841nF4RNEMJ",
- "name": "Changes in \\"Default - SonarSource conventions\\" (Java)",
+ "name": "Changes in "Default - SonarSource conventions" (Java)",
},
],
"key": "AVxZtCpH7841nF4RNEMI",
},
- Object {
+ {
"date": 2017-05-18T07:17:32.000Z,
- "events": Array [],
+ "events": [],
"key": "AVwaa1qkpbBde8B6UhYI",
},
],
- "1496966400000": Array [
- Object {
+ "1496966400000": [
+ {
"date": 2017-06-09T11:12:27.000Z,
- "events": Array [
- Object {
+ "events": [
+ {
"category": "VERSION",
"key": "AVyM9oI1HjR_PLDzRciU",
"name": "1.1",
@@ -166,28 +166,28 @@ Array [
"key": "AVyM9oI1HjR_PLDzRciU",
"version": "1.1",
},
- Object {
- "byDay": Object {
- "1494288000000": Array [
- Object {
+ {
+ "byDay": {
+ "1494288000000": [
+ {
"date": 2017-05-09T12:03:59.000Z,
- "events": Array [],
+ "events": [],
"key": "AVvtGF3IY6vCuQNDdwxI",
},
],
- "1494892800000": Array [
- Object {
+ "1494892800000": [
+ {
"date": 2017-05-16T07:09:59.000Z,
- "events": Array [
- Object {
+ "events": [
+ {
"category": "VERSION",
"key": "AVyM9oI1HjR_PLDzRciU",
"name": "1.0",
},
- Object {
+ {
"category": "QUALITY_PROFILE",
"key": "AVwQF7zXl-nNFgFWOJ3W",
- "name": "Changes in \\"Default - SonarSource conventions\\" (Java)",
+ "name": "Changes in "Default - SonarSource conventions" (Java)",
},
],
"key": "AVwQF7kwl-nNFgFWOJ3V",
@@ -201,30 +201,30 @@ Array [
`;
exports[`getAnalysesByVersionByDay should create fake version 1`] = `
-Array [
- Object {
- "byDay": Object {
- "1495065600000": Array [
- Object {
+[
+ {
+ "byDay": {
+ "1495065600000": [
+ {
"date": 2017-05-18T14:13:07.000Z,
- "events": Array [],
+ "events": [],
"key": "AVxZtCpH7841nF4RNEMI",
},
],
- "1496966400000": Array [
- Object {
+ "1496966400000": [
+ {
"date": 2017-06-09T13:06:10.000Z,
- "events": Array [],
+ "events": [],
"key": "AVyMjlK1HjR_PLDzRbB9",
},
- Object {
+ {
"date": 2017-06-09T11:12:27.000Z,
- "events": Array [],
+ "events": [],
"key": "AVyM9n3cHjR_PLDzRciT",
},
- Object {
+ {
"date": 2017-06-09T11:12:27.000Z,
- "events": Array [],
+ "events": [],
"key": "AVyMjlK1HjR_PLDzRbB9",
},
],
diff --git a/server/sonar-web/src/main/js/apps/projectActivity/components/__tests__/__snapshots__/ProjectActivityAnalysesList-test.tsx.snap b/server/sonar-web/src/main/js/apps/projectActivity/components/__tests__/__snapshots__/ProjectActivityAnalysesList-test.tsx.snap
index 8b4fc911914..7deee3c6bda 100644
--- a/server/sonar-web/src/main/js/apps/projectActivity/components/__tests__/__snapshots__/ProjectActivityAnalysesList-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/projectActivity/components/__tests__/__snapshots__/ProjectActivityAnalysesList-test.tsx.snap
@@ -5,7 +5,7 @@ exports[`should correctly filter analyses by category 1`] = `
className="project-activity-versions-list"
onScroll={[Function]}
style={
- Object {
+ {
"marginTop": 36,
}
}
@@ -48,10 +48,10 @@ exports[`should correctly filter analyses by category 1`] = `
addCustomEvent={[MockFunction]}
addVersion={[MockFunction]}
analysis={
- Object {
+ {
"date": 2016-10-24T16:33:50.000Z,
- "events": Array [
- Object {
+ "events": [
+ {
"category": "QUALITY_GATE",
"key": "E1",
"name": "Quality gate changed to red...",
@@ -84,7 +84,7 @@ exports[`should correctly filter analyses by date range 1`] = `
className="project-activity-versions-list"
onScroll={[Function]}
style={
- Object {
+ {
"marginTop": 36,
}
}
@@ -127,10 +127,10 @@ exports[`should correctly filter analyses by date range 1`] = `
addCustomEvent={[MockFunction]}
addVersion={[MockFunction]}
analysis={
- Object {
+ {
"date": 2016-10-27T16:33:50.000Z,
- "events": Array [
- Object {
+ "events": [
+ {
"category": "VERSION",
"key": "E1",
"name": "6.5-SNAPSHOT",
@@ -163,7 +163,7 @@ exports[`should render correctly: application 1`] = `
className="project-activity-versions-list"
onScroll={[Function]}
style={
- Object {
+ {
"marginTop": undefined,
}
}
@@ -206,10 +206,10 @@ exports[`should render correctly: application 1`] = `
addCustomEvent={[MockFunction]}
addVersion={[MockFunction]}
analysis={
- Object {
+ {
"date": 2016-10-27T16:33:50.000Z,
- "events": Array [
- Object {
+ "events": [
+ {
"category": "VERSION",
"key": "E1",
"name": "6.5-SNAPSHOT",
@@ -234,9 +234,9 @@ exports[`should render correctly: application 1`] = `
addCustomEvent={[MockFunction]}
addVersion={[MockFunction]}
analysis={
- Object {
+ {
"date": 2016-10-27T12:21:15.000Z,
- "events": Array [],
+ "events": [],
"key": "A2",
"projectVersion": "1.0",
}
@@ -294,15 +294,15 @@ exports[`should render correctly: application 1`] = `
addCustomEvent={[MockFunction]}
addVersion={[MockFunction]}
analysis={
- Object {
+ {
"date": 2016-10-26T12:17:29.000Z,
- "events": Array [
- Object {
+ "events": [
+ {
"category": "VERSION",
"key": "E2",
"name": "6.4",
},
- Object {
+ {
"category": "OTHER",
"key": "E3",
"name": "foo",
@@ -343,10 +343,10 @@ exports[`should render correctly: application 1`] = `
addCustomEvent={[MockFunction]}
addVersion={[MockFunction]}
analysis={
- Object {
+ {
"date": 2016-10-24T16:33:50.000Z,
- "events": Array [
- Object {
+ "events": [
+ {
"category": "QUALITY_GATE",
"key": "E1",
"name": "Quality gate changed to red...",
@@ -379,7 +379,7 @@ exports[`should render correctly: default 1`] = `
className="project-activity-versions-list"
onScroll={[Function]}
style={
- Object {
+ {
"marginTop": 36,
}
}
@@ -422,10 +422,10 @@ exports[`should render correctly: default 1`] = `
addCustomEvent={[MockFunction]}
addVersion={[MockFunction]}
analysis={
- Object {
+ {
"date": 2016-10-27T16:33:50.000Z,
- "events": Array [
- Object {
+ "events": [
+ {
"category": "VERSION",
"key": "E1",
"name": "6.5-SNAPSHOT",
@@ -450,9 +450,9 @@ exports[`should render correctly: default 1`] = `
addCustomEvent={[MockFunction]}
addVersion={[MockFunction]}
analysis={
- Object {
+ {
"date": 2016-10-27T12:21:15.000Z,
- "events": Array [],
+ "events": [],
"key": "A2",
"projectVersion": "1.0",
}
@@ -510,15 +510,15 @@ exports[`should render correctly: default 1`] = `
addCustomEvent={[MockFunction]}
addVersion={[MockFunction]}
analysis={
- Object {
+ {
"date": 2016-10-26T12:17:29.000Z,
- "events": Array [
- Object {
+ "events": [
+ {
"category": "VERSION",
"key": "E2",
"name": "6.4",
},
- Object {
+ {
"category": "OTHER",
"key": "E3",
"name": "foo",
@@ -559,10 +559,10 @@ exports[`should render correctly: default 1`] = `
addCustomEvent={[MockFunction]}
addVersion={[MockFunction]}
analysis={
- Object {
+ {
"date": 2016-10-24T16:33:50.000Z,
- "events": Array [
- Object {
+ "events": [
+ {
"category": "QUALITY_GATE",
"key": "E1",
"name": "Quality gate changed to red...",
diff --git a/server/sonar-web/src/main/js/apps/projectActivity/components/__tests__/__snapshots__/ProjectActivityDateInput-test.tsx.snap b/server/sonar-web/src/main/js/apps/projectActivity/components/__tests__/__snapshots__/ProjectActivityDateInput-test.tsx.snap
index 7ebe7e54805..d1fa488b765 100644
--- a/server/sonar-web/src/main/js/apps/projectActivity/components/__tests__/__snapshots__/ProjectActivityDateInput-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/projectActivity/components/__tests__/__snapshots__/ProjectActivityDateInput-test.tsx.snap
@@ -7,7 +7,7 @@ exports[`should render correctly the date inputs 1`] = `
<DateRangeInput
onChange={[Function]}
value={
- Object {
+ {
"from": 2016-10-27T12:21:15.000Z,
"to": 2016-12-27T12:21:15.000Z,
}
diff --git a/server/sonar-web/src/main/js/apps/projectActivity/components/__tests__/__snapshots__/ProjectActivityGraphs-test.tsx.snap b/server/sonar-web/src/main/js/apps/projectActivity/components/__tests__/__snapshots__/ProjectActivityGraphs-test.tsx.snap
index b817fd80c5e..5049227713f 100644
--- a/server/sonar-web/src/main/js/apps/projectActivity/components/__tests__/__snapshots__/ProjectActivityGraphs-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/projectActivity/components/__tests__/__snapshots__/ProjectActivityGraphs-test.tsx.snap
@@ -9,8 +9,8 @@ exports[`should render correctly the graph and legends 1`] = `
className="big-spacer-bottom"
graph="issues"
metrics={
- Array [
- Object {
+ [
+ {
"id": "1",
"key": "code_smells",
"name": "Code Smells",
@@ -19,16 +19,16 @@ exports[`should render correctly the graph and legends 1`] = `
]
}
removeCustomMetric={[Function]}
- selectedMetrics={Array []}
+ selectedMetrics={[]}
updateGraph={[Function]}
/>
<GraphsHistory
analyses={
- Array [
- Object {
+ [
+ {
"date": 2016-10-27T14:33:50.000Z,
- "events": Array [
- Object {
+ "events": [
+ {
"category": "VERSION",
"key": "E1",
"name": "6.5-SNAPSHOT",
@@ -36,20 +36,20 @@ exports[`should render correctly the graph and legends 1`] = `
],
"key": "A1",
},
- Object {
+ {
"date": 2016-10-27T10:21:15.000Z,
- "events": Array [],
+ "events": [],
"key": "A2",
},
- Object {
+ {
"date": 2016-10-26T10:17:29.000Z,
- "events": Array [
- Object {
+ "events": [
+ {
"category": "VERSION",
"key": "E2",
"name": "6.4",
},
- Object {
+ {
"category": "OTHER",
"key": "E3",
"name": "foo",
@@ -61,19 +61,19 @@ exports[`should render correctly the graph and legends 1`] = `
}
graph="issues"
graphs={
- Array [
- Array [
- Object {
- "data": Array [
- Object {
+ [
+ [
+ {
+ "data": [
+ {
"x": 2016-10-26T10:17:29.000Z,
"y": 2286,
},
- Object {
+ {
"x": 2016-10-27T10:21:15.000Z,
"y": 1749,
},
- Object {
+ {
"x": 2016-10-27T14:33:50.000Z,
"y": 500,
},
@@ -88,18 +88,18 @@ exports[`should render correctly the graph and legends 1`] = `
leakPeriodDate={2017-05-16T11:50:02.000Z}
loading={false}
measuresHistory={
- Array [
- Object {
- "history": Array [
- Object {
+ [
+ {
+ "history": [
+ {
"date": 2016-10-26T10:17:29.000Z,
"value": "2286",
},
- Object {
+ {
"date": 2016-10-27T10:21:15.000Z,
"value": "1749",
},
- Object {
+ {
"date": 2016-10-27T14:33:50.000Z,
"value": "500",
},
@@ -110,18 +110,18 @@ exports[`should render correctly the graph and legends 1`] = `
}
removeCustomMetric={[Function]}
series={
- Array [
- Object {
- "data": Array [
- Object {
+ [
+ {
+ "data": [
+ {
"x": 2016-10-26T10:17:29.000Z,
"y": 2286,
},
- Object {
+ {
"x": 2016-10-27T10:21:15.000Z,
"y": 1749,
},
- Object {
+ {
"x": 2016-10-27T14:33:50.000Z,
"y": 500,
},
@@ -140,18 +140,18 @@ exports[`should render correctly the graph and legends 1`] = `
loading={false}
metricsType="INT"
series={
- Array [
- Object {
- "data": Array [
- Object {
+ [
+ {
+ "data": [
+ {
"x": 2016-10-26T10:17:29.000Z,
"y": 2286,
},
- Object {
+ {
"x": 2016-10-27T10:21:15.000Z,
"y": 1749,
},
- Object {
+ {
"x": 2016-10-27T14:33:50.000Z,
"y": 500,
},
@@ -169,22 +169,22 @@ exports[`should render correctly the graph and legends 1`] = `
`;
exports[`should render correctly with filter history on dates 1`] = `
-Object {
+{
"graphEndDate": undefined,
"graphStartDate": 2016-10-27T10:21:15.000Z,
- "graphs": Array [
- Array [
- Object {
- "data": Array [
- Object {
+ "graphs": [
+ [
+ {
+ "data": [
+ {
"x": 2016-10-26T10:17:29.000Z,
"y": 2286,
},
- Object {
+ {
"x": 2016-10-27T10:21:15.000Z,
"y": 1749,
},
- Object {
+ {
"x": 2016-10-27T14:33:50.000Z,
"y": 500,
},
@@ -195,18 +195,18 @@ Object {
},
],
],
- "series": Array [
- Object {
- "data": Array [
- Object {
+ "series": [
+ {
+ "data": [
+ {
"x": 2016-10-26T10:17:29.000Z,
"y": 2286,
},
- Object {
+ {
"x": 2016-10-27T10:21:15.000Z,
"y": 1749,
},
- Object {
+ {
"x": 2016-10-27T14:33:50.000Z,
"y": 500,
},
diff --git a/server/sonar-web/src/main/js/apps/projectActivity/components/__tests__/__snapshots__/ProjectActivityPageFilters-test.tsx.snap b/server/sonar-web/src/main/js/apps/projectActivity/components/__tests__/__snapshots__/ProjectActivityPageFilters-test.tsx.snap
index 56f0a23bc2f..5a5d10ab6df 100644
--- a/server/sonar-web/src/main/js/apps/projectActivity/components/__tests__/__snapshots__/ProjectActivityPageFilters-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/projectActivity/components/__tests__/__snapshots__/ProjectActivityPageFilters-test.tsx.snap
@@ -20,26 +20,26 @@ exports[`should render correctly the list of series 1`] = `
isSearchable={false}
onChange={[Function]}
options={
- Array [
- Object {
+ [
+ {
"label": "event.category.VERSION",
"value": "VERSION",
},
- Object {
+ {
"label": "event.category.QUALITY_GATE",
"value": "QUALITY_GATE",
},
- Object {
+ {
"label": "event.category.QUALITY_PROFILE",
"value": "QUALITY_PROFILE",
},
- Object {
+ {
"label": "event.category.OTHER",
"value": "OTHER",
},
]
}
- value={Array []}
+ value={[]}
/>
</div>
<ProjectActivityDateInput
diff --git a/server/sonar-web/src/main/js/apps/projectBaseline/components/__tests__/__snapshots__/App-test.tsx.snap b/server/sonar-web/src/main/js/apps/projectBaseline/components/__tests__/__snapshots__/App-test.tsx.snap
index e642a0c6573..847b62f98de 100644
--- a/server/sonar-web/src/main/js/apps/projectBaseline/components/__tests__/__snapshots__/App-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/projectBaseline/components/__tests__/__snapshots__/App-test.tsx.snap
@@ -20,7 +20,7 @@ exports[`should render correctly 1`] = `
<ProjectBaselineSelector
analysis=""
branch={
- Object {
+ {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": false,
@@ -28,8 +28,8 @@ exports[`should render correctly 1`] = `
}
}
branchList={
- Array [
- Object {
+ [
+ {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": true,
@@ -42,7 +42,7 @@ exports[`should render correctly 1`] = `
currentSetting="PREVIOUS_VERSION"
days="30"
generalSetting={
- Object {
+ {
"type": "PREVIOUS_VERSION",
}
}
@@ -79,8 +79,8 @@ exports[`should render correctly 1`] = `
</h2>
<BranchList
branchList={
- Array [
- Object {
+ [
+ {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": true,
@@ -89,29 +89,29 @@ exports[`should render correctly 1`] = `
]
}
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "TRK",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
inheritedSetting={
- Object {
+ {
"type": "PREVIOUS_VERSION",
"value": undefined,
}
@@ -140,7 +140,7 @@ exports[`should render correctly: without branch support 1`] = `
<ProjectBaselineSelector
analysis=""
branch={
- Object {
+ {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": false,
@@ -148,8 +148,8 @@ exports[`should render correctly: without branch support 1`] = `
}
}
branchList={
- Array [
- Object {
+ [
+ {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": true,
@@ -162,7 +162,7 @@ exports[`should render correctly: without branch support 1`] = `
currentSetting="PREVIOUS_VERSION"
days="30"
generalSetting={
- Object {
+ {
"type": "PREVIOUS_VERSION",
}
}
diff --git a/server/sonar-web/src/main/js/apps/projectBaseline/components/__tests__/__snapshots__/AppHeader-test.tsx.snap b/server/sonar-web/src/main/js/apps/projectBaseline/components/__tests__/__snapshots__/AppHeader-test.tsx.snap
index 5eab1023c52..ef814d672ba 100644
--- a/server/sonar-web/src/main/js/apps/projectBaseline/components/__tests__/__snapshots__/AppHeader-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/projectBaseline/components/__tests__/__snapshots__/AppHeader-test.tsx.snap
@@ -16,7 +16,7 @@ exports[`should render correctly: can admin 1`] = `
defaultMessage="project_baseline.page.description"
id="project_baseline.page.description"
values={
- Object {
+ {
"link": <withAppStateContext(DocLink)
to="/project-administration/defining-new-code/"
>
@@ -30,7 +30,7 @@ exports[`should render correctly: can admin 1`] = `
defaultMessage="project_baseline.page.description2"
id="project_baseline.page.description2"
values={
- Object {
+ {
"link": <ForwardRef(Link)
to="/admin/settings?category=new_code_period"
>
@@ -59,7 +59,7 @@ exports[`should render correctly: cannot admin 1`] = `
defaultMessage="project_baseline.page.description"
id="project_baseline.page.description"
values={
- Object {
+ {
"link": <withAppStateContext(DocLink)
to="/project-administration/defining-new-code/"
>
diff --git a/server/sonar-web/src/main/js/apps/projectBaseline/components/__tests__/__snapshots__/BaselineSettingReferenceBranch-test.tsx.snap b/server/sonar-web/src/main/js/apps/projectBaseline/components/__tests__/__snapshots__/BaselineSettingReferenceBranch-test.tsx.snap
index a481b29936d..3f0251dba3a 100644
--- a/server/sonar-web/src/main/js/apps/projectBaseline/components/__tests__/__snapshots__/BaselineSettingReferenceBranch-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/projectBaseline/components/__tests__/__snapshots__/BaselineSettingReferenceBranch-test.tsx.snap
@@ -3,7 +3,7 @@
exports[`renderOption should render correctly: branch 1`] = `
<Option
data={
- Object {
+ {
"isMain": false,
"label": "branch-7.4",
"value": "branch-7.4",
@@ -21,7 +21,7 @@ exports[`renderOption should render correctly: branch 1`] = `
exports[`renderOption should render correctly: branch doesn't exist 1`] = `
<Option
data={
- Object {
+ {
"isInvalid": true,
"isMain": false,
"value": "branch-nope",
@@ -43,7 +43,7 @@ exports[`renderOption should render correctly: branch doesn't exist 1`] = `
exports[`renderOption should render correctly: disabled 1`] = `
<Option
data={
- Object {
+ {
"isDisabled": true,
"isMain": false,
"label": "disabled",
@@ -64,7 +64,7 @@ exports[`renderOption should render correctly: disabled 1`] = `
exports[`renderOption should render correctly: main 1`] = `
<Option
data={
- Object {
+ {
"isMain": true,
"label": "master",
"value": "master",
@@ -111,14 +111,14 @@ exports[`should render correctly: Branch level - no other branches 1`] = `
<Select
className="little-spacer-top spacer-bottom"
components={
- Object {
+ {
"Option": [Function],
}
}
onChange={[Function]}
options={
- Array [
- Object {
+ [
+ {
"isMain": true,
"label": "master",
"value": "master",
@@ -126,7 +126,7 @@ exports[`should render correctly: Branch level - no other branches 1`] = `
]
}
value={
- Object {
+ {
"isMain": true,
"label": "master",
"value": "master",
@@ -164,19 +164,19 @@ exports[`should render correctly: Branch level 1`] = `
<Select
className="little-spacer-top spacer-bottom"
components={
- Object {
+ {
"Option": [Function],
}
}
onChange={[Function]}
options={
- Array [
- Object {
+ [
+ {
"isMain": true,
"label": "master",
"value": "master",
},
- Object {
+ {
"isMain": false,
"label": "branch-7.9",
"value": "branch-7.9",
@@ -184,7 +184,7 @@ exports[`should render correctly: Branch level 1`] = `
]
}
value={
- Object {
+ {
"isMain": true,
"label": "master",
"value": "master",
@@ -227,19 +227,19 @@ exports[`should render correctly: Project level 1`] = `
<Select
className="little-spacer-top spacer-bottom"
components={
- Object {
+ {
"Option": [Function],
}
}
onChange={[Function]}
options={
- Array [
- Object {
+ [
+ {
"isMain": true,
"label": "master",
"value": "master",
},
- Object {
+ {
"isMain": false,
"label": "branch-7.9",
"value": "branch-7.9",
@@ -247,7 +247,7 @@ exports[`should render correctly: Project level 1`] = `
]
}
value={
- Object {
+ {
"isMain": true,
"label": "master",
"value": "master",
diff --git a/server/sonar-web/src/main/js/apps/projectBaseline/components/__tests__/__snapshots__/BranchAnalysisListRenderer-test.tsx.snap b/server/sonar-web/src/main/js/apps/projectBaseline/components/__tests__/__snapshots__/BranchAnalysisListRenderer-test.tsx.snap
index 3085961afa5..2f5049e2eff 100644
--- a/server/sonar-web/src/main/js/apps/projectBaseline/components/__tests__/__snapshots__/BranchAnalysisListRenderer-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/projectBaseline/components/__tests__/__snapshots__/BranchAnalysisListRenderer-test.tsx.snap
@@ -18,20 +18,20 @@ exports[`should render correctly: Analyses 1`] = `
isSearchable={false}
onChange={[MockFunction]}
options={
- Array [
- Object {
+ [
+ {
"label": "baseline.branch_analyses.ranges.30days",
"value": 30,
},
- Object {
+ {
"label": "baseline.branch_analyses.ranges.allTime",
"value": 0,
},
]
}
value={
- Array [
- Object {
+ [
+ {
"label": "baseline.branch_analyses.ranges.30days",
"value": 30,
},
@@ -114,20 +114,20 @@ exports[`should render correctly: Analyses 1`] = `
<Memo(Events)
analysisKey="3"
events={
- Array [
- Object {
+ [
+ {
"category": "QUALITY_GATE",
"description": "Lorem ipsum dolor sit amet",
"key": "E11",
"name": "Lorem ipsum",
- "qualityGate": Object {
- "failing": Array [
- Object {
+ "qualityGate": {
+ "failing": [
+ {
"branch": "master",
"key": "foo",
"name": "Foo",
},
- Object {
+ {
"branch": "feature/bar",
"key": "bar",
"name": "Bar",
@@ -210,20 +210,20 @@ exports[`should render correctly: Analyses 1`] = `
<Memo(Events)
analysisKey="2"
events={
- Array [
- Object {
+ [
+ {
"category": "QUALITY_GATE",
"description": "Lorem ipsum dolor sit amet",
"key": "E11",
"name": "Lorem ipsum",
- "qualityGate": Object {
- "failing": Array [
- Object {
+ "qualityGate": {
+ "failing": [
+ {
"branch": "master",
"key": "foo",
"name": "Foo",
},
- Object {
+ {
"branch": "feature/bar",
"key": "bar",
"name": "Bar",
@@ -233,7 +233,7 @@ exports[`should render correctly: Analyses 1`] = `
"stillFailing": true,
},
},
- Object {
+ {
"category": "VERSION",
"description": "Lorem ipsum dolor sit amet",
"key": "E11",
@@ -326,20 +326,20 @@ exports[`should render correctly: empty 1`] = `
isSearchable={false}
onChange={[MockFunction]}
options={
- Array [
- Object {
+ [
+ {
"label": "baseline.branch_analyses.ranges.30days",
"value": 30,
},
- Object {
+ {
"label": "baseline.branch_analyses.ranges.allTime",
"value": 0,
},
]
}
value={
- Array [
- Object {
+ [
+ {
"label": "baseline.branch_analyses.ranges.30days",
"value": 30,
},
@@ -382,20 +382,20 @@ exports[`should render correctly: loading 1`] = `
isSearchable={false}
onChange={[MockFunction]}
options={
- Array [
- Object {
+ [
+ {
"label": "baseline.branch_analyses.ranges.30days",
"value": 30,
},
- Object {
+ {
"label": "baseline.branch_analyses.ranges.allTime",
"value": 0,
},
]
}
value={
- Array [
- Object {
+ [
+ {
"label": "baseline.branch_analyses.ranges.30days",
"value": 30,
},
diff --git a/server/sonar-web/src/main/js/apps/projectBaseline/components/__tests__/__snapshots__/BranchBaselineSettingModal-test.tsx.snap b/server/sonar-web/src/main/js/apps/projectBaseline/components/__tests__/__snapshots__/BranchBaselineSettingModal-test.tsx.snap
index 03eb20e011e..bb59bfd7ad5 100644
--- a/server/sonar-web/src/main/js/apps/projectBaseline/components/__tests__/__snapshots__/BranchBaselineSettingModal-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/projectBaseline/components/__tests__/__snapshots__/BranchBaselineSettingModal-test.tsx.snap
@@ -42,14 +42,14 @@ exports[`should render correctly: multiple branches 1`] = `
/>
<BaselineSettingReferenceBranch
branchList={
- Array [
- Object {
+ [
+ {
"isDisabled": true,
"isMain": true,
"label": "master",
"value": "master",
},
- Object {
+ {
"isDisabled": false,
"isMain": false,
"label": "branch-6.7",
@@ -129,8 +129,8 @@ exports[`should render correctly: only one branch 1`] = `
/>
<BaselineSettingReferenceBranch
branchList={
- Array [
- Object {
+ [
+ {
"isDisabled": true,
"isMain": true,
"label": "master",
diff --git a/server/sonar-web/src/main/js/apps/projectBaseline/components/__tests__/__snapshots__/BranchList-test.tsx.snap b/server/sonar-web/src/main/js/apps/projectBaseline/components/__tests__/__snapshots__/BranchList-test.tsx.snap
index 863633dce9e..89c13ce499f 100644
--- a/server/sonar-web/src/main/js/apps/projectBaseline/components/__tests__/__snapshots__/BranchList-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/projectBaseline/components/__tests__/__snapshots__/BranchList-test.tsx.snap
@@ -25,12 +25,12 @@ exports[`should render correctly 1`] = `
<tbody>
<BranchListRow
branch={
- Object {
+ {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": true,
"name": "master",
- "newCodePeriod": Object {
+ "newCodePeriod": {
"effectiveValue": undefined,
"type": "NUMBER_OF_DAYS",
"value": "27",
@@ -38,14 +38,14 @@ exports[`should render correctly 1`] = `
}
}
existingBranches={
- Array [
+ [
"master",
"branch-6.7",
"branch-7.0",
]
}
inheritedSetting={
- Object {
+ {
"type": "PREVIOUS_VERSION",
}
}
@@ -55,7 +55,7 @@ exports[`should render correctly 1`] = `
/>
<BranchListRow
branch={
- Object {
+ {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": false,
@@ -63,14 +63,14 @@ exports[`should render correctly 1`] = `
}
}
existingBranches={
- Array [
+ [
"master",
"branch-6.7",
"branch-7.0",
]
}
inheritedSetting={
- Object {
+ {
"type": "PREVIOUS_VERSION",
}
}
@@ -80,7 +80,7 @@ exports[`should render correctly 1`] = `
/>
<BranchListRow
branch={
- Object {
+ {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": false,
@@ -88,14 +88,14 @@ exports[`should render correctly 1`] = `
}
}
existingBranches={
- Array [
+ [
"master",
"branch-6.7",
"branch-7.0",
]
}
inheritedSetting={
- Object {
+ {
"type": "PREVIOUS_VERSION",
}
}
diff --git a/server/sonar-web/src/main/js/apps/projectBaseline/components/__tests__/__snapshots__/BranchListRow-test.tsx.snap b/server/sonar-web/src/main/js/apps/projectBaseline/components/__tests__/__snapshots__/BranchListRow-test.tsx.snap
index abb087dc5f7..5df9d7b064a 100644
--- a/server/sonar-web/src/main/js/apps/projectBaseline/components/__tests__/__snapshots__/BranchListRow-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/projectBaseline/components/__tests__/__snapshots__/BranchListRow-test.tsx.snap
@@ -9,12 +9,12 @@ exports[`should render correctly: branch with number of days 1`] = `
>
<BranchLikeIcon
branchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": false,
"name": "branch-6.7",
- "newCodePeriod": Object {
+ "newCodePeriod": {
"type": "NUMBER_OF_DAYS",
"value": "21",
},
@@ -61,12 +61,12 @@ exports[`should render correctly: branch with previous version 1`] = `
>
<BranchLikeIcon
branchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": false,
"name": "branch-6.7",
- "newCodePeriod": Object {
+ "newCodePeriod": {
"type": "PREVIOUS_VERSION",
},
}
@@ -112,12 +112,12 @@ exports[`should render correctly: branch with reference branch 1`] = `
>
<BranchLikeIcon
branchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": false,
"name": "branch-6.7",
- "newCodePeriod": Object {
+ "newCodePeriod": {
"type": "REFERENCE_BRANCH",
"value": "master",
},
@@ -164,12 +164,12 @@ exports[`should render correctly: branch with specific analysis 1`] = `
>
<BranchLikeIcon
branchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": false,
"name": "branch-6.7",
- "newCodePeriod": Object {
+ "newCodePeriod": {
"effectiveValue": "2018-12-02T13:01:12",
"type": "SPECIFIC_ANALYSIS",
"value": "A85835",
@@ -220,7 +220,7 @@ exports[`should render correctly: faulty branch 1`] = `
>
<BranchLikeIcon
branchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": false,
@@ -268,7 +268,7 @@ exports[`should render correctly: main branch with default 1`] = `
>
<BranchLikeIcon
branchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": true,
diff --git a/server/sonar-web/src/main/js/apps/projectBaseline/components/__tests__/__snapshots__/ProjectBaselineSelector-test.tsx.snap b/server/sonar-web/src/main/js/apps/projectBaseline/components/__tests__/__snapshots__/ProjectBaselineSelector-test.tsx.snap
index bb2a408d107..c858bd7c0a0 100644
--- a/server/sonar-web/src/main/js/apps/projectBaseline/components/__tests__/__snapshots__/ProjectBaselineSelector-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/projectBaseline/components/__tests__/__snapshots__/ProjectBaselineSelector-test.tsx.snap
@@ -62,8 +62,8 @@ exports[`should render correctly 1`] = `
/>
<BaselineSettingReferenceBranch
branchList={
- Array [
- Object {
+ [
+ {
"isMain": true,
"label": "master",
"value": "master",
diff --git a/server/sonar-web/src/main/js/apps/projectBranches/components/__tests__/__snapshots__/BranchLikeRow-test.tsx.snap b/server/sonar-web/src/main/js/apps/projectBranches/components/__tests__/__snapshots__/BranchLikeRow-test.tsx.snap
index ba11b5fc0c2..cbebf013b8d 100644
--- a/server/sonar-web/src/main/js/apps/projectBranches/components/__tests__/__snapshots__/BranchLikeRow-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/projectBranches/components/__tests__/__snapshots__/BranchLikeRow-test.tsx.snap
@@ -7,7 +7,7 @@ exports[`should render correctly for branch 1`] = `
>
<BranchLikeIcon
branchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": false,
@@ -28,7 +28,7 @@ exports[`should render correctly for branch 1`] = `
>
<withBranchStatus(BranchStatus)
branchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": false,
@@ -36,25 +36,25 @@ exports[`should render correctly for branch 1`] = `
}
}
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "TRK",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
/>
@@ -71,7 +71,7 @@ exports[`should render correctly for branch 1`] = `
>
<BranchPurgeSetting
branch={
- Object {
+ {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": false,
@@ -79,25 +79,25 @@ exports[`should render correctly for branch 1`] = `
}
}
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "TRK",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
onUpdatePurgeSetting={[MockFunction]}
@@ -126,7 +126,7 @@ exports[`should render correctly for main branch 1`] = `
>
<BranchLikeIcon
branchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": true,
@@ -153,7 +153,7 @@ exports[`should render correctly for main branch 1`] = `
>
<withBranchStatus(BranchStatus)
branchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": true,
@@ -161,25 +161,25 @@ exports[`should render correctly for main branch 1`] = `
}
}
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "TRK",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
/>
@@ -196,7 +196,7 @@ exports[`should render correctly for main branch 1`] = `
>
<BranchPurgeSetting
branch={
- Object {
+ {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": true,
@@ -204,25 +204,25 @@ exports[`should render correctly for main branch 1`] = `
}
}
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "TRK",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
onUpdatePurgeSetting={[MockFunction]}
@@ -250,7 +250,7 @@ exports[`should render correctly for pull request 1`] = `
>
<BranchLikeIcon
branchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"base": "master",
"branch": "feature/foo/bar",
@@ -273,7 +273,7 @@ exports[`should render correctly for pull request 1`] = `
>
<withBranchStatus(BranchStatus)
branchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"base": "master",
"branch": "feature/foo/bar",
@@ -283,25 +283,25 @@ exports[`should render correctly for pull request 1`] = `
}
}
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "TRK",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
/>
diff --git a/server/sonar-web/src/main/js/apps/projectBranches/components/__tests__/__snapshots__/BranchLikeTable-test.tsx.snap b/server/sonar-web/src/main/js/apps/projectBranches/components/__tests__/__snapshots__/BranchLikeTable-test.tsx.snap
index ca96018dc50..4e6508c8157 100644
--- a/server/sonar-web/src/main/js/apps/projectBranches/components/__tests__/__snapshots__/BranchLikeTable-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/projectBranches/components/__tests__/__snapshots__/BranchLikeTable-test.tsx.snap
@@ -17,7 +17,7 @@ exports[`should render correctly 1`] = `
<th
className="nowrap"
style={
- Object {
+ {
"width": "80px",
}
}
@@ -27,7 +27,7 @@ exports[`should render correctly 1`] = `
<th
className="nowrap"
style={
- Object {
+ {
"width": "140px",
}
}
@@ -37,7 +37,7 @@ exports[`should render correctly 1`] = `
<th
className="nowrap"
style={
- Object {
+ {
"width": "50px",
}
}
@@ -49,7 +49,7 @@ exports[`should render correctly 1`] = `
<tbody>
<Memo(BranchLikeRow)
branchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": false,
@@ -57,25 +57,25 @@ exports[`should render correctly 1`] = `
}
}
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "TRK",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
key="branch-branch-11"
@@ -85,7 +85,7 @@ exports[`should render correctly 1`] = `
/>
<Memo(BranchLikeRow)
branchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": false,
@@ -93,25 +93,25 @@ exports[`should render correctly 1`] = `
}
}
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "TRK",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
key="branch-branch-1"
@@ -121,7 +121,7 @@ exports[`should render correctly 1`] = `
/>
<Memo(BranchLikeRow)
branchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": true,
@@ -129,25 +129,25 @@ exports[`should render correctly 1`] = `
}
}
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "TRK",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
key="branch-master"
@@ -157,7 +157,7 @@ exports[`should render correctly 1`] = `
/>
<Memo(BranchLikeRow)
branchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"base": "master",
"branch": "feature/foo/bar",
@@ -167,25 +167,25 @@ exports[`should render correctly 1`] = `
}
}
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "TRK",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
key="pull-request-1"
@@ -195,7 +195,7 @@ exports[`should render correctly 1`] = `
/>
<Memo(BranchLikeRow)
branchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": false,
@@ -203,25 +203,25 @@ exports[`should render correctly 1`] = `
}
}
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "TRK",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
key="branch-branch-12"
@@ -231,7 +231,7 @@ exports[`should render correctly 1`] = `
/>
<Memo(BranchLikeRow)
branchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"base": "master",
"branch": "feature/foo/bar",
@@ -241,25 +241,25 @@ exports[`should render correctly 1`] = `
}
}
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "TRK",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
key="pull-request-2"
@@ -269,7 +269,7 @@ exports[`should render correctly 1`] = `
/>
<Memo(BranchLikeRow)
branchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": false,
@@ -277,25 +277,25 @@ exports[`should render correctly 1`] = `
}
}
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "TRK",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
key="branch-branch-3"
@@ -305,7 +305,7 @@ exports[`should render correctly 1`] = `
/>
<Memo(BranchLikeRow)
branchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": false,
@@ -313,25 +313,25 @@ exports[`should render correctly 1`] = `
}
}
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "TRK",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
key="branch-branch-2"
@@ -341,7 +341,7 @@ exports[`should render correctly 1`] = `
/>
<Memo(BranchLikeRow)
branchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"base": "master",
"branch": "feature/foo/bar",
@@ -352,25 +352,25 @@ exports[`should render correctly 1`] = `
}
}
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "TRK",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
key="pull-request-2"
@@ -400,7 +400,7 @@ exports[`should render purge setting correctly 1`] = `
<th
className="nowrap"
style={
- Object {
+ {
"width": "80px",
}
}
@@ -410,7 +410,7 @@ exports[`should render purge setting correctly 1`] = `
<th
className="nowrap"
style={
- Object {
+ {
"width": "140px",
}
}
@@ -420,7 +420,7 @@ exports[`should render purge setting correctly 1`] = `
<th
className="nowrap"
style={
- Object {
+ {
"width": "150px",
}
}
@@ -440,7 +440,7 @@ exports[`should render purge setting correctly 1`] = `
<th
className="nowrap"
style={
- Object {
+ {
"width": "50px",
}
}
@@ -452,7 +452,7 @@ exports[`should render purge setting correctly 1`] = `
<tbody>
<Memo(BranchLikeRow)
branchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": false,
@@ -460,25 +460,25 @@ exports[`should render purge setting correctly 1`] = `
}
}
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "TRK",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
displayPurgeSetting={true}
@@ -489,7 +489,7 @@ exports[`should render purge setting correctly 1`] = `
/>
<Memo(BranchLikeRow)
branchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": false,
@@ -497,25 +497,25 @@ exports[`should render purge setting correctly 1`] = `
}
}
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "TRK",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
displayPurgeSetting={true}
@@ -526,7 +526,7 @@ exports[`should render purge setting correctly 1`] = `
/>
<Memo(BranchLikeRow)
branchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": true,
@@ -534,25 +534,25 @@ exports[`should render purge setting correctly 1`] = `
}
}
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "TRK",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
displayPurgeSetting={true}
@@ -563,7 +563,7 @@ exports[`should render purge setting correctly 1`] = `
/>
<Memo(BranchLikeRow)
branchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"base": "master",
"branch": "feature/foo/bar",
@@ -573,25 +573,25 @@ exports[`should render purge setting correctly 1`] = `
}
}
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "TRK",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
displayPurgeSetting={true}
@@ -602,7 +602,7 @@ exports[`should render purge setting correctly 1`] = `
/>
<Memo(BranchLikeRow)
branchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": false,
@@ -610,25 +610,25 @@ exports[`should render purge setting correctly 1`] = `
}
}
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "TRK",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
displayPurgeSetting={true}
@@ -639,7 +639,7 @@ exports[`should render purge setting correctly 1`] = `
/>
<Memo(BranchLikeRow)
branchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"base": "master",
"branch": "feature/foo/bar",
@@ -649,25 +649,25 @@ exports[`should render purge setting correctly 1`] = `
}
}
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "TRK",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
displayPurgeSetting={true}
@@ -678,7 +678,7 @@ exports[`should render purge setting correctly 1`] = `
/>
<Memo(BranchLikeRow)
branchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": false,
@@ -686,25 +686,25 @@ exports[`should render purge setting correctly 1`] = `
}
}
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "TRK",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
displayPurgeSetting={true}
@@ -715,7 +715,7 @@ exports[`should render purge setting correctly 1`] = `
/>
<Memo(BranchLikeRow)
branchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": false,
@@ -723,25 +723,25 @@ exports[`should render purge setting correctly 1`] = `
}
}
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "TRK",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
displayPurgeSetting={true}
@@ -752,7 +752,7 @@ exports[`should render purge setting correctly 1`] = `
/>
<Memo(BranchLikeRow)
branchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"base": "master",
"branch": "feature/foo/bar",
@@ -763,25 +763,25 @@ exports[`should render purge setting correctly 1`] = `
}
}
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "TRK",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
displayPurgeSetting={true}
diff --git a/server/sonar-web/src/main/js/apps/projectBranches/components/__tests__/__snapshots__/BranchLikeTabs-test.tsx.snap b/server/sonar-web/src/main/js/apps/projectBranches/components/__tests__/__snapshots__/BranchLikeTabs-test.tsx.snap
index 68626aa084a..389f07bf460 100644
--- a/server/sonar-web/src/main/js/apps/projectBranches/components/__tests__/__snapshots__/BranchLikeTabs-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/projectBranches/components/__tests__/__snapshots__/BranchLikeTabs-test.tsx.snap
@@ -7,8 +7,8 @@ exports[`should render all tabs correctly 1`] = `
onSelect={[Function]}
selected={0}
tabs={
- Array [
- Object {
+ [
+ {
"key": 0,
"label": <React.Fragment>
<BranchIcon />
@@ -19,7 +19,7 @@ exports[`should render all tabs correctly 1`] = `
</span>
</React.Fragment>,
},
- Object {
+ {
"key": 1,
"label": <React.Fragment>
<PullRequestIcon />
@@ -40,38 +40,38 @@ exports[`should render all tabs correctly 1`] = `
>
<Memo(BranchLikeTable)
branchLikes={
- Array [
- Object {
+ [
+ {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": true,
"name": "master",
},
- Object {
+ {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": false,
"name": "branch-1",
},
- Object {
+ {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": false,
"name": "branch-11",
},
- Object {
+ {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": false,
"name": "branch-12",
},
- Object {
+ {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": false,
"name": "branch-2",
},
- Object {
+ {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": false,
@@ -80,25 +80,25 @@ exports[`should render all tabs correctly 1`] = `
]
}
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "TRK",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
displayPurgeSetting={true}
@@ -118,8 +118,8 @@ exports[`should render all tabs correctly 2`] = `
onSelect={[Function]}
selected={1}
tabs={
- Array [
- Object {
+ [
+ {
"key": 0,
"label": <React.Fragment>
<BranchIcon />
@@ -130,7 +130,7 @@ exports[`should render all tabs correctly 2`] = `
</span>
</React.Fragment>,
},
- Object {
+ {
"key": 1,
"label": <React.Fragment>
<PullRequestIcon />
@@ -151,8 +151,8 @@ exports[`should render all tabs correctly 2`] = `
>
<Memo(BranchLikeTable)
branchLikes={
- Array [
- Object {
+ [
+ {
"analysisDate": "2018-01-01",
"base": "master",
"branch": "feature/foo/bar",
@@ -160,7 +160,7 @@ exports[`should render all tabs correctly 2`] = `
"target": "master",
"title": "PR-1",
},
- Object {
+ {
"analysisDate": "2018-01-01",
"base": "master",
"branch": "feature/foo/bar",
@@ -168,7 +168,7 @@ exports[`should render all tabs correctly 2`] = `
"target": "master",
"title": "PR-2",
},
- Object {
+ {
"analysisDate": "2018-01-01",
"base": "master",
"branch": "feature/foo/bar",
@@ -180,25 +180,25 @@ exports[`should render all tabs correctly 2`] = `
]
}
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "TRK",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
displayPurgeSetting={false}
@@ -214,7 +214,7 @@ exports[`should render all tabs correctly 2`] = `
exports[`should render deletion modal correctly 1`] = `
<DeleteBranchModal
branchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"base": "master",
"branch": "feature/foo/bar",
@@ -224,25 +224,25 @@ exports[`should render deletion modal correctly 1`] = `
}
}
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "TRK",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
onClose={[Function]}
@@ -253,7 +253,7 @@ exports[`should render deletion modal correctly 1`] = `
exports[`should render renaming modal correctly 1`] = `
<RenameBranchModal
branch={
- Object {
+ {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": true,
@@ -261,25 +261,25 @@ exports[`should render renaming modal correctly 1`] = `
}
}
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "TRK",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
onClose={[Function]}
diff --git a/server/sonar-web/src/main/js/apps/projectBranches/components/__tests__/__snapshots__/LifetimeInformationRenderer-test.tsx.snap b/server/sonar-web/src/main/js/apps/projectBranches/components/__tests__/__snapshots__/LifetimeInformationRenderer-test.tsx.snap
index 1020ddc9890..7937edd9c15 100644
--- a/server/sonar-web/src/main/js/apps/projectBranches/components/__tests__/__snapshots__/LifetimeInformationRenderer-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/projectBranches/components/__tests__/__snapshots__/LifetimeInformationRenderer-test.tsx.snap
@@ -11,7 +11,7 @@ exports[`should render correctly 1`] = `
defaultMessage="project_branch_pull_request.lifetime_information"
id="project_branch_pull_request.lifetime_information"
values={
- Object {
+ {
"days": "30",
}
}
@@ -37,7 +37,7 @@ exports[`should render correctly when user is admin 1`] = `
defaultMessage="project_branch_pull_request.lifetime_information"
id="project_branch_pull_request.lifetime_information"
values={
- Object {
+ {
"days": "30",
}
}
@@ -46,7 +46,7 @@ exports[`should render correctly when user is admin 1`] = `
defaultMessage="project_branch_pull_request.lifetime_information.admin"
id="project_branch_pull_request.lifetime_information.admin"
values={
- Object {
+ {
"settings": <ForwardRef(Link)
to="/admin/settings"
>
diff --git a/server/sonar-web/src/main/js/apps/projectBranches/components/__tests__/__snapshots__/ProjectBranchesApp-test.tsx.snap b/server/sonar-web/src/main/js/apps/projectBranches/components/__tests__/__snapshots__/ProjectBranchesApp-test.tsx.snap
index e673ebd9ff5..979a1948c74 100644
--- a/server/sonar-web/src/main/js/apps/projectBranches/components/__tests__/__snapshots__/ProjectBranchesApp-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/projectBranches/components/__tests__/__snapshots__/ProjectBranchesApp-test.tsx.snap
@@ -15,26 +15,26 @@ exports[`should render correctly 1`] = `
</header>
<BranchLikeTabs
branchLikes={
- Array [
- Object {
+ [
+ {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": false,
"name": "branch-11",
},
- Object {
+ {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": false,
"name": "branch-1",
},
- Object {
+ {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": true,
"name": "master",
},
- Object {
+ {
"analysisDate": "2018-01-01",
"base": "master",
"branch": "feature/foo/bar",
@@ -42,13 +42,13 @@ exports[`should render correctly 1`] = `
"target": "master",
"title": "PR-1",
},
- Object {
+ {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": false,
"name": "branch-12",
},
- Object {
+ {
"analysisDate": "2018-01-01",
"base": "master",
"branch": "feature/foo/bar",
@@ -56,19 +56,19 @@ exports[`should render correctly 1`] = `
"target": "master",
"title": "PR-2",
},
- Object {
+ {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": false,
"name": "branch-3",
},
- Object {
+ {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": false,
"name": "branch-2",
},
- Object {
+ {
"analysisDate": "2018-01-01",
"base": "master",
"branch": "feature/foo/bar",
@@ -80,25 +80,25 @@ exports[`should render correctly 1`] = `
]
}
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "TRK",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
onBranchesChange={[MockFunction]}
diff --git a/server/sonar-web/src/main/js/apps/projectDump/__tests__/__snapshots__/ProjectDumpApp-test.tsx.snap b/server/sonar-web/src/main/js/apps/projectDump/__tests__/__snapshots__/ProjectDumpApp-test.tsx.snap
index 7282eaac0b9..e176282cfa9 100644
--- a/server/sonar-web/src/main/js/apps/projectDump/__tests__/__snapshots__/ProjectDumpApp-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/projectDump/__tests__/__snapshots__/ProjectDumpApp-test.tsx.snap
@@ -28,9 +28,9 @@ exports[`should render correctly: loaded 1`] = `
<Export
componentKey="my-project"
loadStatus={[Function]}
- status={Object {}}
+ status={{}}
task={
- Object {
+ {
"executedAt": "2020-03-12T12:22:20Z",
"startedAt": "2020-03-12T12:20:20Z",
"status": "SUCCESS",
@@ -44,7 +44,7 @@ exports[`should render correctly: loaded 1`] = `
>
<Import
analysis={
- Object {
+ {
"executedAt": "2020-03-12T12:22:20Z",
"startedAt": "2020-03-12T12:20:20Z",
"status": "SUCCESS",
@@ -54,9 +54,9 @@ exports[`should render correctly: loaded 1`] = `
componentKey="my-project"
importEnabled={true}
loadStatus={[Function]}
- status={Object {}}
+ status={{}}
task={
- Object {
+ {
"executedAt": "2020-03-12T12:22:20Z",
"startedAt": "2020-03-12T12:20:20Z",
"status": "SUCCESS",
@@ -97,7 +97,7 @@ exports[`should render correctly: loaded without import 1`] = `
<Export
componentKey="my-project"
loadStatus={[Function]}
- status={Object {}}
+ status={{}}
/>
</div>
<div
@@ -107,7 +107,7 @@ exports[`should render correctly: loaded without import 1`] = `
componentKey="my-project"
importEnabled={false}
loadStatus={[Function]}
- status={Object {}}
+ status={{}}
/>
</div>
</div>
diff --git a/server/sonar-web/src/main/js/apps/projectDump/components/__tests__/__snapshots__/Import-test.tsx.snap b/server/sonar-web/src/main/js/apps/projectDump/components/__tests__/__snapshots__/Import-test.tsx.snap
index 7c3c0bd960b..0a0c403a888 100644
--- a/server/sonar-web/src/main/js/apps/projectDump/components/__tests__/__snapshots__/Import-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/projectDump/components/__tests__/__snapshots__/Import-test.tsx.snap
@@ -44,7 +44,7 @@ exports[`should render correctly: failed 1`] = `
<ForwardRef(Link)
className="spacer-left"
to={
- Object {
+ {
"hash": "",
"pathname": "/project/background_tasks",
"search": "?id=key&status=FAILED&taskType=PROJECT_IMPORT",
diff --git a/server/sonar-web/src/main/js/apps/projectKey/__tests__/__snapshots__/Key-test.tsx.snap b/server/sonar-web/src/main/js/apps/projectKey/__tests__/__snapshots__/Key-test.tsx.snap
index 4d009e92500..5b7c94d6b79 100644
--- a/server/sonar-web/src/main/js/apps/projectKey/__tests__/__snapshots__/Key-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/projectKey/__tests__/__snapshots__/Key-test.tsx.snap
@@ -27,25 +27,25 @@ exports[`should render and change key 1`] = `
</header>
<UpdateForm
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "foo",
"name": "Foo",
"qualifier": "TRK",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
onKeyChange={[Function]}
diff --git a/server/sonar-web/src/main/js/apps/projectLinks/__tests__/__snapshots__/App-test.tsx.snap b/server/sonar-web/src/main/js/apps/projectLinks/__tests__/__snapshots__/App-test.tsx.snap
index 6b5c95292bf..8274d51e0fc 100644
--- a/server/sonar-web/src/main/js/apps/projectLinks/__tests__/__snapshots__/App-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/projectLinks/__tests__/__snapshots__/App-test.tsx.snap
@@ -18,19 +18,19 @@ exports[`should create link 1`] = `
>
<Table
links={
- Array [
- Object {
+ [
+ {
"id": "1",
"type": "homepage",
"url": "http://example.com",
},
- Object {
+ {
"id": "2",
"name": "foo",
"type": "foo",
"url": "http://example.com/foo",
},
- Object {
+ {
"id": "3",
"name": "bar",
"type": "bar",
@@ -62,13 +62,13 @@ exports[`should delete link 1`] = `
>
<Table
links={
- Array [
- Object {
+ [
+ {
"id": "1",
"type": "homepage",
"url": "http://example.com",
},
- Object {
+ {
"id": "2",
"name": "foo",
"type": "foo",
@@ -100,13 +100,13 @@ exports[`should fetch links and render 1`] = `
>
<Table
links={
- Array [
- Object {
+ [
+ {
"id": "1",
"type": "homepage",
"url": "http://example.com",
},
- Object {
+ {
"id": "2",
"name": "foo",
"type": "foo",
diff --git a/server/sonar-web/src/main/js/apps/projectLinks/__tests__/__snapshots__/Table-test.tsx.snap b/server/sonar-web/src/main/js/apps/projectLinks/__tests__/__snapshots__/Table-test.tsx.snap
index c043f6a5f56..7bc58db4589 100644
--- a/server/sonar-web/src/main/js/apps/projectLinks/__tests__/__snapshots__/Table-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/projectLinks/__tests__/__snapshots__/Table-test.tsx.snap
@@ -31,7 +31,7 @@ exports[`should render 1`] = `
<LinkRow
key="1"
link={
- Object {
+ {
"id": "1",
"type": "homepage",
"url": "http://example.com/homepage",
@@ -42,7 +42,7 @@ exports[`should render 1`] = `
<LinkRow
key="2"
link={
- Object {
+ {
"id": "2",
"type": "issue",
"url": "http://example.com/issue",
@@ -53,7 +53,7 @@ exports[`should render 1`] = `
<LinkRow
key="4"
link={
- Object {
+ {
"id": "4",
"name": "bar",
"type": "bar",
@@ -65,7 +65,7 @@ exports[`should render 1`] = `
<LinkRow
key="3"
link={
- Object {
+ {
"id": "3",
"name": "foo",
"type": "foo",
diff --git a/server/sonar-web/src/main/js/apps/projectQualityGate/__tests__/__snapshots__/ProjectQualityGateApp-test.tsx.snap b/server/sonar-web/src/main/js/apps/projectQualityGate/__tests__/__snapshots__/ProjectQualityGateApp-test.tsx.snap
index 13d8d45338b..b230554e23b 100644
--- a/server/sonar-web/src/main/js/apps/projectQualityGate/__tests__/__snapshots__/ProjectQualityGateApp-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/projectQualityGate/__tests__/__snapshots__/ProjectQualityGateApp-test.tsx.snap
@@ -3,16 +3,16 @@
exports[`renders correctly 1`] = `
<ProjectQualityGateAppRenderer
allQualityGates={
- Array [
- Object {
- "conditions": Array [
- Object {
+ [
+ {
+ "conditions": [
+ {
"error": "10",
"id": "1",
"metric": "coverage",
"op": "LT",
},
- Object {
+ {
"error": "10",
"id": "1",
"metric": "new_bugs",
@@ -22,15 +22,15 @@ exports[`renders correctly 1`] = `
"id": "gate1",
"name": "qualitygate",
},
- Object {
- "conditions": Array [
- Object {
+ {
+ "conditions": [
+ {
"error": "10",
"id": "1",
"metric": "coverage",
"op": "LT",
},
- Object {
+ {
"error": "10",
"id": "1",
"metric": "new_bugs",
@@ -41,15 +41,15 @@ exports[`renders correctly 1`] = `
"isBuiltIn": true,
"name": "qualitygate",
},
- Object {
- "conditions": Array [
- Object {
+ {
+ "conditions": [
+ {
"error": "10",
"id": "1",
"metric": "coverage",
"op": "LT",
},
- Object {
+ {
"error": "10",
"id": "1",
"metric": "new_bugs",
@@ -60,14 +60,14 @@ exports[`renders correctly 1`] = `
"isDefault": true,
"name": "qualitygate",
},
- Object {
+ {
"id": "gate4",
"name": "qualitygate",
},
]
}
currentQualityGate={
- Object {
+ {
"id": "gate2",
"isBuiltIn": true,
"name": "qualitygate",
diff --git a/server/sonar-web/src/main/js/apps/projectQualityGate/__tests__/__snapshots__/ProjectQualityGateAppRenderer-test.tsx.snap b/server/sonar-web/src/main/js/apps/projectQualityGate/__tests__/__snapshots__/ProjectQualityGateAppRenderer-test.tsx.snap
index e05fd68d052..47db1cc08de 100644
--- a/server/sonar-web/src/main/js/apps/projectQualityGate/__tests__/__snapshots__/ProjectQualityGateAppRenderer-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/projectQualityGate/__tests__/__snapshots__/ProjectQualityGateAppRenderer-test.tsx.snap
@@ -111,7 +111,7 @@ exports[`should render correctly: always use system default 1`] = `
<Select
className="abs-width-300 it__project-quality-gate-select"
components={
- Object {
+ {
"Option": [Function],
}
}
@@ -119,18 +119,18 @@ exports[`should render correctly: always use system default 1`] = `
isDisabled={true}
onChange={[Function]}
options={
- Array [
- Object {
+ [
+ {
"isDisabled": false,
"label": "qualitygate",
"value": "1",
},
- Object {
+ {
"isDisabled": false,
"label": "qualitygate",
"value": "2",
},
- Object {
+ {
"isDisabled": false,
"label": "qualitygate",
"value": "3",
@@ -265,7 +265,7 @@ exports[`should render correctly: default 1`] = `
<Select
className="abs-width-300 it__project-quality-gate-select"
components={
- Object {
+ {
"Option": [Function],
}
}
@@ -273,18 +273,18 @@ exports[`should render correctly: default 1`] = `
isDisabled={false}
onChange={[Function]}
options={
- Array [
- Object {
+ [
+ {
"isDisabled": false,
"label": "qualitygate",
"value": "1",
},
- Object {
+ {
"isDisabled": false,
"label": "qualitygate",
"value": "2",
},
- Object {
+ {
"isDisabled": false,
"label": "qualitygate",
"value": "3",
@@ -292,7 +292,7 @@ exports[`should render correctly: default 1`] = `
]
}
value={
- Object {
+ {
"isDisabled": false,
"label": "qualitygate",
"value": "1",
@@ -432,7 +432,7 @@ exports[`should render correctly: show new code warning 1`] = `
<Select
className="abs-width-300 it__project-quality-gate-select"
components={
- Object {
+ {
"Option": [Function],
}
}
@@ -440,18 +440,18 @@ exports[`should render correctly: show new code warning 1`] = `
isDisabled={false}
onChange={[Function]}
options={
- Array [
- Object {
+ [
+ {
"isDisabled": false,
"label": "qualitygate",
"value": "1",
},
- Object {
+ {
"isDisabled": false,
"label": "qualitygate",
"value": "2",
},
- Object {
+ {
"isDisabled": false,
"label": "qualitygate",
"value": "3",
@@ -459,7 +459,7 @@ exports[`should render correctly: show new code warning 1`] = `
]
}
value={
- Object {
+ {
"isDisabled": false,
"label": "qualitygate",
"value": "3",
@@ -477,10 +477,10 @@ exports[`should render correctly: show new code warning 1`] = `
defaultMessage="project_quality_gate.no_condition_on_new_code"
id="project_quality_gate.no_condition_on_new_code"
values={
- Object {
+ {
"link": <ForwardRef(Link)
to={
- Object {
+ {
"pathname": "/quality_gates/show/3",
}
}
@@ -621,7 +621,7 @@ exports[`should render correctly: show warning 1`] = `
<Select
className="abs-width-300 it__project-quality-gate-select"
components={
- Object {
+ {
"Option": [Function],
}
}
@@ -629,18 +629,18 @@ exports[`should render correctly: show warning 1`] = `
isDisabled={false}
onChange={[Function]}
options={
- Array [
- Object {
+ [
+ {
"isDisabled": false,
"label": "qualitygate",
"value": "1",
},
- Object {
+ {
"isDisabled": false,
"label": "qualitygate",
"value": "2",
},
- Object {
+ {
"isDisabled": false,
"label": "qualitygate",
"value": "3",
@@ -781,7 +781,7 @@ exports[`should render correctly: show warning if not using default 1`] = `
<Select
className="abs-width-300 it__project-quality-gate-select"
components={
- Object {
+ {
"Option": [Function],
}
}
@@ -789,18 +789,18 @@ exports[`should render correctly: show warning if not using default 1`] = `
isDisabled={true}
onChange={[Function]}
options={
- Array [
- Object {
+ [
+ {
"isDisabled": false,
"label": "qualitygate",
"value": "1",
},
- Object {
+ {
"isDisabled": false,
"label": "qualitygate",
"value": "2",
},
- Object {
+ {
"isDisabled": false,
"label": "qualitygate",
"value": "3",
@@ -941,7 +941,7 @@ exports[`should render correctly: submitting 1`] = `
<Select
className="abs-width-300 it__project-quality-gate-select"
components={
- Object {
+ {
"Option": [Function],
}
}
@@ -949,18 +949,18 @@ exports[`should render correctly: submitting 1`] = `
isDisabled={true}
onChange={[Function]}
options={
- Array [
- Object {
+ [
+ {
"isDisabled": false,
"label": "qualitygate",
"value": "1",
},
- Object {
+ {
"isDisabled": false,
"label": "qualitygate",
"value": "2",
},
- Object {
+ {
"isDisabled": false,
"label": "qualitygate",
"value": "3",
@@ -968,7 +968,7 @@ exports[`should render correctly: submitting 1`] = `
]
}
value={
- Object {
+ {
"isDisabled": false,
"label": "qualitygate",
"value": "1",
@@ -997,7 +997,7 @@ exports[`should render correctly: submitting 1`] = `
exports[`should render select options correctly: default 1`] = `
<Option
data={
- Object {
+ {
"label": "Gate 1",
"value": "1",
}
@@ -1009,7 +1009,7 @@ exports[`should render select options correctly: default 1`] = `
disableTooltipOverlay={[Function]}
disabledReason="project_quality_gate.no_condition.reason"
option={
- Object {
+ {
"label": "Gate 1",
"value": "1",
}
diff --git a/server/sonar-web/src/main/js/apps/projectQualityProfiles/__tests__/__snapshots__/ProjectQualityProfilesApp-test.tsx.snap b/server/sonar-web/src/main/js/apps/projectQualityProfiles/__tests__/__snapshots__/ProjectQualityProfilesApp-test.tsx.snap
index 1343243ab82..ff942c16387 100644
--- a/server/sonar-web/src/main/js/apps/projectQualityProfiles/__tests__/__snapshots__/ProjectQualityProfilesApp-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/projectQualityProfiles/__tests__/__snapshots__/ProjectQualityProfilesApp-test.tsx.snap
@@ -3,42 +3,42 @@
exports[`renders correctly 1`] = `
<ProjectQualityProfilesAppRenderer
component={
- Object {
- "breadcrumbs": Array [],
- "configuration": Object {
+ {
+ "breadcrumbs": [],
+ "configuration": {
"showQualityProfiles": true,
},
"key": "foo",
"name": "MyProject",
"qualifier": "TRK",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"key": "css2",
"language": "css",
"name": "CSS 2",
},
- Object {
+ {
"key": "js",
"language": "js",
"name": "JS",
},
- Object {
+ {
"key": "ts_default",
"language": "ts",
"name": "TS (default)",
},
- Object {
+ {
"key": "html",
"language": "html",
"name": "HTML",
},
],
- "tags": Array [],
+ "tags": [],
}
}
loading={true}
diff --git a/server/sonar-web/src/main/js/apps/projectQualityProfiles/__tests__/__snapshots__/ProjectQualityProfilesAppRenderer-test.tsx.snap b/server/sonar-web/src/main/js/apps/projectQualityProfiles/__tests__/__snapshots__/ProjectQualityProfilesAppRenderer-test.tsx.snap
index 7bffb8aadc5..cbadc5f89c5 100644
--- a/server/sonar-web/src/main/js/apps/projectQualityProfiles/__tests__/__snapshots__/ProjectQualityProfilesAppRenderer-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/projectQualityProfiles/__tests__/__snapshots__/ProjectQualityProfilesAppRenderer-test.tsx.snap
@@ -101,7 +101,7 @@ exports[`should render correctly: add language 1`] = `
>
<ForwardRef(Link)
to={
- Object {
+ {
"pathname": "/coding_rules",
"search": "?activation=true&qprofile=bar",
}
@@ -143,7 +143,7 @@ exports[`should render correctly: add language 1`] = `
>
<ForwardRef(Link)
to={
- Object {
+ {
"pathname": "/coding_rules",
"search": "?activation=true&qprofile=baz",
}
@@ -187,7 +187,7 @@ exports[`should render correctly: add language 1`] = `
>
<ForwardRef(Link)
to={
- Object {
+ {
"pathname": "/coding_rules",
"search": "?activation=true&qprofile=foo",
}
@@ -236,9 +236,9 @@ exports[`should render correctly: add language 1`] = `
onClose={[MockFunction]}
onSubmit={[MockFunction]}
profilesByLanguage={
- Object {
- "css": Array [
- Object {
+ {
+ "css": [
+ {
"activeDeprecatedRuleCount": 2,
"activeRuleCount": 10,
"childrenCount": 0,
@@ -253,8 +253,8 @@ exports[`should render correctly: add language 1`] = `
"projectCount": 3,
},
],
- "html": Array [
- Object {
+ "html": [
+ {
"activeDeprecatedRuleCount": 2,
"activeRuleCount": 10,
"childrenCount": 0,
@@ -269,8 +269,8 @@ exports[`should render correctly: add language 1`] = `
"projectCount": 3,
},
],
- "js": Array [
- Object {
+ "js": [
+ {
"activeDeprecatedRuleCount": 2,
"activeRuleCount": 10,
"childrenCount": 0,
@@ -288,7 +288,7 @@ exports[`should render correctly: add language 1`] = `
}
}
unavailableLanguages={
- Array [
+ [
"js",
"css",
"html",
@@ -401,7 +401,7 @@ exports[`should render correctly: default 1`] = `
>
<ForwardRef(Link)
to={
- Object {
+ {
"pathname": "/coding_rules",
"search": "?activation=true&qprofile=bar",
}
@@ -443,7 +443,7 @@ exports[`should render correctly: default 1`] = `
>
<ForwardRef(Link)
to={
- Object {
+ {
"pathname": "/coding_rules",
"search": "?activation=true&qprofile=baz",
}
@@ -487,7 +487,7 @@ exports[`should render correctly: default 1`] = `
>
<ForwardRef(Link)
to={
- Object {
+ {
"pathname": "/coding_rules",
"search": "?activation=true&qprofile=foo",
}
@@ -722,7 +722,7 @@ exports[`should render correctly: open profile 1`] = `
>
<ForwardRef(Link)
to={
- Object {
+ {
"pathname": "/coding_rules",
"search": "?activation=true&qprofile=bar",
}
@@ -764,7 +764,7 @@ exports[`should render correctly: open profile 1`] = `
>
<ForwardRef(Link)
to={
- Object {
+ {
"pathname": "/coding_rules",
"search": "?activation=true&qprofile=baz",
}
@@ -808,7 +808,7 @@ exports[`should render correctly: open profile 1`] = `
>
<ForwardRef(Link)
to={
- Object {
+ {
"pathname": "/coding_rules",
"search": "?activation=true&qprofile=foo",
}
@@ -855,8 +855,8 @@ exports[`should render correctly: open profile 1`] = `
</div>
<SetQualityProfileModal
availableProfiles={
- Array [
- Object {
+ [
+ {
"activeDeprecatedRuleCount": 2,
"activeRuleCount": 10,
"childrenCount": 0,
@@ -873,29 +873,29 @@ exports[`should render correctly: open profile 1`] = `
]
}
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "TRK",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
currentProfile={
- Object {
+ {
"activeDeprecatedRuleCount": 2,
"activeRuleCount": 10,
"childrenCount": 0,
diff --git a/server/sonar-web/src/main/js/apps/projectQualityProfiles/components/__tests__/__snapshots__/AddLanguageModal-test.tsx.snap b/server/sonar-web/src/main/js/apps/projectQualityProfiles/components/__tests__/__snapshots__/AddLanguageModal-test.tsx.snap
index 7e7cc0e443a..da7e47c348f 100644
--- a/server/sonar-web/src/main/js/apps/projectQualityProfiles/components/__tests__/__snapshots__/AddLanguageModal-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/projectQualityProfiles/components/__tests__/__snapshots__/AddLanguageModal-test.tsx.snap
@@ -1,7 +1,7 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`should render correctly: default 1`] = `
-Array [
+[
<div
className="modal-head"
>
@@ -34,12 +34,12 @@ Array [
isDisabled={false}
onChange={[Function]}
options={
- Array [
- Object {
+ [
+ {
"label": "CSS",
"value": "css",
},
- Object {
+ {
"label": "TS",
"value": "ts",
},
@@ -63,14 +63,14 @@ Array [
<Select
className="abs-width-300"
components={
- Object {
+ {
"Option": [Function],
}
}
id="profiles"
isDisabled={true}
onChange={[Function]}
- options={Array []}
+ options={[]}
value={null}
/>
</div>
diff --git a/server/sonar-web/src/main/js/apps/projectQualityProfiles/components/__tests__/__snapshots__/LanguageProfileSelectOption-test.tsx.snap b/server/sonar-web/src/main/js/apps/projectQualityProfiles/components/__tests__/__snapshots__/LanguageProfileSelectOption-test.tsx.snap
index a9f9fb0c776..7f69b06d31e 100644
--- a/server/sonar-web/src/main/js/apps/projectQualityProfiles/components/__tests__/__snapshots__/LanguageProfileSelectOption-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/projectQualityProfiles/components/__tests__/__snapshots__/LanguageProfileSelectOption-test.tsx.snap
@@ -3,7 +3,7 @@
exports[`should render correctly: default 1`] = `
<Option
data={
- Object {
+ {
"isDisabled": false,
"label": "Profile 1",
"language": "Java",
@@ -16,7 +16,7 @@ exports[`should render correctly: default 1`] = `
disableTooltipOverlay={[Function]}
disabledReason="project_quality_profile.add_language_modal.no_active_rules"
option={
- Object {
+ {
"isDisabled": false,
"label": "Profile 1",
"language": "Java",
@@ -35,7 +35,7 @@ exports[`tooltip should render correctly: default 1`] = `
</p>
<ForwardRef(Link)
to={
- Object {
+ {
"pathname": "/profiles/show",
"search": "?name=Profile+1&language=Java",
}
diff --git a/server/sonar-web/src/main/js/apps/projectQualityProfiles/components/__tests__/__snapshots__/SetQualityProfileModal-test.tsx.snap b/server/sonar-web/src/main/js/apps/projectQualityProfiles/components/__tests__/__snapshots__/SetQualityProfileModal-test.tsx.snap
index cdca51949dd..97099a9e262 100644
--- a/server/sonar-web/src/main/js/apps/projectQualityProfiles/components/__tests__/__snapshots__/SetQualityProfileModal-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/projectQualityProfiles/components/__tests__/__snapshots__/SetQualityProfileModal-test.tsx.snap
@@ -1,7 +1,7 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`should render correctly: default 1`] = `
-Array [
+[
<div
className="modal-head"
>
@@ -71,21 +71,21 @@ Array [
<Select
className="abs-width-300"
components={
- Object {
+ {
"Option": [Function],
}
}
isDisabled={false}
onChange={[Function]}
options={
- Array [
- Object {
+ [
+ {
"isDisabled": false,
"label": "name",
"language": "js",
"value": "foo",
},
- Object {
+ {
"isDisabled": true,
"label": "name",
"language": "js",
@@ -94,7 +94,7 @@ Array [
]
}
value={
- Object {
+ {
"isDisabled": false,
"label": "name",
"language": "js",
@@ -127,7 +127,7 @@ Array [
`;
exports[`should render correctly: inherits system default 1`] = `
-Array [
+[
<div
className="modal-head"
>
@@ -197,21 +197,21 @@ Array [
<Select
className="abs-width-300"
components={
- Object {
+ {
"Option": [Function],
}
}
isDisabled={true}
onChange={[Function]}
options={
- Array [
- Object {
+ [
+ {
"isDisabled": false,
"label": "name",
"language": "js",
"value": "foo",
},
- Object {
+ {
"isDisabled": true,
"label": "name",
"language": "js",
@@ -220,7 +220,7 @@ Array [
]
}
value={
- Object {
+ {
"isDisabled": false,
"label": "name",
"language": "js",
@@ -253,7 +253,7 @@ Array [
`;
exports[`should render correctly: needs reanalysis 1`] = `
-Array [
+[
<div
className="modal-head"
>
@@ -323,21 +323,21 @@ Array [
<Select
className="abs-width-300"
components={
- Object {
+ {
"Option": [Function],
}
}
isDisabled={false}
onChange={[Function]}
options={
- Array [
- Object {
+ [
+ {
"isDisabled": false,
"label": "name",
"language": "js",
"value": "foo",
},
- Object {
+ {
"isDisabled": true,
"label": "name",
"language": "js",
@@ -346,7 +346,7 @@ Array [
]
}
value={
- Object {
+ {
"isDisabled": false,
"label": "name",
"language": "js",
diff --git a/server/sonar-web/src/main/js/apps/projects/components/__tests__/__snapshots__/AllProjects-test.tsx.snap b/server/sonar-web/src/main/js/apps/projects/components/__tests__/__snapshots__/AllProjects-test.tsx.snap
index 5bc0159cb69..e2e307db962 100644
--- a/server/sonar-web/src/main/js/apps/projects/components/__tests__/__snapshots__/AllProjects-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/projects/components/__tests__/__snapshots__/AllProjects-test.tsx.snap
@@ -1,27 +1,27 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`handles favorite projects 1`] = `
-Array [
- Object {
+[
+ {
"key": "foo",
- "measures": Object {},
+ "measures": {},
"name": "Foo",
"qualifier": "TRK",
- "tags": Array [],
+ "tags": [],
"visibility": "public",
},
]
`;
exports[`handles favorite projects 2`] = `
-Array [
- Object {
+[
+ {
"isFavorite": true,
"key": "foo",
- "measures": Object {},
+ "measures": {},
"name": "Foo",
"qualifier": "TRK",
- "tags": Array [],
+ "tags": [],
"visibility": "public",
},
]
@@ -76,8 +76,8 @@ exports[`renders 1`] = `
>
<PageHeader
currentUser={
- Object {
- "dismissedNotices": Object {},
+ {
+ "dismissedNotices": {},
"isLoggedIn": true,
}
}
@@ -86,7 +86,7 @@ exports[`renders 1`] = `
onQueryChange={[Function]}
onSortChange={[Function]}
query={
- Object {
+ {
"coverage": undefined,
"duplications": undefined,
"gate": undefined,
@@ -123,8 +123,8 @@ exports[`renders 1`] = `
<ProjectsList
cardType="overall"
currentUser={
- Object {
- "dismissedNotices": Object {},
+ {
+ "dismissedNotices": {},
"isLoggedIn": true,
}
}
@@ -132,19 +132,19 @@ exports[`renders 1`] = `
isFavorite={false}
isFiltered={false}
projects={
- Array [
- Object {
+ [
+ {
"key": "foo",
- "measures": Object {},
+ "measures": {},
"name": "Foo",
"qualifier": "TRK",
- "tags": Array [],
+ "tags": [],
"visibility": "public",
},
]
}
query={
- Object {
+ {
"coverage": undefined,
"duplications": undefined,
"gate": undefined,
diff --git a/server/sonar-web/src/main/js/apps/projects/components/__tests__/__snapshots__/PageHeader-test.tsx.snap b/server/sonar-web/src/main/js/apps/projects/components/__tests__/__snapshots__/PageHeader-test.tsx.snap
index 63df87937ae..9bf2ac22202 100644
--- a/server/sonar-web/src/main/js/apps/projects/components/__tests__/__snapshots__/PageHeader-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/projects/components/__tests__/__snapshots__/PageHeader-test.tsx.snap
@@ -10,7 +10,7 @@ exports[`should render correctly 1`] = `
<SearchFilterContainer
onQueryChange={[MockFunction]}
query={
- Object {
+ {
"search": "test",
}
}
@@ -27,7 +27,7 @@ exports[`should render correctly 1`] = `
<withCurrentUserContext(HomePageSelect)
className="spacer-left little-spacer-right"
currentPage={
- Object {
+ {
"type": "PROJECTS",
}
}
@@ -85,7 +85,7 @@ exports[`should render correctly while loading 1`] = `
<SearchFilterContainer
onQueryChange={[MockFunction]}
query={
- Object {
+ {
"search": "test",
}
}
@@ -102,7 +102,7 @@ exports[`should render correctly while loading 1`] = `
<withCurrentUserContext(HomePageSelect)
className="spacer-left little-spacer-right"
currentPage={
- Object {
+ {
"type": "PROJECTS",
}
}
diff --git a/server/sonar-web/src/main/js/apps/projects/components/__tests__/__snapshots__/PerspectiveSelect-test.tsx.snap b/server/sonar-web/src/main/js/apps/projects/components/__tests__/__snapshots__/PerspectiveSelect-test.tsx.snap
index 2bc12d3f297..f334c544fb9 100644
--- a/server/sonar-web/src/main/js/apps/projects/components/__tests__/__snapshots__/PerspectiveSelect-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/projects/components/__tests__/__snapshots__/PerspectiveSelect-test.tsx.snap
@@ -1,14 +1,14 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`should handle perspective change correctly 1`] = `
-Array [
- Array [
- Object {
+[
+ [
+ {
"view": "overall",
},
],
- Array [
- Object {
+ [
+ {
"view": "leak",
},
],
@@ -27,7 +27,7 @@ exports[`should render correctly 1`] = `
aria-labelledby="aria-projects-perspective"
className="little-spacer-left input-medium it__projects-perspective-select"
components={
- Object {
+ {
"Option": [Function],
}
}
@@ -35,19 +35,19 @@ exports[`should render correctly 1`] = `
isSearchable={false}
onChange={[Function]}
options={
- Array [
- Object {
+ [
+ {
"label": "projects.view.overall",
"value": "overall",
},
- Object {
+ {
"label": "projects.view.new_code",
"value": "leak",
},
]
}
value={
- Object {
+ {
"label": "projects.view.overall",
"value": "overall",
}
diff --git a/server/sonar-web/src/main/js/apps/projects/components/__tests__/__snapshots__/ProjectCreationMenu-test.tsx.snap b/server/sonar-web/src/main/js/apps/projects/components/__tests__/__snapshots__/ProjectCreationMenu-test.tsx.snap
index 1f8eda4e83a..7cb917174b5 100644
--- a/server/sonar-web/src/main/js/apps/projects/components/__tests__/__snapshots__/ProjectCreationMenu-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/projects/components/__tests__/__snapshots__/ProjectCreationMenu-test.tsx.snap
@@ -20,7 +20,7 @@ exports[`should render correctly: default 1`] = `
<ForwardRef(Link)
className="display-flex-center"
to={
- Object {
+ {
"pathname": "/projects/create",
}
}
diff --git a/server/sonar-web/src/main/js/apps/projects/components/__tests__/__snapshots__/ProjectCreationMenuItem-test.tsx.snap b/server/sonar-web/src/main/js/apps/projects/components/__tests__/__snapshots__/ProjectCreationMenuItem-test.tsx.snap
index 209d4eee7e1..6a5d0e5cf60 100644
--- a/server/sonar-web/src/main/js/apps/projects/components/__tests__/__snapshots__/ProjectCreationMenuItem-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/projects/components/__tests__/__snapshots__/ProjectCreationMenuItem-test.tsx.snap
@@ -4,7 +4,7 @@ exports[`should render correctly: bitbucket 1`] = `
<ForwardRef(Link)
className="display-flex-center"
to={
- Object {
+ {
"pathname": "/projects/create",
"search": "?mode=bitbucket",
}
@@ -24,7 +24,7 @@ exports[`should render correctly: manual 1`] = `
<ForwardRef(Link)
className="display-flex-center"
to={
- Object {
+ {
"pathname": "/projects/create",
"search": "?mode=manual",
}
diff --git a/server/sonar-web/src/main/js/apps/projects/components/__tests__/__snapshots__/ProjectsList-test.tsx.snap b/server/sonar-web/src/main/js/apps/projects/components/__tests__/__snapshots__/ProjectsList-test.tsx.snap
index 166b28db57e..7c52b5fe9a3 100644
--- a/server/sonar-web/src/main/js/apps/projects/components/__tests__/__snapshots__/ProjectsList-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/projects/components/__tests__/__snapshots__/ProjectsList-test.tsx.snap
@@ -20,7 +20,7 @@ exports[`renders correctly: list element 1`] = `
scrollToIndex={-1}
scrollTop={0}
style={
- Object {
+ {
"outline": "none",
}
}
@@ -33,7 +33,7 @@ exports[`renders correctly: row element 1`] = `
<div
role="row"
style={
- Object {
+ {
"height": 145,
}
}
@@ -43,13 +43,13 @@ exports[`renders correctly: row element 1`] = `
>
<ProjectCard
currentUser={
- Object {
+ {
"isLoggedIn": true,
}
}
height={145}
project={
- Object {
+ {
"key": "foo",
"name": "Foo",
}
@@ -66,7 +66,7 @@ exports[`renders different types of "no projects" 1`] = `
>
<withRouter(EmptyInstance)
currentUser={
- Object {
+ {
"isLoggedIn": true,
}
}
diff --git a/server/sonar-web/src/main/js/apps/projects/components/__tests__/__snapshots__/ProjectsSortingSelect-test.tsx.snap b/server/sonar-web/src/main/js/apps/projects/components/__tests__/__snapshots__/ProjectsSortingSelect-test.tsx.snap
index 4d9e9165547..44825139d16 100644
--- a/server/sonar-web/src/main/js/apps/projects/components/__tests__/__snapshots__/ProjectsSortingSelect-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/projects/components/__tests__/__snapshots__/ProjectsSortingSelect-test.tsx.snap
@@ -12,7 +12,7 @@ exports[`should handle the descending sort direction 1`] = `
aria-labelledby="aria-projects-sort"
className="little-spacer-left input-medium it__projects-sort-select"
components={
- Object {
+ {
"Option": [Function],
}
}
@@ -20,48 +20,48 @@ exports[`should handle the descending sort direction 1`] = `
isSearchable={false}
onChange={[Function]}
options={
- Array [
- Object {
+ [
+ {
"className": undefined,
"label": "projects.sorting.name",
"value": "name",
},
- Object {
+ {
"className": undefined,
"label": "projects.sorting.analysis_date",
"value": "analysis_date",
},
- Object {
+ {
"className": undefined,
"label": "projects.sorting.reliability",
"value": "reliability",
},
- Object {
+ {
"className": undefined,
"label": "projects.sorting.security",
"value": "security",
},
- Object {
+ {
"className": undefined,
"label": "projects.sorting.security_review",
"value": "security_review",
},
- Object {
+ {
"className": undefined,
"label": "projects.sorting.maintainability",
"value": "maintainability",
},
- Object {
+ {
"className": undefined,
"label": "projects.sorting.coverage",
"value": "coverage",
},
- Object {
+ {
"className": undefined,
"label": "projects.sorting.duplications",
"value": "duplications",
},
- Object {
+ {
"className": undefined,
"label": "projects.sorting.size",
"value": "size",
@@ -100,7 +100,7 @@ exports[`should render correctly for leak view 1`] = `
aria-labelledby="aria-projects-sort"
className="little-spacer-left input-medium it__projects-sort-select"
components={
- Object {
+ {
"Option": [Function],
}
}
@@ -108,48 +108,48 @@ exports[`should render correctly for leak view 1`] = `
isSearchable={false}
onChange={[Function]}
options={
- Array [
- Object {
+ [
+ {
"className": undefined,
"label": "projects.sorting.analysis_date",
"value": "analysis_date",
},
- Object {
+ {
"className": undefined,
"label": "projects.sorting.name",
"value": "name",
},
- Object {
+ {
"className": "projects-leak-sorting-option",
"label": "projects.sorting.new_reliability",
"value": "new_reliability",
},
- Object {
+ {
"className": "projects-leak-sorting-option",
"label": "projects.sorting.new_security",
"value": "new_security",
},
- Object {
+ {
"className": "projects-leak-sorting-option",
"label": "projects.sorting.new_security_review",
"value": "new_security_review",
},
- Object {
+ {
"className": "projects-leak-sorting-option",
"label": "projects.sorting.new_maintainability",
"value": "new_maintainability",
},
- Object {
+ {
"className": "projects-leak-sorting-option",
"label": "projects.sorting.new_coverage",
"value": "new_coverage",
},
- Object {
+ {
"className": "projects-leak-sorting-option",
"label": "projects.sorting.new_duplications",
"value": "new_duplications",
},
- Object {
+ {
"className": "projects-leak-sorting-option",
"label": "projects.sorting.new_lines",
"value": "new_lines",
@@ -157,7 +157,7 @@ exports[`should render correctly for leak view 1`] = `
]
}
value={
- Object {
+ {
"className": "projects-leak-sorting-option",
"label": "projects.sorting.new_coverage",
"value": "new_coverage",
@@ -195,7 +195,7 @@ exports[`should render correctly for overall view 1`] = `
aria-labelledby="aria-projects-sort"
className="little-spacer-left input-medium it__projects-sort-select"
components={
- Object {
+ {
"Option": [Function],
}
}
@@ -203,48 +203,48 @@ exports[`should render correctly for overall view 1`] = `
isSearchable={false}
onChange={[Function]}
options={
- Array [
- Object {
+ [
+ {
"className": undefined,
"label": "projects.sorting.name",
"value": "name",
},
- Object {
+ {
"className": undefined,
"label": "projects.sorting.analysis_date",
"value": "analysis_date",
},
- Object {
+ {
"className": undefined,
"label": "projects.sorting.reliability",
"value": "reliability",
},
- Object {
+ {
"className": undefined,
"label": "projects.sorting.security",
"value": "security",
},
- Object {
+ {
"className": undefined,
"label": "projects.sorting.security_review",
"value": "security_review",
},
- Object {
+ {
"className": undefined,
"label": "projects.sorting.maintainability",
"value": "maintainability",
},
- Object {
+ {
"className": undefined,
"label": "projects.sorting.coverage",
"value": "coverage",
},
- Object {
+ {
"className": undefined,
"label": "projects.sorting.duplications",
"value": "duplications",
},
- Object {
+ {
"className": undefined,
"label": "projects.sorting.size",
"value": "size",
@@ -252,7 +252,7 @@ exports[`should render correctly for overall view 1`] = `
]
}
value={
- Object {
+ {
"className": undefined,
"label": "projects.sorting.name",
"value": "name",
@@ -282,7 +282,7 @@ exports[`should render option correctly 1`] = `
<Option
className="it__project-sort-option-foo undefined"
data={
- Object {
+ {
"label": "foo",
"short": "fo",
"value": "foo",
@@ -297,7 +297,7 @@ exports[`should render option correctly 2`] = `
<Option
className="it__project-sort-option-foo undefined"
data={
- Object {
+ {
"label": "foo",
"value": "foo",
}
diff --git a/server/sonar-web/src/main/js/apps/projects/components/project-card/__tests__/__snapshots__/ProjectCard-test.tsx.snap b/server/sonar-web/src/main/js/apps/projects/components/project-card/__tests__/__snapshots__/ProjectCard-test.tsx.snap
index 8a83a968776..d0825620491 100644
--- a/server/sonar-web/src/main/js/apps/projects/components/project-card/__tests__/__snapshots__/ProjectCard-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/projects/components/project-card/__tests__/__snapshots__/ProjectCard-test.tsx.snap
@@ -5,7 +5,7 @@ exports[`should display applications 1`] = `
className="display-flex-column boxed-group it_project_card"
data-key="foo"
style={
- Object {
+ {
"height": 100,
}
}
@@ -38,7 +38,7 @@ exports[`should display applications 1`] = `
>
<ForwardRef(Link)
to={
- Object {
+ {
"pathname": "/dashboard",
"search": "?id=foo",
}
@@ -83,7 +83,7 @@ exports[`should display applications 1`] = `
componentQualifier="APP"
isNewCode={false}
measures={
- Object {
+ {
"alert_status": "OK",
"new_bugs": "12",
"reliability_rating": "1.0",
@@ -104,7 +104,7 @@ exports[`should display applications: with project count 1`] = `
className="display-flex-column boxed-group it_project_card"
data-key="foo"
style={
- Object {
+ {
"height": 100,
}
}
@@ -141,7 +141,7 @@ exports[`should display applications: with project count 1`] = `
>
<ForwardRef(Link)
to={
- Object {
+ {
"pathname": "/dashboard",
"search": "?id=foo",
}
@@ -186,7 +186,7 @@ exports[`should display applications: with project count 1`] = `
componentQualifier="APP"
isNewCode={false}
measures={
- Object {
+ {
"alert_status": "OK",
"new_bugs": "12",
"projects": "3",
@@ -208,7 +208,7 @@ exports[`should display configure analysis button for logged in user: default 1`
className="display-flex-column boxed-group it_project_card"
data-key="foo"
style={
- Object {
+ {
"height": 100,
}
}
@@ -225,7 +225,7 @@ exports[`should display configure analysis button for logged in user: default 1`
>
<ForwardRef(Link)
to={
- Object {
+ {
"pathname": "/dashboard",
"search": "?id=foo",
}
@@ -266,7 +266,7 @@ exports[`should display configure analysis button for logged in user: default 1`
<ForwardRef(Link)
className="button spacer-left"
to={
- Object {
+ {
"pathname": "/dashboard",
"search": "?id=foo",
}
@@ -288,7 +288,7 @@ exports[`should display configure analysis button for logged in user: hidden if
className="display-flex-column boxed-group it_project_card project-card-disabled"
data-key="foo"
style={
- Object {
+ {
"height": 100,
}
}
@@ -348,7 +348,7 @@ exports[`should display correclty when project need issue synch 1`] = `
className="display-flex-column boxed-group it_project_card project-card-disabled"
data-key="foo"
style={
- Object {
+ {
"height": 100,
}
}
@@ -401,7 +401,7 @@ exports[`should display correclty when project need issue synch 1`] = `
componentQualifier="TRK"
isNewCode={false}
measures={
- Object {
+ {
"alert_status": "OK",
"new_bugs": "12",
"reliability_rating": "1.0",
@@ -422,7 +422,7 @@ exports[`should display not analyzed yet 1`] = `
className="display-flex-column boxed-group it_project_card"
data-key="foo"
style={
- Object {
+ {
"height": 100,
}
}
@@ -439,7 +439,7 @@ exports[`should display not analyzed yet 1`] = `
>
<ForwardRef(Link)
to={
- Object {
+ {
"pathname": "/dashboard",
"search": "?id=foo",
}
@@ -491,7 +491,7 @@ exports[`should display the overall measures and quality gate 1`] = `
className="display-flex-column boxed-group it_project_card"
data-key="foo"
style={
- Object {
+ {
"height": 100,
}
}
@@ -508,7 +508,7 @@ exports[`should display the overall measures and quality gate 1`] = `
>
<ForwardRef(Link)
to={
- Object {
+ {
"pathname": "/dashboard",
"search": "?id=foo",
}
@@ -553,7 +553,7 @@ exports[`should display the overall measures and quality gate 1`] = `
componentQualifier="TRK"
isNewCode={false}
measures={
- Object {
+ {
"alert_status": "OK",
"new_bugs": "12",
"reliability_rating": "1.0",
diff --git a/server/sonar-web/src/main/js/apps/projects/filters/__tests__/__snapshots__/CoverageFilter-test.tsx.snap b/server/sonar-web/src/main/js/apps/projects/filters/__tests__/__snapshots__/CoverageFilter-test.tsx.snap
index 04f540477f7..cc8845fca55 100644
--- a/server/sonar-web/src/main/js/apps/projects/filters/__tests__/__snapshots__/CoverageFilter-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/projects/filters/__tests__/__snapshots__/CoverageFilter-test.tsx.snap
@@ -12,7 +12,7 @@ exports[`renders 1`] = `
highlightUnderMax={5}
onQueryChange={[MockFunction]}
options={
- Array [
+ [
1,
2,
3,
diff --git a/server/sonar-web/src/main/js/apps/projects/filters/__tests__/__snapshots__/DuplicationsFilter-test.tsx.snap b/server/sonar-web/src/main/js/apps/projects/filters/__tests__/__snapshots__/DuplicationsFilter-test.tsx.snap
index b20207155db..9d0dd8b76a3 100644
--- a/server/sonar-web/src/main/js/apps/projects/filters/__tests__/__snapshots__/DuplicationsFilter-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/projects/filters/__tests__/__snapshots__/DuplicationsFilter-test.tsx.snap
@@ -12,7 +12,7 @@ exports[`renders 1`] = `
highlightUnderMax={5}
onQueryChange={[MockFunction]}
options={
- Array [
+ [
1,
2,
3,
diff --git a/server/sonar-web/src/main/js/apps/projects/filters/__tests__/__snapshots__/Filter-test.tsx.snap b/server/sonar-web/src/main/js/apps/projects/filters/__tests__/__snapshots__/Filter-test.tsx.snap
index 891db262a5d..a314e5e8921 100644
--- a/server/sonar-web/src/main/js/apps/projects/filters/__tests__/__snapshots__/Filter-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/projects/filters/__tests__/__snapshots__/Filter-test.tsx.snap
@@ -262,7 +262,7 @@ exports[`renders facet bar chart 1`] = `
<div
className="projects-facet-bar-inner"
style={
- Object {
+ {
"width": 42.5,
}
}
@@ -300,7 +300,7 @@ exports[`renders facet bar chart 1`] = `
<div
className="projects-facet-bar-inner"
style={
- Object {
+ {
"width": 37.5,
}
}
@@ -338,7 +338,7 @@ exports[`renders facet bar chart 1`] = `
<div
className="projects-facet-bar-inner"
style={
- Object {
+ {
"width": 60,
}
}
diff --git a/server/sonar-web/src/main/js/apps/projects/filters/__tests__/__snapshots__/IssuesFilter-test.tsx.snap b/server/sonar-web/src/main/js/apps/projects/filters/__tests__/__snapshots__/IssuesFilter-test.tsx.snap
index d8e685cdb57..a31a4afc1c4 100644
--- a/server/sonar-web/src/main/js/apps/projects/filters/__tests__/__snapshots__/IssuesFilter-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/projects/filters/__tests__/__snapshots__/IssuesFilter-test.tsx.snap
@@ -10,7 +10,7 @@ exports[`renders 1`] = `
highlightUnder={1}
onQueryChange={[MockFunction]}
options={
- Array [
+ [
1,
2,
3,
diff --git a/server/sonar-web/src/main/js/apps/projects/filters/__tests__/__snapshots__/LanguagesFilter-test.tsx.snap b/server/sonar-web/src/main/js/apps/projects/filters/__tests__/__snapshots__/LanguagesFilter-test.tsx.snap
index 599f4d2d941..ca075b1de55 100644
--- a/server/sonar-web/src/main/js/apps/projects/filters/__tests__/__snapshots__/LanguagesFilter-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/projects/filters/__tests__/__snapshots__/LanguagesFilter-test.tsx.snap
@@ -3,7 +3,7 @@
exports[`should render the languages facet with the selected languages 1`] = `
<Filter
facet={
- Object {
+ {
"cs": 4,
"java": 39,
"js": 1,
@@ -13,16 +13,16 @@ exports[`should render the languages facet with the selected languages 1`] = `
<SearchableFilterFooter
onQueryChange={[MockFunction]}
options={
- Array [
- Object {
+ [
+ {
"label": "Flex",
"value": "flex",
},
- Object {
+ {
"label": "PHP",
"value": "php",
},
- Object {
+ {
"label": "Python",
"value": "py",
},
@@ -30,8 +30,8 @@ exports[`should render the languages facet with the selected languages 1`] = `
}
property="languages"
query={
- Object {
- "languages": Array [
+ {
+ "languages": [
"java",
"cs",
],
@@ -46,7 +46,7 @@ exports[`should render the languages facet with the selected languages 1`] = `
}
onQueryChange={[MockFunction]}
options={
- Array [
+ [
"java",
"cs",
"js",
@@ -56,7 +56,7 @@ exports[`should render the languages facet with the selected languages 1`] = `
renderAccessibleLabel={[Function]}
renderOption={[Function]}
value={
- Array [
+ [
"java",
"cs",
]
@@ -94,7 +94,7 @@ exports[`should render the languages facet with the selected languages 2`] = `
>
<SearchableFilterOption
option={
- Object {
+ {
"key": "java",
"name": "Java",
}
@@ -128,7 +128,7 @@ exports[`should render the languages facet with the selected languages 2`] = `
>
<SearchableFilterOption
option={
- Object {
+ {
"key": "cs",
"name": "C#",
}
@@ -162,7 +162,7 @@ exports[`should render the languages facet with the selected languages 2`] = `
>
<SearchableFilterOption
option={
- Object {
+ {
"key": "js",
"name": "JavaScript",
}
@@ -181,16 +181,16 @@ exports[`should render the languages facet with the selected languages 2`] = `
<SearchableFilterFooter
onQueryChange={[MockFunction]}
options={
- Array [
- Object {
+ [
+ {
"label": "Flex",
"value": "flex",
},
- Object {
+ {
"label": "PHP",
"value": "php",
},
- Object {
+ {
"label": "Python",
"value": "py",
},
@@ -198,8 +198,8 @@ exports[`should render the languages facet with the selected languages 2`] = `
}
property="languages"
query={
- Object {
- "languages": Array [
+ {
+ "languages": [
"java",
"cs",
],
@@ -212,7 +212,7 @@ exports[`should render the languages facet with the selected languages 2`] = `
exports[`should render the languages without the ones in the facet 1`] = `
<Filter
facet={
- Object {
+ {
"cs": 4,
"java": 39,
"js": 1,
@@ -222,16 +222,16 @@ exports[`should render the languages without the ones in the facet 1`] = `
<SearchableFilterFooter
onQueryChange={[MockFunction]}
options={
- Array [
- Object {
+ [
+ {
"label": "Flex",
"value": "flex",
},
- Object {
+ {
"label": "PHP",
"value": "php",
},
- Object {
+ {
"label": "Python",
"value": "py",
},
@@ -239,7 +239,7 @@ exports[`should render the languages without the ones in the facet 1`] = `
}
property="languages"
query={
- Object {
+ {
"languages": null,
}
}
@@ -252,7 +252,7 @@ exports[`should render the languages without the ones in the facet 1`] = `
}
onQueryChange={[MockFunction]}
options={
- Array [
+ [
"java",
"cs",
"js",
diff --git a/server/sonar-web/src/main/js/apps/projects/filters/__tests__/__snapshots__/NewLinesFilter-test.tsx.snap b/server/sonar-web/src/main/js/apps/projects/filters/__tests__/__snapshots__/NewLinesFilter-test.tsx.snap
index 0997f882a49..c7d7b0face0 100644
--- a/server/sonar-web/src/main/js/apps/projects/filters/__tests__/__snapshots__/NewLinesFilter-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/projects/filters/__tests__/__snapshots__/NewLinesFilter-test.tsx.snap
@@ -12,7 +12,7 @@ exports[`renders 1`] = `
highlightUnder={1}
onQueryChange={[MockFunction]}
options={
- Array [
+ [
1,
2,
3,
diff --git a/server/sonar-web/src/main/js/apps/projects/filters/__tests__/__snapshots__/QualifierFilter-test.tsx.snap b/server/sonar-web/src/main/js/apps/projects/filters/__tests__/__snapshots__/QualifierFilter-test.tsx.snap
index a4f41ad201c..0407a0cc0d9 100644
--- a/server/sonar-web/src/main/js/apps/projects/filters/__tests__/__snapshots__/QualifierFilter-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/projects/filters/__tests__/__snapshots__/QualifierFilter-test.tsx.snap
@@ -9,7 +9,7 @@ exports[`renders 1`] = `
}
onQueryChange={[MockFunction]}
options={
- Array [
+ [
"TRK",
"APP",
]
diff --git a/server/sonar-web/src/main/js/apps/projects/filters/__tests__/__snapshots__/QualityGateFilter-test.tsx.snap b/server/sonar-web/src/main/js/apps/projects/filters/__tests__/__snapshots__/QualityGateFilter-test.tsx.snap
index dccd1856c4e..91e8ff5fadc 100644
--- a/server/sonar-web/src/main/js/apps/projects/filters/__tests__/__snapshots__/QualityGateFilter-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/projects/filters/__tests__/__snapshots__/QualityGateFilter-test.tsx.snap
@@ -9,7 +9,7 @@ exports[`renders 1`] = `
}
onQueryChange={[MockFunction]}
options={
- Array [
+ [
"OK",
"ERROR",
]
diff --git a/server/sonar-web/src/main/js/apps/projects/filters/__tests__/__snapshots__/SearchableFilterFooter-test.tsx.snap b/server/sonar-web/src/main/js/apps/projects/filters/__tests__/__snapshots__/SearchableFilterFooter-test.tsx.snap
index 6cf27012dfd..83c13ac4bd4 100644
--- a/server/sonar-web/src/main/js/apps/projects/filters/__tests__/__snapshots__/SearchableFilterFooter-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/projects/filters/__tests__/__snapshots__/SearchableFilterFooter-test.tsx.snap
@@ -1,16 +1,16 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`should render items without the ones in the facet 1`] = `
-Array [
- Object {
+[
+ {
"label": "java",
"value": "java",
},
- Object {
+ {
"label": "js",
"value": "js",
},
- Object {
+ {
"label": "csharp",
"value": "csharp",
},
diff --git a/server/sonar-web/src/main/js/apps/projects/filters/__tests__/__snapshots__/SecurityReviewFilter-test.tsx.snap b/server/sonar-web/src/main/js/apps/projects/filters/__tests__/__snapshots__/SecurityReviewFilter-test.tsx.snap
index 9345ad925c2..1489d874689 100644
--- a/server/sonar-web/src/main/js/apps/projects/filters/__tests__/__snapshots__/SecurityReviewFilter-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/projects/filters/__tests__/__snapshots__/SecurityReviewFilter-test.tsx.snap
@@ -21,7 +21,7 @@ exports[`renders 1`] = `
highlightUnder={1}
onQueryChange={[MockFunction]}
options={
- Array [
+ [
1,
2,
3,
diff --git a/server/sonar-web/src/main/js/apps/projects/filters/__tests__/__snapshots__/SizeFilter-test.tsx.snap b/server/sonar-web/src/main/js/apps/projects/filters/__tests__/__snapshots__/SizeFilter-test.tsx.snap
index bd9faa3be3e..82fe4ec4ce3 100644
--- a/server/sonar-web/src/main/js/apps/projects/filters/__tests__/__snapshots__/SizeFilter-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/projects/filters/__tests__/__snapshots__/SizeFilter-test.tsx.snap
@@ -11,7 +11,7 @@ exports[`renders 1`] = `
highlightUnder={1}
onQueryChange={[MockFunction]}
options={
- Array [
+ [
1,
2,
3,
diff --git a/server/sonar-web/src/main/js/apps/projects/filters/__tests__/__snapshots__/TagsFilter-test.tsx.snap b/server/sonar-web/src/main/js/apps/projects/filters/__tests__/__snapshots__/TagsFilter-test.tsx.snap
index 5b04154d8cf..9754909b5eb 100644
--- a/server/sonar-web/src/main/js/apps/projects/filters/__tests__/__snapshots__/TagsFilter-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/projects/filters/__tests__/__snapshots__/TagsFilter-test.tsx.snap
@@ -3,7 +3,7 @@
exports[`should render maximum 10 tags in the searchbox results 1`] = `
<Filter
facet={
- Object {
+ {
"ad": 1,
"csharp": 1,
"lang": 4,
@@ -17,44 +17,44 @@ exports[`should render maximum 10 tags in the searchbox results 1`] = `
onOpen={[Function]}
onQueryChange={[MockFunction]}
options={
- Array [
- Object {
+ [
+ {
"label": "dotnet",
"value": "dotnet",
},
- Object {
+ {
"label": "it",
"value": "it",
},
- Object {
+ {
"label": "net",
"value": "net",
},
- Object {
+ {
"label": "aa",
"value": "aa",
},
- Object {
+ {
"label": "ab",
"value": "ab",
},
- Object {
+ {
"label": "ac",
"value": "ac",
},
- Object {
+ {
"label": "ae",
"value": "ae",
},
- Object {
+ {
"label": "af",
"value": "af",
},
- Object {
+ {
"label": "ag",
"value": "ag",
},
- Object {
+ {
"label": "ah",
"value": "ah",
},
@@ -62,8 +62,8 @@ exports[`should render maximum 10 tags in the searchbox results 1`] = `
}
property="tags"
query={
- Object {
- "languages": Array [
+ {
+ "languages": [
"java",
"ad",
],
@@ -78,7 +78,7 @@ exports[`should render maximum 10 tags in the searchbox results 1`] = `
}
onQueryChange={[MockFunction]}
options={
- Array [
+ [
"lang",
"sonar",
"ad",
@@ -89,7 +89,7 @@ exports[`should render maximum 10 tags in the searchbox results 1`] = `
renderAccessibleLabel={[Function]}
renderOption={[Function]}
value={
- Array [
+ [
"java",
"ad",
]
@@ -100,7 +100,7 @@ exports[`should render maximum 10 tags in the searchbox results 1`] = `
exports[`should render the tags facet with the selected tags 1`] = `
<Filter
facet={
- Object {
+ {
"csharp": 1,
"lang": 4,
"sonar": 3,
@@ -112,11 +112,11 @@ exports[`should render the tags facet with the selected tags 1`] = `
onInputChange={[Function]}
onOpen={[Function]}
onQueryChange={[MockFunction]}
- options={Array []}
+ options={[]}
property="tags"
query={
- Object {
- "tags": Array [
+ {
+ "tags": [
"lang",
"sonar",
],
@@ -131,7 +131,7 @@ exports[`should render the tags facet with the selected tags 1`] = `
}
onQueryChange={[MockFunction]}
options={
- Array [
+ [
"lang",
"sonar",
"csharp",
@@ -141,7 +141,7 @@ exports[`should render the tags facet with the selected tags 1`] = `
renderAccessibleLabel={[Function]}
renderOption={[Function]}
value={
- Array [
+ [
"lang",
"sonar",
]
@@ -250,11 +250,11 @@ exports[`should render the tags facet with the selected tags 2`] = `
onInputChange={[Function]}
onOpen={[Function]}
onQueryChange={[MockFunction]}
- options={Array []}
+ options={[]}
property="tags"
query={
- Object {
- "tags": Array [
+ {
+ "tags": [
"lang",
"sonar",
],
@@ -267,7 +267,7 @@ exports[`should render the tags facet with the selected tags 2`] = `
exports[`should render the tags without the ones in the facet 1`] = `
<Filter
facet={
- Object {
+ {
"csharp": 1,
"lang": 4,
"sonar": 3,
@@ -279,10 +279,10 @@ exports[`should render the tags without the ones in the facet 1`] = `
onInputChange={[Function]}
onOpen={[Function]}
onQueryChange={[MockFunction]}
- options={Array []}
+ options={[]}
property="tags"
query={
- Object {
+ {
"tags": null,
}
}
@@ -295,7 +295,7 @@ exports[`should render the tags without the ones in the facet 1`] = `
}
onQueryChange={[MockFunction]}
options={
- Array [
+ [
"lang",
"sonar",
"csharp",
@@ -310,7 +310,7 @@ exports[`should render the tags without the ones in the facet 1`] = `
exports[`should render the tags without the ones in the facet 2`] = `
<Filter
facet={
- Object {
+ {
"csharp": 1,
"lang": 4,
"sonar": 3,
@@ -323,16 +323,16 @@ exports[`should render the tags without the ones in the facet 2`] = `
onOpen={[Function]}
onQueryChange={[MockFunction]}
options={
- Array [
- Object {
+ [
+ {
"label": "dotnet",
"value": "dotnet",
},
- Object {
+ {
"label": "it",
"value": "it",
},
- Object {
+ {
"label": "net",
"value": "net",
},
@@ -340,7 +340,7 @@ exports[`should render the tags without the ones in the facet 2`] = `
}
property="tags"
query={
- Object {
+ {
"tags": null,
}
}
@@ -353,7 +353,7 @@ exports[`should render the tags without the ones in the facet 2`] = `
}
onQueryChange={[MockFunction]}
options={
- Array [
+ [
"lang",
"sonar",
"csharp",
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",
}
}
diff --git a/server/sonar-web/src/main/js/apps/quality-profiles/__tests__/__snapshots__/utils-test.ts.snap b/server/sonar-web/src/main/js/apps/quality-profiles/__tests__/__snapshots__/utils-test.ts.snap
index a833c80f2e3..05becce21d1 100644
--- a/server/sonar-web/src/main/js/apps/quality-profiles/__tests__/__snapshots__/utils-test.ts.snap
+++ b/server/sonar-web/src/main/js/apps/quality-profiles/__tests__/__snapshots__/utils-test.ts.snap
@@ -1,22 +1,22 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`#sortProfiles should sort by name 1`] = `
-Array [
- Object {
+[
+ {
"childrenCount": 0,
"depth": 1,
"key": "profile1",
"name": "profile1",
"parentKey": undefined,
},
- Object {
+ {
"childrenCount": 0,
"depth": 1,
"key": "profile2",
"name": "profile2",
"parentKey": undefined,
},
- Object {
+ {
"childrenCount": 0,
"depth": 1,
"key": "profile3",
@@ -27,22 +27,22 @@ Array [
`;
exports[`#sortProfiles should sort single branch 1`] = `
-Array [
- Object {
+[
+ {
"childrenCount": 1,
"depth": 1,
"key": "profile1",
"name": "profile1",
"parentKey": undefined,
},
- Object {
+ {
"childrenCount": 1,
"depth": 2,
"key": "profile3",
"name": "profile3",
"parentKey": "profile1",
},
- Object {
+ {
"childrenCount": 0,
"depth": 3,
"key": "profile2",
@@ -53,22 +53,22 @@ Array [
`;
exports[`#sortProfiles should sort when no parents 1`] = `
-Array [
- Object {
+[
+ {
"childrenCount": 0,
"depth": 1,
"key": "profile1",
"name": "profile1",
"parentKey": undefined,
},
- Object {
+ {
"childrenCount": 0,
"depth": 1,
"key": "profile2",
"name": "profile2",
"parentKey": undefined,
},
- Object {
+ {
"childrenCount": 0,
"depth": 1,
"key": "profile3",
@@ -79,22 +79,22 @@ Array [
`;
exports[`#sortProfiles should sort with children 1`] = `
-Array [
- Object {
+[
+ {
"childrenCount": 2,
"depth": 1,
"key": "parent",
"name": "parent",
"parentKey": undefined,
},
- Object {
+ {
"childrenCount": 0,
"depth": 2,
"key": "child1",
"name": "child1",
"parentKey": "parent",
},
- Object {
+ {
"childrenCount": 0,
"depth": 2,
"key": "child2",
@@ -105,8 +105,8 @@ Array [
`;
exports[`#sortProfiles sorts partial set of inherited profiles 1`] = `
-Array [
- Object {
+[
+ {
"childrenCount": 0,
"depth": 1,
"key": "foo",
@@ -117,22 +117,22 @@ Array [
`;
exports[`#sortProfiles sorts partial set of inherited profiles 2`] = `
-Array [
- Object {
+[
+ {
"childrenCount": 0,
"depth": 1,
"key": "profile1",
"name": "profile1",
"parentKey": "x",
},
- Object {
+ {
"childrenCount": 1,
"depth": 1,
"key": "profile2",
"name": "profile2",
"parentKey": undefined,
},
- Object {
+ {
"childrenCount": 0,
"depth": 2,
"key": "profile3",
diff --git a/server/sonar-web/src/main/js/apps/quality-profiles/changelog/__tests__/__snapshots__/ChangelogContainer-test.tsx.snap b/server/sonar-web/src/main/js/apps/quality-profiles/changelog/__tests__/__snapshots__/ChangelogContainer-test.tsx.snap
index 2029636a14c..e7347b5911f 100644
--- a/server/sonar-web/src/main/js/apps/quality-profiles/changelog/__tests__/__snapshots__/ChangelogContainer-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/quality-profiles/changelog/__tests__/__snapshots__/ChangelogContainer-test.tsx.snap
@@ -9,7 +9,7 @@ exports[`should render correctly 1`] = `
>
<ChangelogSearch
dateRange={
- Object {
+ {
"from": undefined,
"to": undefined,
}
@@ -20,29 +20,29 @@ exports[`should render correctly 1`] = `
</header>
<Changelog
events={
- Array [
- Object {
+ [
+ {
"action": "ACTIVATED",
"date": "2019-04-23T02:12:32+0100",
- "params": Object {
+ "params": {
"severity": "MAJOR",
},
"ruleKey": "rule-key",
"ruleName": "rule-name",
},
- Object {
+ {
"action": "ACTIVATED",
"date": "2019-04-23T02:12:32+0100",
- "params": Object {
+ "params": {
"severity": "MAJOR",
},
"ruleKey": "rule-key",
"ruleName": "rule-name",
},
- Object {
+ {
"action": "ACTIVATED",
"date": "2019-04-23T02:12:32+0100",
- "params": Object {
+ "params": {
"severity": "MAJOR",
},
"ruleKey": "rule-key",
@@ -73,7 +73,7 @@ exports[`should render correctly without events 1`] = `
>
<ChangelogSearch
dateRange={
- Object {
+ {
"from": undefined,
"to": undefined,
}
diff --git a/server/sonar-web/src/main/js/apps/quality-profiles/changelog/__tests__/__snapshots__/ChangelogSearch-test.tsx.snap b/server/sonar-web/src/main/js/apps/quality-profiles/changelog/__tests__/__snapshots__/ChangelogSearch-test.tsx.snap
index 91386121e4e..77833089973 100644
--- a/server/sonar-web/src/main/js/apps/quality-profiles/changelog/__tests__/__snapshots__/ChangelogSearch-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/quality-profiles/changelog/__tests__/__snapshots__/ChangelogSearch-test.tsx.snap
@@ -8,7 +8,7 @@ exports[`should render 1`] = `
<DateRangeInput
onChange={[MockFunction]}
value={
- Object {
+ {
"from": 2016-01-01T00:00:00.000Z,
"to": 2016-05-05T00:00:00.000Z,
}
diff --git a/server/sonar-web/src/main/js/apps/quality-profiles/components/__tests__/__snapshots__/ProfileActions-test.tsx.snap b/server/sonar-web/src/main/js/apps/quality-profiles/components/__tests__/__snapshots__/ProfileActions-test.tsx.snap
index 098839406ec..aa7d7f0de0d 100644
--- a/server/sonar-web/src/main/js/apps/quality-profiles/components/__tests__/__snapshots__/ProfileActions-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/quality-profiles/components/__tests__/__snapshots__/ProfileActions-test.tsx.snap
@@ -9,7 +9,7 @@ exports[`renders correctly: all permissions 1`] = `
<ActionsDropdownItem
className="it__quality-profiles__activate-more-rules"
to={
- Object {
+ {
"pathname": "/coding_rules",
"search": "?qprofile=key&activation=false",
}
@@ -27,7 +27,7 @@ exports[`renders correctly: all permissions 1`] = `
<ActionsDropdownItem
className="it__quality-profiles__compare"
to={
- Object {
+ {
"pathname": "/profiles/compare",
"search": "?language=js&name=name",
}
@@ -91,7 +91,7 @@ exports[`renders correctly: copy modal 1`] = `
<ActionsDropdownItem
className="it__quality-profiles__compare"
to={
- Object {
+ {
"pathname": "/profiles/compare",
"search": "?language=js&name=name",
}
@@ -106,7 +106,7 @@ exports[`renders correctly: copy modal 1`] = `
onClose={[Function]}
onSubmit={[Function]}
profile={
- Object {
+ {
"activeDeprecatedRuleCount": 0,
"activeRuleCount": 68,
"childrenCount": 0,
@@ -142,7 +142,7 @@ exports[`renders correctly: delete modal 1`] = `
<ActionsDropdownItem
className="it__quality-profiles__compare"
to={
- Object {
+ {
"pathname": "/profiles/compare",
"search": "?language=js&name=name",
}
@@ -156,7 +156,7 @@ exports[`renders correctly: delete modal 1`] = `
onClose={[Function]}
onDelete={[Function]}
profile={
- Object {
+ {
"activeDeprecatedRuleCount": 0,
"activeRuleCount": 68,
"childrenCount": 0,
@@ -185,7 +185,7 @@ exports[`renders correctly: edit only 1`] = `
<ActionsDropdownItem
className="it__quality-profiles__activate-more-rules"
to={
- Object {
+ {
"pathname": "/coding_rules",
"search": "?qprofile=key&activation=false",
}
@@ -203,7 +203,7 @@ exports[`renders correctly: edit only 1`] = `
<ActionsDropdownItem
className="it__quality-profiles__compare"
to={
- Object {
+ {
"pathname": "/profiles/compare",
"search": "?language=js&name=name",
}
@@ -237,7 +237,7 @@ exports[`renders correctly: extend modal 1`] = `
<ActionsDropdownItem
className="it__quality-profiles__compare"
to={
- Object {
+ {
"pathname": "/profiles/compare",
"search": "?language=js&name=name",
}
@@ -252,7 +252,7 @@ exports[`renders correctly: extend modal 1`] = `
onClose={[Function]}
onSubmit={[Function]}
profile={
- Object {
+ {
"activeDeprecatedRuleCount": 0,
"activeRuleCount": 68,
"childrenCount": 0,
@@ -288,7 +288,7 @@ exports[`renders correctly: no permissions 1`] = `
<ActionsDropdownItem
className="it__quality-profiles__compare"
to={
- Object {
+ {
"pathname": "/profiles/compare",
"search": "?language=js&name=name",
}
@@ -316,7 +316,7 @@ exports[`renders correctly: rename modal 1`] = `
<ActionsDropdownItem
className="it__quality-profiles__compare"
to={
- Object {
+ {
"pathname": "/profiles/compare",
"search": "?language=js&name=name",
}
@@ -331,7 +331,7 @@ exports[`renders correctly: rename modal 1`] = `
onClose={[Function]}
onSubmit={[Function]}
profile={
- Object {
+ {
"activeDeprecatedRuleCount": 0,
"activeRuleCount": 68,
"childrenCount": 0,
@@ -367,7 +367,7 @@ exports[`should not allow to set a profile as the default if the profile has no
<ActionsDropdownItem
className="it__quality-profiles__compare"
to={
- Object {
+ {
"pathname": "/profiles/compare",
"search": "?language=js&name=name",
}
diff --git a/server/sonar-web/src/main/js/apps/quality-profiles/components/__tests__/__snapshots__/QualityProfilesApp-test.tsx.snap b/server/sonar-web/src/main/js/apps/quality-profiles/components/__tests__/__snapshots__/QualityProfilesApp-test.tsx.snap
index e362fd0a400..791f5c37ced 100644
--- a/server/sonar-web/src/main/js/apps/quality-profiles/components/__tests__/__snapshots__/QualityProfilesApp-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/quality-profiles/components/__tests__/__snapshots__/QualityProfilesApp-test.tsx.snap
@@ -15,11 +15,11 @@ exports[`should render correctly: full 1`] = `
/>
<Outlet
context={
- Object {
- "actions": Object {},
- "exporters": Array [],
- "languages": Array [],
- "profiles": Array [],
+ {
+ "actions": {},
+ "exporters": [],
+ "languages": [],
+ "profiles": [],
"updateProfiles": [Function],
}
}
diff --git a/server/sonar-web/src/main/js/apps/quality-profiles/details/__tests__/__snapshots__/ChangeParentForm-test.tsx.snap b/server/sonar-web/src/main/js/apps/quality-profiles/details/__tests__/__snapshots__/ChangeParentForm-test.tsx.snap
index c62edcee6cb..74175891828 100644
--- a/server/sonar-web/src/main/js/apps/quality-profiles/details/__tests__/__snapshots__/ChangeParentForm-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/quality-profiles/details/__tests__/__snapshots__/ChangeParentForm-test.tsx.snap
@@ -42,32 +42,32 @@ exports[`should render correctly 1`] = `
name="parentKey"
onChange={[Function]}
options={
- Array [
- Object {
+ [
+ {
"label": "none",
"value": "",
},
- Object {
+ {
"label": "name",
"value": "key",
},
- Object {
+ {
"label": "name",
"value": "key",
},
- Object {
+ {
"label": "name",
"value": "key",
},
- Object {
+ {
"label": "name",
"value": "key",
},
]
}
value={
- Array [
- Object {
+ [
+ {
"label": "none",
"value": "",
},
diff --git a/server/sonar-web/src/main/js/apps/quality-profiles/details/__tests__/__snapshots__/ChangeProjectsForm-test.tsx.snap b/server/sonar-web/src/main/js/apps/quality-profiles/details/__tests__/__snapshots__/ChangeProjectsForm-test.tsx.snap
index 602b4366eae..255176e76b5 100644
--- a/server/sonar-web/src/main/js/apps/quality-profiles/details/__tests__/__snapshots__/ChangeProjectsForm-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/quality-profiles/details/__tests__/__snapshots__/ChangeProjectsForm-test.tsx.snap
@@ -19,7 +19,7 @@ exports[`should render correctly 1`] = `
<SelectList
allowBulkSelection={true}
elements={
- Array [
+ [
"test1",
"test2",
"test3",
@@ -35,7 +35,7 @@ exports[`should render correctly 1`] = `
onUnselect={[Function]}
renderElement={[Function]}
selectedElements={
- Array [
+ [
"test3",
]
}
diff --git a/server/sonar-web/src/main/js/apps/quality-profiles/details/__tests__/__snapshots__/ProfileDetails-test.tsx.snap b/server/sonar-web/src/main/js/apps/quality-profiles/details/__tests__/__snapshots__/ProfileDetails-test.tsx.snap
index ff98cd9515d..dabfc8c2481 100644
--- a/server/sonar-web/src/main/js/apps/quality-profiles/details/__tests__/__snapshots__/ProfileDetails-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/quality-profiles/details/__tests__/__snapshots__/ProfileDetails-test.tsx.snap
@@ -10,7 +10,7 @@ exports[`should render correctly: default 1`] = `
>
<ProfileRules
profile={
- Object {
+ {
"activeDeprecatedRuleCount": 2,
"activeRuleCount": 10,
"childrenCount": 0,
@@ -27,9 +27,9 @@ exports[`should render correctly: default 1`] = `
}
/>
<ProfileExporters
- exporters={Array []}
+ exporters={[]}
profile={
- Object {
+ {
"activeDeprecatedRuleCount": 2,
"activeRuleCount": 10,
"childrenCount": 0,
@@ -51,7 +51,7 @@ exports[`should render correctly: default 1`] = `
>
<ProfileInheritance
profile={
- Object {
+ {
"activeDeprecatedRuleCount": 2,
"activeRuleCount": 10,
"childrenCount": 0,
@@ -66,12 +66,12 @@ exports[`should render correctly: default 1`] = `
"projectCount": 3,
}
}
- profiles={Array []}
+ profiles={[]}
updateProfiles={[MockFunction]}
/>
<ProfileProjects
profile={
- Object {
+ {
"activeDeprecatedRuleCount": 2,
"activeRuleCount": 10,
"childrenCount": 0,
@@ -102,8 +102,8 @@ exports[`should render correctly: edit permissions 1`] = `
>
<ProfileRules
profile={
- Object {
- "actions": Object {
+ {
+ "actions": {
"edit": true,
},
"activeDeprecatedRuleCount": 2,
@@ -122,10 +122,10 @@ exports[`should render correctly: edit permissions 1`] = `
}
/>
<ProfileExporters
- exporters={Array []}
+ exporters={[]}
profile={
- Object {
- "actions": Object {
+ {
+ "actions": {
"edit": true,
},
"activeDeprecatedRuleCount": 2,
@@ -145,8 +145,8 @@ exports[`should render correctly: edit permissions 1`] = `
/>
<ProfilePermissions
profile={
- Object {
- "actions": Object {
+ {
+ "actions": {
"edit": true,
},
"activeDeprecatedRuleCount": 2,
@@ -170,8 +170,8 @@ exports[`should render correctly: edit permissions 1`] = `
>
<ProfileInheritance
profile={
- Object {
- "actions": Object {
+ {
+ "actions": {
"edit": true,
},
"activeDeprecatedRuleCount": 2,
@@ -188,13 +188,13 @@ exports[`should render correctly: edit permissions 1`] = `
"projectCount": 3,
}
}
- profiles={Array []}
+ profiles={[]}
updateProfiles={[MockFunction]}
/>
<ProfileProjects
profile={
- Object {
- "actions": Object {
+ {
+ "actions": {
"edit": true,
},
"activeDeprecatedRuleCount": 2,
@@ -227,7 +227,7 @@ exports[`should render correctly: is default profile, no active rules 1`] = `
>
<ProfileRules
profile={
- Object {
+ {
"activeDeprecatedRuleCount": 2,
"activeRuleCount": 0,
"childrenCount": 0,
@@ -244,9 +244,9 @@ exports[`should render correctly: is default profile, no active rules 1`] = `
}
/>
<ProfileExporters
- exporters={Array []}
+ exporters={[]}
profile={
- Object {
+ {
"activeDeprecatedRuleCount": 2,
"activeRuleCount": 0,
"childrenCount": 0,
@@ -274,7 +274,7 @@ exports[`should render correctly: is default profile, no active rules 1`] = `
</Alert>
<ProfileInheritance
profile={
- Object {
+ {
"activeDeprecatedRuleCount": 2,
"activeRuleCount": 0,
"childrenCount": 0,
@@ -289,12 +289,12 @@ exports[`should render correctly: is default profile, no active rules 1`] = `
"projectCount": 0,
}
}
- profiles={Array []}
+ profiles={[]}
updateProfiles={[MockFunction]}
/>
<ProfileProjects
profile={
- Object {
+ {
"activeDeprecatedRuleCount": 2,
"activeRuleCount": 0,
"childrenCount": 0,
@@ -325,7 +325,7 @@ exports[`should render correctly: no active rules (same as default) 1`] = `
>
<ProfileRules
profile={
- Object {
+ {
"activeDeprecatedRuleCount": 2,
"activeRuleCount": 0,
"childrenCount": 0,
@@ -342,9 +342,9 @@ exports[`should render correctly: no active rules (same as default) 1`] = `
}
/>
<ProfileExporters
- exporters={Array []}
+ exporters={[]}
profile={
- Object {
+ {
"activeDeprecatedRuleCount": 2,
"activeRuleCount": 0,
"childrenCount": 0,
@@ -366,7 +366,7 @@ exports[`should render correctly: no active rules (same as default) 1`] = `
>
<ProfileInheritance
profile={
- Object {
+ {
"activeDeprecatedRuleCount": 2,
"activeRuleCount": 0,
"childrenCount": 0,
@@ -381,12 +381,12 @@ exports[`should render correctly: no active rules (same as default) 1`] = `
"projectCount": 0,
}
}
- profiles={Array []}
+ profiles={[]}
updateProfiles={[MockFunction]}
/>
<ProfileProjects
profile={
- Object {
+ {
"activeDeprecatedRuleCount": 2,
"activeRuleCount": 0,
"childrenCount": 0,
@@ -417,7 +417,7 @@ exports[`should render correctly: projects associated, no active rules 1`] = `
>
<ProfileRules
profile={
- Object {
+ {
"activeDeprecatedRuleCount": 2,
"activeRuleCount": 0,
"childrenCount": 0,
@@ -434,9 +434,9 @@ exports[`should render correctly: projects associated, no active rules 1`] = `
}
/>
<ProfileExporters
- exporters={Array []}
+ exporters={[]}
profile={
- Object {
+ {
"activeDeprecatedRuleCount": 2,
"activeRuleCount": 0,
"childrenCount": 0,
@@ -464,7 +464,7 @@ exports[`should render correctly: projects associated, no active rules 1`] = `
</Alert>
<ProfileInheritance
profile={
- Object {
+ {
"activeDeprecatedRuleCount": 2,
"activeRuleCount": 0,
"childrenCount": 0,
@@ -479,12 +479,12 @@ exports[`should render correctly: projects associated, no active rules 1`] = `
"projectCount": 10,
}
}
- profiles={Array []}
+ profiles={[]}
updateProfiles={[MockFunction]}
/>
<ProfileProjects
profile={
- Object {
+ {
"activeDeprecatedRuleCount": 2,
"activeRuleCount": 0,
"childrenCount": 0,
diff --git a/server/sonar-web/src/main/js/apps/quality-profiles/details/__tests__/__snapshots__/ProfileInheritance-test.tsx.snap b/server/sonar-web/src/main/js/apps/quality-profiles/details/__tests__/__snapshots__/ProfileInheritance-test.tsx.snap
index ed912ef964b..9eff32909b2 100644
--- a/server/sonar-web/src/main/js/apps/quality-profiles/details/__tests__/__snapshots__/ProfileInheritance-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/quality-profiles/details/__tests__/__snapshots__/ProfileInheritance-test.tsx.snap
@@ -23,7 +23,7 @@ exports[`should render correctly 1`] = `
key="foo"
language="js"
profile={
- Object {
+ {
"activeRuleCount": 4,
"isBuiltIn": false,
"key": "foo",
@@ -38,7 +38,7 @@ exports[`should render correctly 1`] = `
key="foo"
language="js"
profile={
- Object {
+ {
"activeRuleCount": 4,
"isBuiltIn": false,
"key": "foo",
@@ -77,7 +77,7 @@ exports[`should render modal correctly 1`] = `
key="foo"
language="js"
profile={
- Object {
+ {
"activeRuleCount": 4,
"isBuiltIn": false,
"key": "foo",
@@ -92,7 +92,7 @@ exports[`should render modal correctly 1`] = `
key="foo"
language="js"
profile={
- Object {
+ {
"activeRuleCount": 4,
"isBuiltIn": false,
"key": "foo",
@@ -109,7 +109,7 @@ exports[`should render modal correctly 1`] = `
onChange={[Function]}
onClose={[Function]}
profile={
- Object {
+ {
"activeDeprecatedRuleCount": 2,
"activeRuleCount": 10,
"childrenCount": 0,
@@ -125,8 +125,8 @@ exports[`should render modal correctly 1`] = `
}
}
profiles={
- Array [
- Object {
+ [
+ {
"activeDeprecatedRuleCount": 2,
"activeRuleCount": 10,
"childrenCount": 0,
diff --git a/server/sonar-web/src/main/js/apps/quality-profiles/details/__tests__/__snapshots__/ProfileInheritanceBox-test.tsx.snap b/server/sonar-web/src/main/js/apps/quality-profiles/details/__tests__/__snapshots__/ProfileInheritanceBox-test.tsx.snap
index 18416a4f9e3..905d5f7b608 100644
--- a/server/sonar-web/src/main/js/apps/quality-profiles/details/__tests__/__snapshots__/ProfileInheritanceBox-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/quality-profiles/details/__tests__/__snapshots__/ProfileInheritanceBox-test.tsx.snap
@@ -7,7 +7,7 @@ exports[`should render correctly 1`] = `
<td>
<div
style={
- Object {
+ {
"paddingLeft": 25,
}
}
@@ -39,7 +39,7 @@ exports[`should render correctly 2`] = `
<td>
<div
style={
- Object {
+ {
"paddingLeft": 75,
}
}
@@ -74,7 +74,7 @@ exports[`should render correctly 3`] = `
<td>
<div
style={
- Object {
+ {
"paddingLeft": 25,
}
}
@@ -110,7 +110,7 @@ exports[`should render correctly 4`] = `
<td>
<div
style={
- Object {
+ {
"paddingLeft": 25,
}
}
diff --git a/server/sonar-web/src/main/js/apps/quality-profiles/details/__tests__/__snapshots__/ProfilePermissions-test.tsx.snap b/server/sonar-web/src/main/js/apps/quality-profiles/details/__tests__/__snapshots__/ProfilePermissions-test.tsx.snap
index 6784f829bc2..ce377a5cfa7 100644
--- a/server/sonar-web/src/main/js/apps/quality-profiles/details/__tests__/__snapshots__/ProfilePermissions-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/quality-profiles/details/__tests__/__snapshots__/ProfilePermissions-test.tsx.snap
@@ -48,14 +48,14 @@ exports[`renders 2`] = `
key="luke"
onDelete={[Function]}
profile={
- Object {
+ {
"key": "sonar-way",
"language": "js",
"name": "Sonar way",
}
}
user={
- Object {
+ {
"login": "luke",
"name": "Luke Skywalker",
"selected": false,
@@ -64,14 +64,14 @@ exports[`renders 2`] = `
/>
<ProfilePermissionsGroup
group={
- Object {
+ {
"name": "Lambda",
}
}
key="Lambda"
onDelete={[Function]}
profile={
- Object {
+ {
"key": "sonar-way",
"language": "js",
"name": "Sonar way",
diff --git a/server/sonar-web/src/main/js/apps/quality-profiles/details/__tests__/__snapshots__/ProfilePermissionsForm-test.tsx.snap b/server/sonar-web/src/main/js/apps/quality-profiles/details/__tests__/__snapshots__/ProfilePermissionsForm-test.tsx.snap
index 75208b639c3..d5e25783a6b 100644
--- a/server/sonar-web/src/main/js/apps/quality-profiles/details/__tests__/__snapshots__/ProfilePermissionsForm-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/quality-profiles/details/__tests__/__snapshots__/ProfilePermissionsForm-test.tsx.snap
@@ -29,7 +29,7 @@ exports[`correctly adds groups 1`] = `
<ProfilePermissionsFormSelect
onChange={[Function]}
profile={
- Object {
+ {
"language": "js",
"name": "Sonar way",
}
@@ -87,7 +87,7 @@ exports[`correctly adds users 1`] = `
<ProfilePermissionsFormSelect
onChange={[Function]}
profile={
- Object {
+ {
"language": "js",
"name": "Sonar way",
}
@@ -145,7 +145,7 @@ exports[`should render correctly: default 1`] = `
<ProfilePermissionsFormSelect
onChange={[Function]}
profile={
- Object {
+ {
"language": "js",
"name": "Sonar way",
}
@@ -200,7 +200,7 @@ exports[`should render correctly: submitting 1`] = `
<ProfilePermissionsFormSelect
onChange={[Function]}
profile={
- Object {
+ {
"language": "js",
"name": "Sonar way",
}
diff --git a/server/sonar-web/src/main/js/apps/quality-profiles/details/__tests__/__snapshots__/ProfilePermissionsFormSelect-test.tsx.snap b/server/sonar-web/src/main/js/apps/quality-profiles/details/__tests__/__snapshots__/ProfilePermissionsFormSelect-test.tsx.snap
index 3aac863d757..d6b98558024 100644
--- a/server/sonar-web/src/main/js/apps/quality-profiles/details/__tests__/__snapshots__/ProfilePermissionsFormSelect-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/quality-profiles/details/__tests__/__snapshots__/ProfilePermissionsFormSelect-test.tsx.snap
@@ -11,7 +11,7 @@ exports[`should render correctly 1`] = `
autoFocus={true}
className="width-100"
components={
- Object {
+ {
"Control": [Function],
"Option": [Function],
"SingleValue": [Function],
@@ -32,7 +32,7 @@ exports[`should render correctly 1`] = `
exports[`should render option correctly: option renderer 1`] = `
<Option
data={
- Object {
+ {
"name": "name",
"value": "test",
}
@@ -56,7 +56,7 @@ exports[`should render option correctly: option renderer 1`] = `
exports[`should render value correctly: value renderer 1`] = `
<SingleValue
data={
- Object {
+ {
"name": "name",
"value": "test",
}
diff --git a/server/sonar-web/src/main/js/apps/quality-profiles/details/__tests__/__snapshots__/ProfilePermissionsGroup-test.tsx.snap b/server/sonar-web/src/main/js/apps/quality-profiles/details/__tests__/__snapshots__/ProfilePermissionsGroup-test.tsx.snap
index d3748320cea..e44d1045924 100644
--- a/server/sonar-web/src/main/js/apps/quality-profiles/details/__tests__/__snapshots__/ProfilePermissionsGroup-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/quality-profiles/details/__tests__/__snapshots__/ProfilePermissionsGroup-test.tsx.snap
@@ -15,7 +15,7 @@ exports[`renders 1`] = `
<div
className="overflow-hidden"
style={
- Object {
+ {
"lineHeight": "32px",
}
}
diff --git a/server/sonar-web/src/main/js/apps/quality-profiles/details/__tests__/__snapshots__/ProfileProjects-test.tsx.snap b/server/sonar-web/src/main/js/apps/quality-profiles/details/__tests__/__snapshots__/ProfileProjects-test.tsx.snap
index 860ed7074e8..af24ef184d5 100644
--- a/server/sonar-web/src/main/js/apps/quality-profiles/details/__tests__/__snapshots__/ProfileProjects-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/quality-profiles/details/__tests__/__snapshots__/ProfileProjects-test.tsx.snap
@@ -37,7 +37,7 @@ exports[`should render correctly: default 1`] = `
>
<ForwardRef(Link)
to={
- Object {
+ {
"pathname": "/dashboard",
"search": "?id=org.sonarsource.xml%3Axml",
}
@@ -136,7 +136,7 @@ exports[`should render correctly: no active rules, but associated projects 1`] =
>
<ForwardRef(Link)
to={
- Object {
+ {
"pathname": "/dashboard",
"search": "?id=org.sonarsource.xml%3Axml",
}
@@ -220,7 +220,7 @@ exports[`should render correctly: no rights 1`] = `
>
<ForwardRef(Link)
to={
- Object {
+ {
"pathname": "/dashboard",
"search": "?id=org.sonarsource.xml%3Axml",
}
diff --git a/server/sonar-web/src/main/js/apps/quality-profiles/details/__tests__/__snapshots__/ProfileRules-test.tsx.snap b/server/sonar-web/src/main/js/apps/quality-profiles/details/__tests__/__snapshots__/ProfileRules-test.tsx.snap
index 7e2cbee1080..cd08c5b9d8e 100644
--- a/server/sonar-web/src/main/js/apps/quality-profiles/details/__tests__/__snapshots__/ProfileRules-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/quality-profiles/details/__tests__/__snapshots__/ProfileRules-test.tsx.snap
@@ -75,7 +75,7 @@ exports[`should show a button to activate more rules for admins 1`] = `
<ForwardRef(Link)
className="button js-activate-rules"
to={
- Object {
+ {
"pathname": "/coding_rules",
"search": "?qprofile=key&activation=false",
}
diff --git a/server/sonar-web/src/main/js/apps/quality-profiles/details/__tests__/__snapshots__/ProfileRulesDeprecatedWarning-test.tsx.snap b/server/sonar-web/src/main/js/apps/quality-profiles/details/__tests__/__snapshots__/ProfileRulesDeprecatedWarning-test.tsx.snap
index 675f9dedb4f..4c545386a0b 100644
--- a/server/sonar-web/src/main/js/apps/quality-profiles/details/__tests__/__snapshots__/ProfileRulesDeprecatedWarning-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/quality-profiles/details/__tests__/__snapshots__/ProfileRulesDeprecatedWarning-test.tsx.snap
@@ -20,7 +20,7 @@ exports[`should render correctly 1`] = `
<ForwardRef(Link)
className="pull-right"
to={
- Object {
+ {
"pathname": "/coding_rules",
"search": "?qprofile=bar&activation=true&statuses=DEPRECATED",
}
diff --git a/server/sonar-web/src/main/js/apps/quality-profiles/details/__tests__/__snapshots__/ProfileRulesRowOfType-test.tsx.snap b/server/sonar-web/src/main/js/apps/quality-profiles/details/__tests__/__snapshots__/ProfileRulesRowOfType-test.tsx.snap
index 5779c1a9925..057ce492474 100644
--- a/server/sonar-web/src/main/js/apps/quality-profiles/details/__tests__/__snapshots__/ProfileRulesRowOfType-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/quality-profiles/details/__tests__/__snapshots__/ProfileRulesRowOfType-test.tsx.snap
@@ -16,7 +16,7 @@ exports[`should render correctly 1`] = `
>
<ForwardRef(Link)
to={
- Object {
+ {
"pathname": "/coding_rules",
"search": "?qprofile=bar&activation=true&types=BUG",
}
@@ -31,7 +31,7 @@ exports[`should render correctly 1`] = `
<ForwardRef(Link)
className="small"
to={
- Object {
+ {
"pathname": "/coding_rules",
"search": "?qprofile=bar&activation=false&types=BUG",
}
@@ -59,7 +59,7 @@ exports[`should render correctly if there is 0 rules 1`] = `
>
<ForwardRef(Link)
to={
- Object {
+ {
"pathname": "/coding_rules",
"search": "?qprofile=bar&activation=true&types=VULNERABILITY",
}
@@ -96,7 +96,7 @@ exports[`should render correctly if there is missing data 1`] = `
>
<ForwardRef(Link)
to={
- Object {
+ {
"pathname": "/coding_rules",
"search": "?qprofile=bar&activation=true&types=VULNERABILITY",
}
diff --git a/server/sonar-web/src/main/js/apps/quality-profiles/details/__tests__/__snapshots__/ProfileRulesRowTotal-test.tsx.snap b/server/sonar-web/src/main/js/apps/quality-profiles/details/__tests__/__snapshots__/ProfileRulesRowTotal-test.tsx.snap
index 64f405142ec..a8929baa77e 100644
--- a/server/sonar-web/src/main/js/apps/quality-profiles/details/__tests__/__snapshots__/ProfileRulesRowTotal-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/quality-profiles/details/__tests__/__snapshots__/ProfileRulesRowTotal-test.tsx.snap
@@ -12,7 +12,7 @@ exports[`should render correctly 1`] = `
>
<ForwardRef(Link)
to={
- Object {
+ {
"pathname": "/coding_rules",
"search": "?qprofile=bar&activation=true",
}
@@ -29,7 +29,7 @@ exports[`should render correctly 1`] = `
<ForwardRef(Link)
className="small"
to={
- Object {
+ {
"pathname": "/coding_rules",
"search": "?qprofile=bar&activation=false",
}
@@ -55,7 +55,7 @@ exports[`should render correctly if there is 0 rules 1`] = `
>
<ForwardRef(Link)
to={
- Object {
+ {
"pathname": "/coding_rules",
"search": "?qprofile=bar&activation=true",
}
@@ -90,7 +90,7 @@ exports[`should render correctly if there is missing data 1`] = `
>
<ForwardRef(Link)
to={
- Object {
+ {
"pathname": "/coding_rules",
"search": "?qprofile=bar&activation=true",
}
diff --git a/server/sonar-web/src/main/js/apps/quality-profiles/details/__tests__/__snapshots__/ProfileRulesSonarWayComparison-test.tsx.snap b/server/sonar-web/src/main/js/apps/quality-profiles/details/__tests__/__snapshots__/ProfileRulesSonarWayComparison-test.tsx.snap
index f388e66edbc..222db872392 100644
--- a/server/sonar-web/src/main/js/apps/quality-profiles/details/__tests__/__snapshots__/ProfileRulesSonarWayComparison-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/quality-profiles/details/__tests__/__snapshots__/ProfileRulesSonarWayComparison-test.tsx.snap
@@ -21,7 +21,7 @@ exports[`should render correctly 1`] = `
className="pull-right"
data-test="rules"
to={
- Object {
+ {
"pathname": "/coding_rules",
"search": "?qprofile=bar&activation=false&compareToProfile=baz&languages=Java",
}
diff --git a/server/sonar-web/src/main/js/apps/quality-profiles/home/__tests__/__snapshots__/Evolution-test.tsx.snap b/server/sonar-web/src/main/js/apps/quality-profiles/home/__tests__/__snapshots__/Evolution-test.tsx.snap
index f3860f2774d..088705e5acd 100644
--- a/server/sonar-web/src/main/js/apps/quality-profiles/home/__tests__/__snapshots__/Evolution-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/quality-profiles/home/__tests__/__snapshots__/Evolution-test.tsx.snap
@@ -5,10 +5,10 @@ exports[`should render correctly 1`] = `
className="quality-profiles-evolution"
>
<EvolutionDeprecated
- profiles={Array []}
+ profiles={[]}
/>
<EvolutionStagnant
- profiles={Array []}
+ profiles={[]}
/>
<EvolutionRules />
</div>
diff --git a/server/sonar-web/src/main/js/apps/quality-profiles/home/__tests__/__snapshots__/EvolutionDeprecated-test.tsx.snap b/server/sonar-web/src/main/js/apps/quality-profiles/home/__tests__/__snapshots__/EvolutionDeprecated-test.tsx.snap
index 2aa055dd009..12606344d36 100644
--- a/server/sonar-web/src/main/js/apps/quality-profiles/home/__tests__/__snapshots__/EvolutionDeprecated-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/quality-profiles/home/__tests__/__snapshots__/EvolutionDeprecated-test.tsx.snap
@@ -39,7 +39,7 @@ exports[`should render correctly 1`] = `
<ForwardRef(Link)
className="link-no-underline"
to={
- Object {
+ {
"pathname": "/coding_rules",
"search": "?qprofile=qp-5&activation=true&statuses=DEPRECATED",
}
@@ -85,7 +85,7 @@ exports[`should render correctly 1`] = `
<ForwardRef(Link)
className="link-no-underline"
to={
- Object {
+ {
"pathname": "/coding_rules",
"search": "?qprofile=qp-4&activation=true&statuses=DEPRECATED",
}
@@ -124,7 +124,7 @@ exports[`should render correctly 1`] = `
<ForwardRef(Link)
className="link-no-underline"
to={
- Object {
+ {
"pathname": "/coding_rules",
"search": "?qprofile=qp-2&activation=true&statuses=DEPRECATED",
}
@@ -156,7 +156,7 @@ exports[`should render correctly 1`] = `
<ForwardRef(Link)
className="link-no-underline"
to={
- Object {
+ {
"pathname": "/coding_rules",
"search": "?qprofile=qp-3&activation=true&statuses=DEPRECATED",
}
diff --git a/server/sonar-web/src/main/js/apps/quality-profiles/home/__tests__/__snapshots__/PageHeader-test.tsx.snap b/server/sonar-web/src/main/js/apps/quality-profiles/home/__tests__/__snapshots__/PageHeader-test.tsx.snap
index 3b2de8d69bd..b5ea540762f 100644
--- a/server/sonar-web/src/main/js/apps/quality-profiles/home/__tests__/__snapshots__/PageHeader-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/quality-profiles/home/__tests__/__snapshots__/PageHeader-test.tsx.snap
@@ -159,28 +159,28 @@ exports[`should show a create form 1`] = `
</div>
<CreateProfileForm
languages={
- Array [
- Object {
+ [
+ {
"key": "css",
"name": "CSS",
},
]
}
location={
- Object {
+ {
"hash": "",
"key": "key",
"pathname": "/path",
- "query": Object {},
+ "query": {},
"search": "",
- "state": Object {},
+ "state": {},
}
}
onClose={[Function]}
onCreate={[Function]}
profiles={
- Array [
- Object {
+ [
+ {
"activeDeprecatedRuleCount": 2,
"activeRuleCount": 10,
"childrenCount": 0,
diff --git a/server/sonar-web/src/main/js/apps/quality-profiles/home/__tests__/__snapshots__/ProfilesListHeader-test.tsx.snap b/server/sonar-web/src/main/js/apps/quality-profiles/home/__tests__/__snapshots__/ProfilesListHeader-test.tsx.snap
index 9e1043ed52d..7b85f20efbf 100644
--- a/server/sonar-web/src/main/js/apps/quality-profiles/home/__tests__/__snapshots__/ProfilesListHeader-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/quality-profiles/home/__tests__/__snapshots__/ProfilesListHeader-test.tsx.snap
@@ -20,18 +20,18 @@ exports[`should render correctly 1`] = `
isSearchable={true}
onChange={[Function]}
options={
- Array [
- Object {
+ [
+ {
"label": "JavaScript",
"value": "js",
},
- Object {
+ {
"label": "Java",
"value": "java",
},
]
}
- value={Array []}
+ value={[]}
/>
</header>
`;
diff --git a/server/sonar-web/src/main/js/apps/security-hotspots/__tests__/__snapshots__/SecurityHotspotsApp-test.tsx.snap b/server/sonar-web/src/main/js/apps/security-hotspots/__tests__/__snapshots__/SecurityHotspotsApp-test.tsx.snap
index 1891d1068b1..eef0930b9f0 100644
--- a/server/sonar-web/src/main/js/apps/security-hotspots/__tests__/__snapshots__/SecurityHotspotsApp-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/security-hotspots/__tests__/__snapshots__/SecurityHotspotsApp-test.tsx.snap
@@ -3,7 +3,7 @@
exports[`should render correctly 1`] = `
<SecurityHotspotsAppRenderer
branchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": false,
@@ -11,35 +11,35 @@ exports[`should render correctly 1`] = `
}
}
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "TRK",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
filters={
- Object {
+ {
"assignedToMe": false,
"inNewCodePeriod": false,
"status": "TO_REVIEW",
}
}
- hotspots={Array []}
+ hotspots={[]}
hotspotsTotal={0}
isStaticListOfHotspots={false}
loading={true}
@@ -52,17 +52,17 @@ exports[`should render correctly 1`] = `
onShowAllHotspots={[Function]}
onSwitchStatusFilter={[Function]}
onUpdateHotspot={[Function]}
- securityCategories={Object {}}
+ securityCategories={{}}
standards={
- Object {
- "cwe": Object {},
- "owaspAsvs-4.0": Object {},
- "owaspTop10": Object {},
- "owaspTop10-2021": Object {},
- "pciDss-3.2": Object {},
- "pciDss-4.0": Object {},
- "sansTop25": Object {},
- "sonarsourceSecurity": Object {},
+ {
+ "cwe": {},
+ "owaspAsvs-4.0": {},
+ "owaspTop10": {},
+ "owaspTop10-2021": {},
+ "pciDss-3.2": {},
+ "pciDss-4.0": {},
+ "sansTop25": {},
+ "sonarsourceSecurity": {},
}
}
/>
diff --git a/server/sonar-web/src/main/js/apps/security-hotspots/__tests__/__snapshots__/SecurityHotspotsAppRenderer-test.tsx.snap b/server/sonar-web/src/main/js/apps/security-hotspots/__tests__/__snapshots__/SecurityHotspotsAppRenderer-test.tsx.snap
index 6e3c4c9c0db..0d68028ec30 100644
--- a/server/sonar-web/src/main/js/apps/security-hotspots/__tests__/__snapshots__/SecurityHotspotsAppRenderer-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/security-hotspots/__tests__/__snapshots__/SecurityHotspotsAppRenderer-test.tsx.snap
@@ -18,29 +18,29 @@ exports[`should render correctly 1`] = `
/>
<withCurrentUserContext(FilterBar)
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "TRK",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
filters={
- Object {
+ {
"assignedToMe": false,
"inNewCodePeriod": false,
"status": "TO_REVIEW",
@@ -64,7 +64,7 @@ exports[`should render correctly when filtered by category or cwe: category 1`]
<div
className="layout-page-side"
style={
- Object {
+ {
"top": 0,
}
}
@@ -74,14 +74,14 @@ exports[`should render correctly when filtered by category or cwe: category 1`]
>
<HotspotSimpleList
filterByCategory={
- Object {
+ {
"category": "a1",
"standard": "owaspTop10",
}
}
hotspots={
- Array [
- Object {
+ [
+ {
"author": "Developer 1",
"component": "com.github.kevinsawicki:http-request:com.github.kevinsawicki.http.HttpRequest",
"creationDate": "2013-05-13T17:55:39+0200",
@@ -96,7 +96,7 @@ exports[`should render correctly when filtered by category or cwe: category 1`]
"updateDate": "2013-05-13T17:55:39+0200",
"vulnerabilityProbability": "HIGH",
},
- Object {
+ {
"author": "Developer 1",
"component": "com.github.kevinsawicki:http-request:com.github.kevinsawicki.http.HttpRequest",
"creationDate": "2013-05-13T17:55:39+0200",
@@ -119,7 +119,7 @@ exports[`should render correctly when filtered by category or cwe: category 1`]
onLoadMore={[MockFunction]}
onLocationClick={[MockFunction]}
selectedHotspot={
- Object {
+ {
"author": "Developer 1",
"component": "com.github.kevinsawicki:http-request:com.github.kevinsawicki.http.HttpRequest",
"creationDate": "2013-05-13T17:55:39+0200",
@@ -136,71 +136,71 @@ exports[`should render correctly when filtered by category or cwe: category 1`]
}
}
standards={
- Object {
- "cwe": Object {
- "1004": Object {
+ {
+ "cwe": {
+ "1004": {
"title": "Sensitive Cookie Without 'HttpOnly' Flag",
},
- "unknown": Object {
+ "unknown": {
"title": "No CWE associated",
},
},
- "owaspAsvs-4.0": Object {
- "1": Object {
+ "owaspAsvs-4.0": {
+ "1": {
"title": "New OWASP ASVS cat 1",
},
},
- "owaspTop10": Object {
- "a1": Object {
+ "owaspTop10": {
+ "a1": {
"title": "Injection",
},
- "a2": Object {
+ "a2": {
"title": "Broken Authentication",
},
- "a3": Object {
+ "a3": {
"title": "Sensitive Data Exposure",
},
},
- "owaspTop10-2021": Object {
- "a1": Object {
+ "owaspTop10-2021": {
+ "a1": {
"title": "Injection",
},
- "a2": Object {
+ "a2": {
"title": "Broken Authentication",
},
- "a3": Object {
+ "a3": {
"title": "Sensitive Data Exposure",
},
},
- "pciDss-3.2": Object {
- "1": Object {
+ "pciDss-3.2": {
+ "1": {
"title": " Install and maintain a firewall configuration to protect cardholder data",
},
},
- "pciDss-4.0": Object {
- "2": Object {
+ "pciDss-4.0": {
+ "2": {
"title": "This is useless...",
},
},
- "sansTop25": Object {
- "insecure-interaction": Object {
+ "sansTop25": {
+ "insecure-interaction": {
"title": "Insecure Interaction Between Components",
},
- "porous-defenses": Object {
+ "porous-defenses": {
"title": "Porous Defenses",
},
- "risky-resource": Object {
+ "risky-resource": {
"title": "Risky Resource Management",
},
},
- "sonarsourceSecurity": Object {
- "buffer-overflow": Object {
+ "sonarsourceSecurity": {
+ "buffer-overflow": {
"title": "Buffer Overflow",
},
- "rce": Object {
+ "rce": {
"title": "Code Injection (RCE)",
},
- "sql-injection": Object {
+ "sql-injection": {
"title": "SQL Injection",
},
},
@@ -215,7 +215,7 @@ exports[`should render correctly when filtered by category or cwe: cwe 1`] = `
<div
className="layout-page-side"
style={
- Object {
+ {
"top": 0,
}
}
@@ -226,8 +226,8 @@ exports[`should render correctly when filtered by category or cwe: cwe 1`] = `
<HotspotSimpleList
filterByCWE="327"
hotspots={
- Array [
- Object {
+ [
+ {
"author": "Developer 1",
"component": "com.github.kevinsawicki:http-request:com.github.kevinsawicki.http.HttpRequest",
"creationDate": "2013-05-13T17:55:39+0200",
@@ -242,7 +242,7 @@ exports[`should render correctly when filtered by category or cwe: cwe 1`] = `
"updateDate": "2013-05-13T17:55:39+0200",
"vulnerabilityProbability": "HIGH",
},
- Object {
+ {
"author": "Developer 1",
"component": "com.github.kevinsawicki:http-request:com.github.kevinsawicki.http.HttpRequest",
"creationDate": "2013-05-13T17:55:39+0200",
@@ -265,7 +265,7 @@ exports[`should render correctly when filtered by category or cwe: cwe 1`] = `
onLoadMore={[MockFunction]}
onLocationClick={[MockFunction]}
selectedHotspot={
- Object {
+ {
"author": "Developer 1",
"component": "com.github.kevinsawicki:http-request:com.github.kevinsawicki.http.HttpRequest",
"creationDate": "2013-05-13T17:55:39+0200",
@@ -282,71 +282,71 @@ exports[`should render correctly when filtered by category or cwe: cwe 1`] = `
}
}
standards={
- Object {
- "cwe": Object {
- "1004": Object {
+ {
+ "cwe": {
+ "1004": {
"title": "Sensitive Cookie Without 'HttpOnly' Flag",
},
- "unknown": Object {
+ "unknown": {
"title": "No CWE associated",
},
},
- "owaspAsvs-4.0": Object {
- "1": Object {
+ "owaspAsvs-4.0": {
+ "1": {
"title": "New OWASP ASVS cat 1",
},
},
- "owaspTop10": Object {
- "a1": Object {
+ "owaspTop10": {
+ "a1": {
"title": "Injection",
},
- "a2": Object {
+ "a2": {
"title": "Broken Authentication",
},
- "a3": Object {
+ "a3": {
"title": "Sensitive Data Exposure",
},
},
- "owaspTop10-2021": Object {
- "a1": Object {
+ "owaspTop10-2021": {
+ "a1": {
"title": "Injection",
},
- "a2": Object {
+ "a2": {
"title": "Broken Authentication",
},
- "a3": Object {
+ "a3": {
"title": "Sensitive Data Exposure",
},
},
- "pciDss-3.2": Object {
- "1": Object {
+ "pciDss-3.2": {
+ "1": {
"title": " Install and maintain a firewall configuration to protect cardholder data",
},
},
- "pciDss-4.0": Object {
- "2": Object {
+ "pciDss-4.0": {
+ "2": {
"title": "This is useless...",
},
},
- "sansTop25": Object {
- "insecure-interaction": Object {
+ "sansTop25": {
+ "insecure-interaction": {
"title": "Insecure Interaction Between Components",
},
- "porous-defenses": Object {
+ "porous-defenses": {
"title": "Porous Defenses",
},
- "risky-resource": Object {
+ "risky-resource": {
"title": "Risky Resource Management",
},
},
- "sonarsourceSecurity": Object {
- "buffer-overflow": Object {
+ "sonarsourceSecurity": {
+ "buffer-overflow": {
"title": "Buffer Overflow",
},
- "rce": Object {
+ "rce": {
"title": "Code Injection (RCE)",
},
- "sql-injection": Object {
+ "sql-injection": {
"title": "SQL Injection",
},
},
@@ -375,29 +375,29 @@ exports[`should render correctly with hotspots 1`] = `
/>
<withCurrentUserContext(FilterBar)
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "TRK",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
filters={
- Object {
+ {
"assignedToMe": false,
"inNewCodePeriod": false,
"status": "TO_REVIEW",
@@ -421,7 +421,7 @@ exports[`should render correctly with hotspots 2`] = `
<div
className="layout-page-side"
style={
- Object {
+ {
"top": 0,
}
}
@@ -431,8 +431,8 @@ exports[`should render correctly with hotspots 2`] = `
>
<HotspotList
hotspots={
- Array [
- Object {
+ [
+ {
"author": "Developer 1",
"component": "com.github.kevinsawicki:http-request:com.github.kevinsawicki.http.HttpRequest",
"creationDate": "2013-05-13T17:55:39+0200",
@@ -447,7 +447,7 @@ exports[`should render correctly with hotspots 2`] = `
"updateDate": "2013-05-13T17:55:39+0200",
"vulnerabilityProbability": "HIGH",
},
- Object {
+ {
"author": "Developer 1",
"component": "com.github.kevinsawicki:http-request:com.github.kevinsawicki.http.HttpRequest",
"creationDate": "2013-05-13T17:55:39+0200",
@@ -470,9 +470,9 @@ exports[`should render correctly with hotspots 2`] = `
onHotspotClick={[MockFunction]}
onLoadMore={[MockFunction]}
onLocationClick={[MockFunction]}
- securityCategories={Object {}}
+ securityCategories={{}}
selectedHotspot={
- Object {
+ {
"author": "Developer 1",
"component": "com.github.kevinsawicki:http-request:com.github.kevinsawicki.http.HttpRequest",
"creationDate": "2013-05-13T17:55:39+0200",
@@ -512,29 +512,29 @@ exports[`should render correctly: loading 1`] = `
/>
<withCurrentUserContext(FilterBar)
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "TRK",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
filters={
- Object {
+ {
"assignedToMe": false,
"inNewCodePeriod": false,
"status": "TO_REVIEW",
@@ -578,29 +578,29 @@ exports[`should render correctly: no hotspots with filters 1`] = `
/>
<withCurrentUserContext(FilterBar)
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "TRK",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
filters={
- Object {
+ {
"assignedToMe": true,
"inNewCodePeriod": false,
"status": "TO_REVIEW",
diff --git a/server/sonar-web/src/main/js/apps/security-hotspots/components/__tests__/__snapshots__/FilterBar-test.tsx.snap b/server/sonar-web/src/main/js/apps/security-hotspots/components/__tests__/__snapshots__/FilterBar-test.tsx.snap
index b65d1ace751..c65451f405a 100644
--- a/server/sonar-web/src/main/js/apps/security-hotspots/components/__tests__/__snapshots__/FilterBar-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/security-hotspots/components/__tests__/__snapshots__/FilterBar-test.tsx.snap
@@ -57,27 +57,27 @@ exports[`should render correctly: anonymous 1`] = `
isSearchable={false}
onChange={[Function]}
options={
- Array [
- Object {
+ [
+ {
"label": "hotspot.filters.status.to_review",
"value": "TO_REVIEW",
},
- Object {
+ {
"label": "hotspot.filters.status.acknowledged",
"value": "ACKNOWLEDGED",
},
- Object {
+ {
"label": "hotspot.filters.status.fixed",
"value": "FIXED",
},
- Object {
+ {
"label": "hotspot.filters.status.safe",
"value": "SAFE",
},
]
}
value={
- Object {
+ {
"label": "hotspot.filters.status.to_review",
"value": "TO_REVIEW",
}
@@ -89,19 +89,19 @@ exports[`should render correctly: anonymous 1`] = `
isSearchable={false}
onChange={[Function]}
options={
- Array [
- Object {
+ [
+ {
"label": "hotspot.filters.period.since_leak_period",
"value": true,
},
- Object {
+ {
"label": "hotspot.filters.period.overall",
"value": false,
},
]
}
value={
- Object {
+ {
"label": "hotspot.filters.period.overall",
"value": false,
}
@@ -163,12 +163,12 @@ exports[`should render correctly: logged-in 1`] = `
<ButtonToggle
onCheck={[Function]}
options={
- Array [
- Object {
+ [
+ {
"label": "hotspot.filters.assignee.assigned_to_me",
"value": "me",
},
- Object {
+ {
"label": "hotspot.filters.assignee.all",
"value": "all",
},
@@ -190,27 +190,27 @@ exports[`should render correctly: logged-in 1`] = `
isSearchable={false}
onChange={[Function]}
options={
- Array [
- Object {
+ [
+ {
"label": "hotspot.filters.status.to_review",
"value": "TO_REVIEW",
},
- Object {
+ {
"label": "hotspot.filters.status.acknowledged",
"value": "ACKNOWLEDGED",
},
- Object {
+ {
"label": "hotspot.filters.status.fixed",
"value": "FIXED",
},
- Object {
+ {
"label": "hotspot.filters.status.safe",
"value": "SAFE",
},
]
}
value={
- Object {
+ {
"label": "hotspot.filters.status.to_review",
"value": "TO_REVIEW",
}
@@ -222,19 +222,19 @@ exports[`should render correctly: logged-in 1`] = `
isSearchable={false}
onChange={[Function]}
options={
- Array [
- Object {
+ [
+ {
"label": "hotspot.filters.period.since_leak_period",
"value": true,
},
- Object {
+ {
"label": "hotspot.filters.period.overall",
"value": false,
},
]
}
value={
- Object {
+ {
"label": "hotspot.filters.period.overall",
"value": false,
}
@@ -296,12 +296,12 @@ exports[`should render correctly: non-project 1`] = `
<ButtonToggle
onCheck={[Function]}
options={
- Array [
- Object {
+ [
+ {
"label": "hotspot.filters.assignee.assigned_to_me",
"value": "me",
},
- Object {
+ {
"label": "hotspot.filters.assignee.all",
"value": "all",
},
@@ -323,27 +323,27 @@ exports[`should render correctly: non-project 1`] = `
isSearchable={false}
onChange={[Function]}
options={
- Array [
- Object {
+ [
+ {
"label": "hotspot.filters.status.to_review",
"value": "TO_REVIEW",
},
- Object {
+ {
"label": "hotspot.filters.status.acknowledged",
"value": "ACKNOWLEDGED",
},
- Object {
+ {
"label": "hotspot.filters.status.fixed",
"value": "FIXED",
},
- Object {
+ {
"label": "hotspot.filters.status.safe",
"value": "SAFE",
},
]
}
value={
- Object {
+ {
"label": "hotspot.filters.status.to_review",
"value": "TO_REVIEW",
}
@@ -355,19 +355,19 @@ exports[`should render correctly: non-project 1`] = `
isSearchable={false}
onChange={[Function]}
options={
- Array [
- Object {
+ [
+ {
"label": "hotspot.filters.period.since_leak_period",
"value": true,
},
- Object {
+ {
"label": "hotspot.filters.period.overall",
"value": false,
},
]
}
value={
- Object {
+ {
"label": "hotspot.filters.period.overall",
"value": false,
}
@@ -414,27 +414,27 @@ exports[`should render correctly: on Pull request 1`] = `
isSearchable={false}
onChange={[Function]}
options={
- Array [
- Object {
+ [
+ {
"label": "hotspot.filters.status.to_review",
"value": "TO_REVIEW",
},
- Object {
+ {
"label": "hotspot.filters.status.acknowledged",
"value": "ACKNOWLEDGED",
},
- Object {
+ {
"label": "hotspot.filters.status.fixed",
"value": "FIXED",
},
- Object {
+ {
"label": "hotspot.filters.status.safe",
"value": "SAFE",
},
]
}
value={
- Object {
+ {
"label": "hotspot.filters.status.to_review",
"value": "TO_REVIEW",
}
@@ -503,27 +503,27 @@ exports[`should render correctly: with hotspots reviewed measure 1`] = `
isSearchable={false}
onChange={[Function]}
options={
- Array [
- Object {
+ [
+ {
"label": "hotspot.filters.status.to_review",
"value": "TO_REVIEW",
},
- Object {
+ {
"label": "hotspot.filters.status.acknowledged",
"value": "ACKNOWLEDGED",
},
- Object {
+ {
"label": "hotspot.filters.status.fixed",
"value": "FIXED",
},
- Object {
+ {
"label": "hotspot.filters.status.safe",
"value": "SAFE",
},
]
}
value={
- Object {
+ {
"label": "hotspot.filters.status.to_review",
"value": "TO_REVIEW",
}
@@ -535,19 +535,19 @@ exports[`should render correctly: with hotspots reviewed measure 1`] = `
isSearchable={false}
onChange={[Function]}
options={
- Array [
- Object {
+ [
+ {
"label": "hotspot.filters.period.since_leak_period",
"value": true,
},
- Object {
+ {
"label": "hotspot.filters.period.overall",
"value": false,
},
]
}
value={
- Object {
+ {
"label": "hotspot.filters.period.overall",
"value": false,
}
diff --git a/server/sonar-web/src/main/js/apps/security-hotspots/components/__tests__/__snapshots__/HotspotCategory-test.tsx.snap b/server/sonar-web/src/main/js/apps/security-hotspots/components/__tests__/__snapshots__/HotspotCategory-test.tsx.snap
index 1b3be4b5acf..1389d7b84fc 100644
--- a/server/sonar-web/src/main/js/apps/security-hotspots/components/__tests__/__snapshots__/HotspotCategory-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/security-hotspots/components/__tests__/__snapshots__/HotspotCategory-test.tsx.snap
@@ -32,7 +32,7 @@ exports[`should render correctly with hotspots 1`] = `
>
<HotspotListItem
hotspot={
- Object {
+ {
"author": "Developer 1",
"component": "com.github.kevinsawicki:http-request:com.github.kevinsawicki.http.HttpRequest",
"creationDate": "2013-05-13T17:55:39+0200",
@@ -59,7 +59,7 @@ exports[`should render correctly with hotspots 1`] = `
>
<HotspotListItem
hotspot={
- Object {
+ {
"author": "Developer 1",
"component": "com.github.kevinsawicki:http-request:com.github.kevinsawicki.http.HttpRequest",
"creationDate": "2013-05-13T17:55:39+0200",
@@ -144,7 +144,7 @@ exports[`should render correctly with hotspots: contains selected 1`] = `
>
<HotspotListItem
hotspot={
- Object {
+ {
"author": "Developer 1",
"component": "com.github.kevinsawicki:http-request:com.github.kevinsawicki.http.HttpRequest",
"creationDate": "2013-05-13T17:55:39+0200",
@@ -171,7 +171,7 @@ exports[`should render correctly with hotspots: contains selected 1`] = `
>
<HotspotListItem
hotspot={
- Object {
+ {
"author": "Developer 1",
"component": "com.github.kevinsawicki:http-request:com.github.kevinsawicki.http.HttpRequest",
"creationDate": "2013-05-13T17:55:39+0200",
@@ -229,7 +229,7 @@ exports[`should render correctly with hotspots: lastAndIncomplete 1`] = `
>
<HotspotListItem
hotspot={
- Object {
+ {
"author": "Developer 1",
"component": "com.github.kevinsawicki:http-request:com.github.kevinsawicki.http.HttpRequest",
"creationDate": "2013-05-13T17:55:39+0200",
@@ -256,7 +256,7 @@ exports[`should render correctly with hotspots: lastAndIncomplete 1`] = `
>
<HotspotListItem
hotspot={
- Object {
+ {
"author": "Developer 1",
"component": "com.github.kevinsawicki:http-request:com.github.kevinsawicki.http.HttpRequest",
"creationDate": "2013-05-13T17:55:39+0200",
diff --git a/server/sonar-web/src/main/js/apps/security-hotspots/components/__tests__/__snapshots__/HotspotHeader-test.tsx.snap b/server/sonar-web/src/main/js/apps/security-hotspots/components/__tests__/__snapshots__/HotspotHeader-test.tsx.snap
index 2b0d422efb3..0a10135b3be 100644
--- a/server/sonar-web/src/main/js/apps/security-hotspots/components/__tests__/__snapshots__/HotspotHeader-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/security-hotspots/components/__tests__/__snapshots__/HotspotHeader-test.tsx.snap
@@ -26,7 +26,7 @@ exports[`should render correctly 1`] = `
className="small"
target="_blank"
to={
- Object {
+ {
"pathname": "/coding_rules",
"search": "?open=squid%3AS2077&rule_key=squid%3AS2077",
}
@@ -41,25 +41,25 @@ exports[`should render correctly 1`] = `
>
<withCurrentUserContext(Status)
hotspot={
- Object {
+ {
"assignee": "assignee",
- "assigneeUser": Object {
+ "assigneeUser": {
"active": true,
"local": true,
"login": "assignee",
"name": "John Doe",
},
"author": "author",
- "authorUser": Object {
+ "authorUser": {
"active": true,
"local": true,
"login": "author",
"name": "John Doe",
},
"canChangeStatus": true,
- "changelog": Array [],
- "comment": Array [],
- "component": Object {
+ "changelog": [],
+ "comment": [],
+ "component": {
"key": "hotspot-component",
"longName": "Hotspot component long name",
"name": "Hotspot Component",
@@ -67,12 +67,12 @@ exports[`should render correctly 1`] = `
"qualifier": "FIL",
},
"creationDate": "2013-05-13T17:55:41+0200",
- "flows": Array [
- Object {
- "locations": Array [
- Object {
+ "flows": [
+ {
+ "locations": [
+ {
"component": "main.js",
- "textRange": Object {
+ "textRange": {
"endLine": 2,
"endOffset": 2,
"startLine": 1,
@@ -85,7 +85,7 @@ exports[`should render correctly 1`] = `
"key": "01fc972e-2a3c-433e-bcae-0bd7f88f5123",
"line": 142,
"message": "'3' is a magic number.",
- "project": Object {
+ "project": {
"key": "hotspot-component",
"longName": "Hotspot component long name",
"name": "Hotspot Component",
@@ -93,28 +93,28 @@ exports[`should render correctly 1`] = `
"qualifier": "TRK",
},
"resolution": "FIXED",
- "rule": Object {
+ "rule": {
"key": "squid:S2077",
"name": "That rule",
"securityCategory": "sql-injection",
"vulnerabilityProbability": "HIGH",
},
"status": "REVIEWED",
- "textRange": Object {
+ "textRange": {
"endLine": 142,
"endOffset": 83,
"startLine": 142,
"startOffset": 26,
},
"updateDate": "2013-05-13T17:55:42+0200",
- "users": Array [
- Object {
+ "users": [
+ {
"active": true,
"local": true,
"login": "assignee",
"name": "John Doe",
},
- Object {
+ {
"active": true,
"local": true,
"login": "author",
@@ -138,25 +138,25 @@ exports[`should render correctly 1`] = `
</div>
<withCurrentUserContext(Assignee)
hotspot={
- Object {
+ {
"assignee": "assignee",
- "assigneeUser": Object {
+ "assigneeUser": {
"active": true,
"local": true,
"login": "assignee",
"name": "John Doe",
},
"author": "author",
- "authorUser": Object {
+ "authorUser": {
"active": true,
"local": true,
"login": "author",
"name": "John Doe",
},
"canChangeStatus": true,
- "changelog": Array [],
- "comment": Array [],
- "component": Object {
+ "changelog": [],
+ "comment": [],
+ "component": {
"key": "hotspot-component",
"longName": "Hotspot component long name",
"name": "Hotspot Component",
@@ -164,12 +164,12 @@ exports[`should render correctly 1`] = `
"qualifier": "FIL",
},
"creationDate": "2013-05-13T17:55:41+0200",
- "flows": Array [
- Object {
- "locations": Array [
- Object {
+ "flows": [
+ {
+ "locations": [
+ {
"component": "main.js",
- "textRange": Object {
+ "textRange": {
"endLine": 2,
"endOffset": 2,
"startLine": 1,
@@ -182,7 +182,7 @@ exports[`should render correctly 1`] = `
"key": "01fc972e-2a3c-433e-bcae-0bd7f88f5123",
"line": 142,
"message": "'3' is a magic number.",
- "project": Object {
+ "project": {
"key": "hotspot-component",
"longName": "Hotspot component long name",
"name": "Hotspot Component",
@@ -190,28 +190,28 @@ exports[`should render correctly 1`] = `
"qualifier": "TRK",
},
"resolution": "FIXED",
- "rule": Object {
+ "rule": {
"key": "squid:S2077",
"name": "That rule",
"securityCategory": "sql-injection",
"vulnerabilityProbability": "HIGH",
},
"status": "REVIEWED",
- "textRange": Object {
+ "textRange": {
"endLine": 142,
"endOffset": 83,
"startLine": 142,
"startOffset": 26,
},
"updateDate": "2013-05-13T17:55:42+0200",
- "users": Array [
- Object {
+ "users": [
+ {
"active": true,
"local": true,
"login": "assignee",
"name": "John Doe",
},
- Object {
+ {
"active": true,
"local": true,
"login": "author",
diff --git a/server/sonar-web/src/main/js/apps/security-hotspots/components/__tests__/__snapshots__/HotspotList-test.tsx.snap b/server/sonar-web/src/main/js/apps/security-hotspots/components/__tests__/__snapshots__/HotspotList-test.tsx.snap
index 99ff86d6edf..0a78c398346 100644
--- a/server/sonar-web/src/main/js/apps/security-hotspots/components/__tests__/__snapshots__/HotspotList-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/security-hotspots/components/__tests__/__snapshots__/HotspotList-test.tsx.snap
@@ -111,8 +111,8 @@ exports[`should render correctly with hotspots: no pagination 1`] = `
<HotspotCategory
categoryKey="cat1"
hotspots={
- Array [
- Object {
+ [
+ {
"author": "Developer 1",
"component": "com.github.kevinsawicki:http-request:com.github.kevinsawicki.http.HttpRequest",
"creationDate": "2013-05-13T17:55:39+0200",
@@ -134,7 +134,7 @@ exports[`should render correctly with hotspots: no pagination 1`] = `
onLocationClick={[MockFunction]}
onToggleExpand={[Function]}
selectedHotspot={
- Object {
+ {
"author": "Developer 1",
"component": "com.github.kevinsawicki:http-request:com.github.kevinsawicki.http.HttpRequest",
"creationDate": "2013-05-13T17:55:39+0200",
@@ -160,8 +160,8 @@ exports[`should render correctly with hotspots: no pagination 1`] = `
<HotspotCategory
categoryKey="cat2"
hotspots={
- Array [
- Object {
+ [
+ {
"author": "Developer 1",
"component": "com.github.kevinsawicki:http-request:com.github.kevinsawicki.http.HttpRequest",
"creationDate": "2013-05-13T17:55:39+0200",
@@ -183,7 +183,7 @@ exports[`should render correctly with hotspots: no pagination 1`] = `
onLocationClick={[MockFunction]}
onToggleExpand={[Function]}
selectedHotspot={
- Object {
+ {
"author": "Developer 1",
"component": "com.github.kevinsawicki:http-request:com.github.kevinsawicki.http.HttpRequest",
"creationDate": "2013-05-13T17:55:39+0200",
@@ -229,8 +229,8 @@ exports[`should render correctly with hotspots: no pagination 1`] = `
<HotspotCategory
categoryKey="cat1"
hotspots={
- Array [
- Object {
+ [
+ {
"author": "Developer 1",
"component": "com.github.kevinsawicki:http-request:com.github.kevinsawicki.http.HttpRequest",
"creationDate": "2013-05-13T17:55:39+0200",
@@ -245,7 +245,7 @@ exports[`should render correctly with hotspots: no pagination 1`] = `
"updateDate": "2013-05-13T17:55:39+0200",
"vulnerabilityProbability": "MEDIUM",
},
- Object {
+ {
"author": "Developer 1",
"component": "com.github.kevinsawicki:http-request:com.github.kevinsawicki.http.HttpRequest",
"creationDate": "2013-05-13T17:55:39+0200",
@@ -267,7 +267,7 @@ exports[`should render correctly with hotspots: no pagination 1`] = `
onLocationClick={[MockFunction]}
onToggleExpand={[Function]}
selectedHotspot={
- Object {
+ {
"author": "Developer 1",
"component": "com.github.kevinsawicki:http-request:com.github.kevinsawicki.http.HttpRequest",
"creationDate": "2013-05-13T17:55:39+0200",
@@ -293,8 +293,8 @@ exports[`should render correctly with hotspots: no pagination 1`] = `
<HotspotCategory
categoryKey="cat2"
hotspots={
- Array [
- Object {
+ [
+ {
"author": "Developer 1",
"component": "com.github.kevinsawicki:http-request:com.github.kevinsawicki.http.HttpRequest",
"creationDate": "2013-05-13T17:55:39+0200",
@@ -316,7 +316,7 @@ exports[`should render correctly with hotspots: no pagination 1`] = `
onLocationClick={[MockFunction]}
onToggleExpand={[Function]}
selectedHotspot={
- Object {
+ {
"author": "Developer 1",
"component": "com.github.kevinsawicki:http-request:com.github.kevinsawicki.http.HttpRequest",
"creationDate": "2013-05-13T17:55:39+0200",
@@ -387,8 +387,8 @@ exports[`should render correctly with hotspots: pagination 1`] = `
<HotspotCategory
categoryKey="cat1"
hotspots={
- Array [
- Object {
+ [
+ {
"author": "Developer 1",
"component": "com.github.kevinsawicki:http-request:com.github.kevinsawicki.http.HttpRequest",
"creationDate": "2013-05-13T17:55:39+0200",
@@ -410,7 +410,7 @@ exports[`should render correctly with hotspots: pagination 1`] = `
onLocationClick={[MockFunction]}
onToggleExpand={[Function]}
selectedHotspot={
- Object {
+ {
"author": "Developer 1",
"component": "com.github.kevinsawicki:http-request:com.github.kevinsawicki.http.HttpRequest",
"creationDate": "2013-05-13T17:55:39+0200",
@@ -436,8 +436,8 @@ exports[`should render correctly with hotspots: pagination 1`] = `
<HotspotCategory
categoryKey="cat2"
hotspots={
- Array [
- Object {
+ [
+ {
"author": "Developer 1",
"component": "com.github.kevinsawicki:http-request:com.github.kevinsawicki.http.HttpRequest",
"creationDate": "2013-05-13T17:55:39+0200",
@@ -459,7 +459,7 @@ exports[`should render correctly with hotspots: pagination 1`] = `
onLocationClick={[MockFunction]}
onToggleExpand={[Function]}
selectedHotspot={
- Object {
+ {
"author": "Developer 1",
"component": "com.github.kevinsawicki:http-request:com.github.kevinsawicki.http.HttpRequest",
"creationDate": "2013-05-13T17:55:39+0200",
@@ -505,8 +505,8 @@ exports[`should render correctly with hotspots: pagination 1`] = `
<HotspotCategory
categoryKey="cat1"
hotspots={
- Array [
- Object {
+ [
+ {
"author": "Developer 1",
"component": "com.github.kevinsawicki:http-request:com.github.kevinsawicki.http.HttpRequest",
"creationDate": "2013-05-13T17:55:39+0200",
@@ -521,7 +521,7 @@ exports[`should render correctly with hotspots: pagination 1`] = `
"updateDate": "2013-05-13T17:55:39+0200",
"vulnerabilityProbability": "MEDIUM",
},
- Object {
+ {
"author": "Developer 1",
"component": "com.github.kevinsawicki:http-request:com.github.kevinsawicki.http.HttpRequest",
"creationDate": "2013-05-13T17:55:39+0200",
@@ -543,7 +543,7 @@ exports[`should render correctly with hotspots: pagination 1`] = `
onLocationClick={[MockFunction]}
onToggleExpand={[Function]}
selectedHotspot={
- Object {
+ {
"author": "Developer 1",
"component": "com.github.kevinsawicki:http-request:com.github.kevinsawicki.http.HttpRequest",
"creationDate": "2013-05-13T17:55:39+0200",
@@ -569,8 +569,8 @@ exports[`should render correctly with hotspots: pagination 1`] = `
<HotspotCategory
categoryKey="cat2"
hotspots={
- Array [
- Object {
+ [
+ {
"author": "Developer 1",
"component": "com.github.kevinsawicki:http-request:com.github.kevinsawicki.http.HttpRequest",
"creationDate": "2013-05-13T17:55:39+0200",
@@ -592,7 +592,7 @@ exports[`should render correctly with hotspots: pagination 1`] = `
onLocationClick={[MockFunction]}
onToggleExpand={[Function]}
selectedHotspot={
- Object {
+ {
"author": "Developer 1",
"component": "com.github.kevinsawicki:http-request:com.github.kevinsawicki.http.HttpRequest",
"creationDate": "2013-05-13T17:55:39+0200",
diff --git a/server/sonar-web/src/main/js/apps/security-hotspots/components/__tests__/__snapshots__/HotspotListItem-test.tsx.snap b/server/sonar-web/src/main/js/apps/security-hotspots/components/__tests__/__snapshots__/HotspotListItem-test.tsx.snap
index 1dc2e1e34d8..c9f80cab22d 100644
--- a/server/sonar-web/src/main/js/apps/security-hotspots/components/__tests__/__snapshots__/HotspotListItem-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/security-hotspots/components/__tests__/__snapshots__/HotspotListItem-test.tsx.snap
@@ -62,7 +62,7 @@ exports[`should render correctly 2`] = `
</div>
<LocationsList
componentKey="com.github.kevinsawicki:http-request:com.github.kevinsawicki.http.HttpRequest"
- locations={Array []}
+ locations={[]}
onLocationSelect={[Function]}
showCrossFile={false}
/>
diff --git a/server/sonar-web/src/main/js/apps/security-hotspots/components/__tests__/__snapshots__/HotspotOpenInIdeButton-test.tsx.snap b/server/sonar-web/src/main/js/apps/security-hotspots/components/__tests__/__snapshots__/HotspotOpenInIdeButton-test.tsx.snap
index 7a96eec6c18..6cd6c5e4266 100644
--- a/server/sonar-web/src/main/js/apps/security-hotspots/components/__tests__/__snapshots__/HotspotOpenInIdeButton-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/security-hotspots/components/__tests__/__snapshots__/HotspotOpenInIdeButton-test.tsx.snap
@@ -7,7 +7,7 @@ exports[`HotspotOpenInIdeButton should handle several IDE 1`] = `
overlay={
<DropdownOverlay>
<HotspotOpenInIdeOverlay
- ides={Array []}
+ ides={[]}
onIdeSelected={[Function]}
/>
</DropdownOverlay>
@@ -33,13 +33,13 @@ exports[`HotspotOpenInIdeButton should handle several IDE: dropdown open 1`] = `
<DropdownOverlay>
<HotspotOpenInIdeOverlay
ides={
- Array [
- Object {
+ [
+ {
"description": "Hello World",
"ideName": "BlueJ IDE",
"port": 42000,
},
- Object {
+ {
"description": "Blink",
"ideName": "Arduino IDE",
"port": 42001,
@@ -70,7 +70,7 @@ exports[`HotspotOpenInIdeButton should render correctly 1`] = `
overlay={
<DropdownOverlay>
<HotspotOpenInIdeOverlay
- ides={Array []}
+ ides={[]}
onIdeSelected={[Function]}
/>
</DropdownOverlay>
diff --git a/server/sonar-web/src/main/js/apps/security-hotspots/components/__tests__/__snapshots__/HotspotReviewHistory-test.tsx.snap b/server/sonar-web/src/main/js/apps/security-hotspots/components/__tests__/__snapshots__/HotspotReviewHistory-test.tsx.snap
index 125a1fba9b4..98e92766989 100644
--- a/server/sonar-web/src/main/js/apps/security-hotspots/components/__tests__/__snapshots__/HotspotReviewHistory-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/security-hotspots/components/__tests__/__snapshots__/HotspotReviewHistory-test.tsx.snap
@@ -32,7 +32,7 @@ exports[`should render correctly: default 1`] = `
>
<IssueChangelogDiff
diff={
- Object {
+ {
"key": "assign",
"newValue": "darth.vader",
"oldValue": "luke.skywalker",
@@ -71,7 +71,7 @@ exports[`should render correctly: default 1`] = `
>
<IssueChangelogDiff
diff={
- Object {
+ {
"key": "assign",
"newValue": "darth.vader",
"oldValue": "luke.skywalker",
@@ -116,7 +116,7 @@ exports[`should render correctly: default 1`] = `
<div
className="markdown"
dangerouslySetInnerHTML={
- Object {
+ {
"__html": "<strong>TEST</strong>",
}
}
@@ -158,7 +158,7 @@ exports[`should render correctly: default 1`] = `
<div
className="markdown"
dangerouslySetInnerHTML={
- Object {
+ {
"__html": "<strong>TEST</strong>",
}
}
@@ -200,7 +200,7 @@ exports[`should render correctly: default 1`] = `
<div
className="markdown"
dangerouslySetInnerHTML={
- Object {
+ {
"__html": "<strong>TEST</strong>",
}
}
@@ -277,7 +277,7 @@ exports[`should render correctly: show full list 1`] = `
>
<IssueChangelogDiff
diff={
- Object {
+ {
"key": "assign",
"newValue": "darth.vader",
"oldValue": "luke.skywalker",
@@ -316,7 +316,7 @@ exports[`should render correctly: show full list 1`] = `
>
<IssueChangelogDiff
diff={
- Object {
+ {
"key": "assign",
"newValue": "darth.vader",
"oldValue": "luke.skywalker",
@@ -361,7 +361,7 @@ exports[`should render correctly: show full list 1`] = `
<div
className="markdown"
dangerouslySetInnerHTML={
- Object {
+ {
"__html": "<strong>TEST</strong>",
}
}
@@ -403,7 +403,7 @@ exports[`should render correctly: show full list 1`] = `
<div
className="markdown"
dangerouslySetInnerHTML={
- Object {
+ {
"__html": "<strong>TEST</strong>",
}
}
@@ -445,7 +445,7 @@ exports[`should render correctly: show full list 1`] = `
<div
className="markdown"
dangerouslySetInnerHTML={
- Object {
+ {
"__html": "<strong>TEST</strong>",
}
}
@@ -487,7 +487,7 @@ exports[`should render correctly: show full list 1`] = `
<div
className="markdown"
dangerouslySetInnerHTML={
- Object {
+ {
"__html": "<strong>TEST</strong>",
}
}
@@ -529,7 +529,7 @@ exports[`should render correctly: show full list 1`] = `
<div
className="markdown"
dangerouslySetInnerHTML={
- Object {
+ {
"__html": "<strong>TEST</strong>",
}
}
diff --git a/server/sonar-web/src/main/js/apps/security-hotspots/components/__tests__/__snapshots__/HotspotReviewHistoryAndComments-test.tsx.snap b/server/sonar-web/src/main/js/apps/security-hotspots/components/__tests__/__snapshots__/HotspotReviewHistoryAndComments-test.tsx.snap
index 92eb3c747a9..253103a022e 100644
--- a/server/sonar-web/src/main/js/apps/security-hotspots/components/__tests__/__snapshots__/HotspotReviewHistoryAndComments-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/security-hotspots/components/__tests__/__snapshots__/HotspotReviewHistoryAndComments-test.tsx.snap
@@ -39,25 +39,25 @@ exports[`should render correctly 1`] = `
</h2>
<HotspotReviewHistory
hotspot={
- Object {
+ {
"assignee": "assignee",
- "assigneeUser": Object {
+ "assigneeUser": {
"active": true,
"local": true,
"login": "assignee",
"name": "John Doe",
},
"author": "author",
- "authorUser": Object {
+ "authorUser": {
"active": true,
"local": true,
"login": "author",
"name": "John Doe",
},
"canChangeStatus": true,
- "changelog": Array [],
- "comment": Array [],
- "component": Object {
+ "changelog": [],
+ "comment": [],
+ "component": {
"key": "hotspot-component",
"longName": "Hotspot component long name",
"name": "Hotspot Component",
@@ -65,12 +65,12 @@ exports[`should render correctly 1`] = `
"qualifier": "FIL",
},
"creationDate": "2013-05-13T17:55:41+0200",
- "flows": Array [
- Object {
- "locations": Array [
- Object {
+ "flows": [
+ {
+ "locations": [
+ {
"component": "main.js",
- "textRange": Object {
+ "textRange": {
"endLine": 2,
"endOffset": 2,
"startLine": 1,
@@ -83,7 +83,7 @@ exports[`should render correctly 1`] = `
"key": "01fc972e-2a3c-433e-bcae-0bd7f88f5123",
"line": 142,
"message": "'3' is a magic number.",
- "project": Object {
+ "project": {
"key": "hotspot-component",
"longName": "Hotspot component long name",
"name": "Hotspot Component",
@@ -91,28 +91,28 @@ exports[`should render correctly 1`] = `
"qualifier": "TRK",
},
"resolution": "FIXED",
- "rule": Object {
+ "rule": {
"key": "squid:S2077",
"name": "That rule",
"securityCategory": "sql-injection",
"vulnerabilityProbability": "HIGH",
},
"status": "REVIEWED",
- "textRange": Object {
+ "textRange": {
"endLine": 142,
"endOffset": 83,
"startLine": 142,
"startOffset": 26,
},
"updateDate": "2013-05-13T17:55:42+0200",
- "users": Array [
- Object {
+ "users": [
+ {
"active": true,
"local": true,
"login": "assignee",
"name": "John Doe",
},
- Object {
+ {
"active": true,
"local": true,
"login": "author",
@@ -140,25 +140,25 @@ exports[`should render correctly without user 1`] = `
</h2>
<HotspotReviewHistory
hotspot={
- Object {
+ {
"assignee": "assignee",
- "assigneeUser": Object {
+ "assigneeUser": {
"active": true,
"local": true,
"login": "assignee",
"name": "John Doe",
},
"author": "author",
- "authorUser": Object {
+ "authorUser": {
"active": true,
"local": true,
"login": "author",
"name": "John Doe",
},
"canChangeStatus": true,
- "changelog": Array [],
- "comment": Array [],
- "component": Object {
+ "changelog": [],
+ "comment": [],
+ "component": {
"key": "hotspot-component",
"longName": "Hotspot component long name",
"name": "Hotspot Component",
@@ -166,12 +166,12 @@ exports[`should render correctly without user 1`] = `
"qualifier": "FIL",
},
"creationDate": "2013-05-13T17:55:41+0200",
- "flows": Array [
- Object {
- "locations": Array [
- Object {
+ "flows": [
+ {
+ "locations": [
+ {
"component": "main.js",
- "textRange": Object {
+ "textRange": {
"endLine": 2,
"endOffset": 2,
"startLine": 1,
@@ -184,7 +184,7 @@ exports[`should render correctly without user 1`] = `
"key": "01fc972e-2a3c-433e-bcae-0bd7f88f5123",
"line": 142,
"message": "'3' is a magic number.",
- "project": Object {
+ "project": {
"key": "hotspot-component",
"longName": "Hotspot component long name",
"name": "Hotspot Component",
@@ -192,28 +192,28 @@ exports[`should render correctly without user 1`] = `
"qualifier": "TRK",
},
"resolution": "FIXED",
- "rule": Object {
+ "rule": {
"key": "squid:S2077",
"name": "That rule",
"securityCategory": "sql-injection",
"vulnerabilityProbability": "HIGH",
},
"status": "REVIEWED",
- "textRange": Object {
+ "textRange": {
"endLine": 142,
"endOffset": 83,
"startLine": 142,
"startOffset": 26,
},
"updateDate": "2013-05-13T17:55:42+0200",
- "users": Array [
- Object {
+ "users": [
+ {
"active": true,
"local": true,
"login": "assignee",
"name": "John Doe",
},
- Object {
+ {
"active": true,
"local": true,
"login": "author",
diff --git a/server/sonar-web/src/main/js/apps/security-hotspots/components/__tests__/__snapshots__/HotspotSimpleList-test.tsx.snap b/server/sonar-web/src/main/js/apps/security-hotspots/components/__tests__/__snapshots__/HotspotSimpleList-test.tsx.snap
index 1c547037892..bc5b379dbc5 100644
--- a/server/sonar-web/src/main/js/apps/security-hotspots/components/__tests__/__snapshots__/HotspotSimpleList-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/security-hotspots/components/__tests__/__snapshots__/HotspotSimpleList-test.tsx.snap
@@ -36,7 +36,7 @@ exports[`should render correctly: filter by both 1`] = `
>
<HotspotListItem
hotspot={
- Object {
+ {
"author": "Developer 1",
"component": "com.github.kevinsawicki:http-request:com.github.kevinsawicki.http.HttpRequest",
"creationDate": "2013-05-13T17:55:39+0200",
@@ -63,7 +63,7 @@ exports[`should render correctly: filter by both 1`] = `
>
<HotspotListItem
hotspot={
- Object {
+ {
"author": "Developer 1",
"component": "com.github.kevinsawicki:http-request:com.github.kevinsawicki.http.HttpRequest",
"creationDate": "2013-05-13T17:55:39+0200",
@@ -130,7 +130,7 @@ exports[`should render correctly: filter by category 1`] = `
>
<HotspotListItem
hotspot={
- Object {
+ {
"author": "Developer 1",
"component": "com.github.kevinsawicki:http-request:com.github.kevinsawicki.http.HttpRequest",
"creationDate": "2013-05-13T17:55:39+0200",
@@ -157,7 +157,7 @@ exports[`should render correctly: filter by category 1`] = `
>
<HotspotListItem
hotspot={
- Object {
+ {
"author": "Developer 1",
"component": "com.github.kevinsawicki:http-request:com.github.kevinsawicki.http.HttpRequest",
"creationDate": "2013-05-13T17:55:39+0200",
@@ -224,7 +224,7 @@ exports[`should render correctly: filter by cwe 1`] = `
>
<HotspotListItem
hotspot={
- Object {
+ {
"author": "Developer 1",
"component": "com.github.kevinsawicki:http-request:com.github.kevinsawicki.http.HttpRequest",
"creationDate": "2013-05-13T17:55:39+0200",
@@ -251,7 +251,7 @@ exports[`should render correctly: filter by cwe 1`] = `
>
<HotspotListItem
hotspot={
- Object {
+ {
"author": "Developer 1",
"component": "com.github.kevinsawicki:http-request:com.github.kevinsawicki.http.HttpRequest",
"creationDate": "2013-05-13T17:55:39+0200",
@@ -328,7 +328,7 @@ exports[`should render correctly: filter by file 1`] = `
>
<HotspotListItem
hotspot={
- Object {
+ {
"author": "Developer 1",
"component": "com.github.kevinsawicki:http-request:com.github.kevinsawicki.http.HttpRequest",
"creationDate": "2013-05-13T17:55:39+0200",
@@ -355,7 +355,7 @@ exports[`should render correctly: filter by file 1`] = `
>
<HotspotListItem
hotspot={
- Object {
+ {
"author": "Developer 1",
"component": "com.github.kevinsawicki:http-request:com.github.kevinsawicki.http.HttpRequest",
"creationDate": "2013-05-13T17:55:39+0200",
diff --git a/server/sonar-web/src/main/js/apps/security-hotspots/components/__tests__/__snapshots__/HotspotSnippetContainer-test.tsx.snap b/server/sonar-web/src/main/js/apps/security-hotspots/components/__tests__/__snapshots__/HotspotSnippetContainer-test.tsx.snap
index aeb8cf2f711..03e59180ae2 100644
--- a/server/sonar-web/src/main/js/apps/security-hotspots/components/__tests__/__snapshots__/HotspotSnippetContainer-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/security-hotspots/components/__tests__/__snapshots__/HotspotSnippetContainer-test.tsx.snap
@@ -3,7 +3,7 @@
exports[`should render correctly 1`] = `
<HotspotSnippetContainerRenderer
branchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": false,
@@ -11,48 +11,48 @@ exports[`should render correctly 1`] = `
}
}
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "TRK",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
- highlightedSymbols={Array []}
+ highlightedSymbols={[]}
hotspot={
- Object {
+ {
"assignee": "assignee",
- "assigneeUser": Object {
+ "assigneeUser": {
"active": true,
"local": true,
"login": "assignee",
"name": "John Doe",
},
"author": "author",
- "authorUser": Object {
+ "authorUser": {
"active": true,
"local": true,
"login": "author",
"name": "John Doe",
},
"canChangeStatus": true,
- "changelog": Array [],
- "comment": Array [],
- "component": Object {
+ "changelog": [],
+ "comment": [],
+ "component": {
"key": "hotspot-component",
"longName": "Hotspot component long name",
"name": "Hotspot Component",
@@ -60,12 +60,12 @@ exports[`should render correctly 1`] = `
"qualifier": "FIL",
},
"creationDate": "2013-05-13T17:55:41+0200",
- "flows": Array [
- Object {
- "locations": Array [
- Object {
+ "flows": [
+ {
+ "locations": [
+ {
"component": "main.js",
- "textRange": Object {
+ "textRange": {
"endLine": 2,
"endOffset": 2,
"startLine": 1,
@@ -78,7 +78,7 @@ exports[`should render correctly 1`] = `
"key": "01fc972e-2a3c-433e-bcae-0bd7f88f5123",
"line": 142,
"message": "'3' is a magic number.",
- "project": Object {
+ "project": {
"key": "hotspot-component",
"longName": "Hotspot component long name",
"name": "Hotspot Component",
@@ -86,28 +86,28 @@ exports[`should render correctly 1`] = `
"qualifier": "TRK",
},
"resolution": "FIXED",
- "rule": Object {
+ "rule": {
"key": "squid:S2077",
"name": "That rule",
"securityCategory": "sql-injection",
"vulnerabilityProbability": "HIGH",
},
"status": "REVIEWED",
- "textRange": Object {
+ "textRange": {
"endLine": 142,
"endOffset": 83,
"startLine": 142,
"startOffset": 26,
},
"updateDate": "2013-05-13T17:55:42+0200",
- "users": Array [
- Object {
+ "users": [
+ {
"active": true,
"local": true,
"login": "assignee",
"name": "John Doe",
},
- Object {
+ {
"active": true,
"local": true,
"login": "author",
@@ -118,9 +118,9 @@ exports[`should render correctly 1`] = `
}
loading={true}
locations={
- Object {
- "142": Array [
- Object {
+ {
+ "142": [
+ {
"from": 26,
"line": 142,
"to": 83,
@@ -133,12 +133,12 @@ exports[`should render correctly 1`] = `
onLocationSelect={[MockFunction]}
onSymbolClick={[Function]}
secondaryLocations={
- Array [
- Object {
+ [
+ {
"component": "main.js",
"index": 0,
"text": undefined,
- "textRange": Object {
+ "textRange": {
"endLine": 2,
"endOffset": 2,
"startLine": 1,
@@ -147,11 +147,11 @@ exports[`should render correctly 1`] = `
},
]
}
- sourceLines={Array []}
+ sourceLines={[]}
sourceViewerFile={
- Object {
+ {
"key": "hotspot-component",
- "measures": Object {
+ "measures": {
"lines": undefined,
},
"path": "path/to/component",
diff --git a/server/sonar-web/src/main/js/apps/security-hotspots/components/__tests__/__snapshots__/HotspotSnippetContainerRenderer-test.tsx.snap b/server/sonar-web/src/main/js/apps/security-hotspots/components/__tests__/__snapshots__/HotspotSnippetContainerRenderer-test.tsx.snap
index 135d84e9c54..1ace6e7e117 100644
--- a/server/sonar-web/src/main/js/apps/security-hotspots/components/__tests__/__snapshots__/HotspotSnippetContainerRenderer-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/security-hotspots/components/__tests__/__snapshots__/HotspotSnippetContainerRenderer-test.tsx.snap
@@ -9,7 +9,7 @@ exports[`should render correctly 1`] = `
</p>
<withCurrentUserContext(HotspotSnippetHeader)
branchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": true,
@@ -17,47 +17,47 @@ exports[`should render correctly 1`] = `
}
}
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "TRK",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
hotspot={
- Object {
+ {
"assignee": "assignee",
- "assigneeUser": Object {
+ "assigneeUser": {
"active": true,
"local": true,
"login": "assignee",
"name": "John Doe",
},
"author": "author",
- "authorUser": Object {
+ "authorUser": {
"active": true,
"local": true,
"login": "author",
"name": "John Doe",
},
"canChangeStatus": true,
- "changelog": Array [],
- "comment": Array [],
- "component": Object {
+ "changelog": [],
+ "comment": [],
+ "component": {
"key": "hotspot-component",
"longName": "Hotspot component long name",
"name": "Hotspot Component",
@@ -65,12 +65,12 @@ exports[`should render correctly 1`] = `
"qualifier": "FIL",
},
"creationDate": "2013-05-13T17:55:41+0200",
- "flows": Array [
- Object {
- "locations": Array [
- Object {
+ "flows": [
+ {
+ "locations": [
+ {
"component": "main.js",
- "textRange": Object {
+ "textRange": {
"endLine": 2,
"endOffset": 2,
"startLine": 1,
@@ -83,7 +83,7 @@ exports[`should render correctly 1`] = `
"key": "01fc972e-2a3c-433e-bcae-0bd7f88f5123",
"line": 142,
"message": "'3' is a magic number.",
- "project": Object {
+ "project": {
"key": "hotspot-component",
"longName": "Hotspot component long name",
"name": "Hotspot Component",
@@ -91,28 +91,28 @@ exports[`should render correctly 1`] = `
"qualifier": "TRK",
},
"resolution": "FIXED",
- "rule": Object {
+ "rule": {
"key": "squid:S2077",
"name": "That rule",
"securityCategory": "sql-injection",
"vulnerabilityProbability": "HIGH",
},
"status": "REVIEWED",
- "textRange": Object {
+ "textRange": {
"endLine": 142,
"endOffset": 83,
"startLine": 142,
"startOffset": 26,
},
"updateDate": "2013-05-13T17:55:42+0200",
- "users": Array [
- Object {
+ "users": [
+ {
"active": true,
"local": true,
"login": "assignee",
"name": "John Doe",
},
- Object {
+ {
"active": true,
"local": true,
"login": "author",
@@ -142,7 +142,7 @@ exports[`should render correctly when secondary location is selected: with selec
</p>
<withCurrentUserContext(HotspotSnippetHeader)
branchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": true,
@@ -150,47 +150,47 @@ exports[`should render correctly when secondary location is selected: with selec
}
}
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "TRK",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
hotspot={
- Object {
+ {
"assignee": "assignee",
- "assigneeUser": Object {
+ "assigneeUser": {
"active": true,
"local": true,
"login": "assignee",
"name": "John Doe",
},
"author": "author",
- "authorUser": Object {
+ "authorUser": {
"active": true,
"local": true,
"login": "author",
"name": "John Doe",
},
"canChangeStatus": true,
- "changelog": Array [],
- "comment": Array [],
- "component": Object {
+ "changelog": [],
+ "comment": [],
+ "component": {
"key": "hotspot-component",
"longName": "Hotspot component long name",
"name": "Hotspot Component",
@@ -198,12 +198,12 @@ exports[`should render correctly when secondary location is selected: with selec
"qualifier": "FIL",
},
"creationDate": "2013-05-13T17:55:41+0200",
- "flows": Array [
- Object {
- "locations": Array [
- Object {
+ "flows": [
+ {
+ "locations": [
+ {
"component": "main.js",
- "textRange": Object {
+ "textRange": {
"endLine": 2,
"endOffset": 2,
"startLine": 1,
@@ -216,7 +216,7 @@ exports[`should render correctly when secondary location is selected: with selec
"key": "01fc972e-2a3c-433e-bcae-0bd7f88f5123",
"line": 142,
"message": "'3' is a magic number.",
- "project": Object {
+ "project": {
"key": "hotspot-component",
"longName": "Hotspot component long name",
"name": "Hotspot Component",
@@ -224,28 +224,28 @@ exports[`should render correctly when secondary location is selected: with selec
"qualifier": "TRK",
},
"resolution": "FIXED",
- "rule": Object {
+ "rule": {
"key": "squid:S2077",
"name": "That rule",
"securityCategory": "sql-injection",
"vulnerabilityProbability": "HIGH",
},
"status": "REVIEWED",
- "textRange": Object {
+ "textRange": {
"endLine": 142,
"endOffset": 83,
"startLine": 142,
"startOffset": 26,
},
"updateDate": "2013-05-13T17:55:42+0200",
- "users": Array [
- Object {
+ "users": [
+ {
"active": true,
"local": true,
"login": "assignee",
"name": "John Doe",
},
- Object {
+ {
"active": true,
"local": true,
"login": "author",
@@ -270,7 +270,7 @@ exports[`should render correctly: with sourcelines 1`] = `
<Fragment>
<withCurrentUserContext(HotspotSnippetHeader)
branchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": true,
@@ -278,47 +278,47 @@ exports[`should render correctly: with sourcelines 1`] = `
}
}
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "TRK",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
hotspot={
- Object {
+ {
"assignee": "assignee",
- "assigneeUser": Object {
+ "assigneeUser": {
"active": true,
"local": true,
"login": "assignee",
"name": "John Doe",
},
"author": "author",
- "authorUser": Object {
+ "authorUser": {
"active": true,
"local": true,
"login": "author",
"name": "John Doe",
},
"canChangeStatus": true,
- "changelog": Array [],
- "comment": Array [],
- "component": Object {
+ "changelog": [],
+ "comment": [],
+ "component": {
"key": "hotspot-component",
"longName": "Hotspot component long name",
"name": "Hotspot Component",
@@ -326,12 +326,12 @@ exports[`should render correctly: with sourcelines 1`] = `
"qualifier": "FIL",
},
"creationDate": "2013-05-13T17:55:41+0200",
- "flows": Array [
- Object {
- "locations": Array [
- Object {
+ "flows": [
+ {
+ "locations": [
+ {
"component": "main.js",
- "textRange": Object {
+ "textRange": {
"endLine": 2,
"endOffset": 2,
"startLine": 1,
@@ -344,7 +344,7 @@ exports[`should render correctly: with sourcelines 1`] = `
"key": "01fc972e-2a3c-433e-bcae-0bd7f88f5123",
"line": 142,
"message": "'3' is a magic number.",
- "project": Object {
+ "project": {
"key": "hotspot-component",
"longName": "Hotspot component long name",
"name": "Hotspot Component",
@@ -352,28 +352,28 @@ exports[`should render correctly: with sourcelines 1`] = `
"qualifier": "TRK",
},
"resolution": "FIXED",
- "rule": Object {
+ "rule": {
"key": "squid:S2077",
"name": "That rule",
"securityCategory": "sql-injection",
"vulnerabilityProbability": "HIGH",
},
"status": "REVIEWED",
- "textRange": Object {
+ "textRange": {
"endLine": 142,
"endOffset": 83,
"startLine": 142,
"startOffset": 26,
},
"updateDate": "2013-05-13T17:55:42+0200",
- "users": Array [
- Object {
+ "users": [
+ {
"active": true,
"local": true,
"login": "assignee",
"name": "John Doe",
},
- Object {
+ {
"active": true,
"local": true,
"login": "author",
@@ -392,12 +392,12 @@ exports[`should render correctly: with sourcelines 1`] = `
>
<SnippetViewer
component={
- Object {
+ {
"canMarkAsFavorite": true,
"fav": false,
"key": "project:foo/bar.ts",
"longName": "foo/bar.ts",
- "measures": Object {
+ "measures": {
"coverage": "85.2",
"duplicationDensity": "1.0",
"issues": "12",
@@ -415,28 +415,28 @@ exports[`should render correctly: with sourcelines 1`] = `
displaySCM={false}
expandBlock={[Function]}
handleSymbolClick={[MockFunction]}
- highlightedSymbols={Array []}
+ highlightedSymbols={[]}
index={0}
issue={
- Object {
+ {
"assignee": "assignee",
- "assigneeUser": Object {
+ "assigneeUser": {
"active": true,
"local": true,
"login": "assignee",
"name": "John Doe",
},
"author": "author",
- "authorUser": Object {
+ "authorUser": {
"active": true,
"local": true,
"login": "author",
"name": "John Doe",
},
"canChangeStatus": true,
- "changelog": Array [],
- "comment": Array [],
- "component": Object {
+ "changelog": [],
+ "comment": [],
+ "component": {
"key": "hotspot-component",
"longName": "Hotspot component long name",
"name": "Hotspot Component",
@@ -444,12 +444,12 @@ exports[`should render correctly: with sourcelines 1`] = `
"qualifier": "FIL",
},
"creationDate": "2013-05-13T17:55:41+0200",
- "flows": Array [
- Object {
- "locations": Array [
- Object {
+ "flows": [
+ {
+ "locations": [
+ {
"component": "main.js",
- "textRange": Object {
+ "textRange": {
"endLine": 2,
"endOffset": 2,
"startLine": 1,
@@ -462,7 +462,7 @@ exports[`should render correctly: with sourcelines 1`] = `
"key": "01fc972e-2a3c-433e-bcae-0bd7f88f5123",
"line": 142,
"message": "'3' is a magic number.",
- "project": Object {
+ "project": {
"key": "hotspot-component",
"longName": "Hotspot component long name",
"name": "Hotspot Component",
@@ -470,28 +470,28 @@ exports[`should render correctly: with sourcelines 1`] = `
"qualifier": "TRK",
},
"resolution": "FIXED",
- "rule": Object {
+ "rule": {
"key": "squid:S2077",
"name": "That rule",
"securityCategory": "sql-injection",
"vulnerabilityProbability": "HIGH",
},
"status": "REVIEWED",
- "textRange": Object {
+ "textRange": {
"endLine": 142,
"endOffset": 83,
"startLine": 142,
"startOffset": 26,
},
"updateDate": "2013-05-13T17:55:42+0200",
- "users": Array [
- Object {
+ "users": [
+ {
"active": true,
"local": true,
"login": "assignee",
"name": "John Doe",
},
- Object {
+ {
"active": true,
"local": true,
"login": "author",
@@ -501,15 +501,15 @@ exports[`should render correctly: with sourcelines 1`] = `
}
}
lastSnippetOfLastGroup={false}
- locations={Array []}
- locationsByLine={Object {}}
+ locations={[]}
+ locationsByLine={{}}
onLocationSelect={[MockFunction]}
renderAdditionalChildInLine={[Function]}
renderDuplicationPopup={[Function]}
snippet={
- Array [
- Object {
- "code": "<span class=\\"k\\">import</span> java.util.<span class=\\"sym-9 sym\\">ArrayList</span>;",
+ [
+ {
+ "code": "<span class="k">import</span> java.util.<span class="sym-9 sym">ArrayList</span>;",
"coverageStatus": "covered",
"coveredConditions": 2,
"duplicated": false,
diff --git a/server/sonar-web/src/main/js/apps/security-hotspots/components/__tests__/__snapshots__/HotspotViewer-test.tsx.snap b/server/sonar-web/src/main/js/apps/security-hotspots/components/__tests__/__snapshots__/HotspotViewer-test.tsx.snap
index 84f1a0f9583..3ac04551e1a 100644
--- a/server/sonar-web/src/main/js/apps/security-hotspots/components/__tests__/__snapshots__/HotspotViewer-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/security-hotspots/components/__tests__/__snapshots__/HotspotViewer-test.tsx.snap
@@ -3,30 +3,30 @@
exports[`should render correctly 1`] = `
<withCurrentUserContext(HotspotViewerRenderer)
commentTextRef={
- Object {
+ {
"current": null,
}
}
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "TRK",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
loading={true}
@@ -42,36 +42,36 @@ exports[`should render correctly 1`] = `
exports[`should render correctly 2`] = `
<withCurrentUserContext(HotspotViewerRenderer)
commentTextRef={
- Object {
+ {
"current": null,
}
}
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "TRK",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
hotspot={
- Object {
+ {
"id": "I am a detailled hotspot",
- "rule": Object {},
+ "rule": {},
}
}
loading={false}
@@ -80,7 +80,7 @@ exports[`should render correctly 2`] = `
onShowCommentForm={[Function]}
onSwitchFilterToStatusOfUpdatedHotspot={[Function]}
onUpdateHotspot={[Function]}
- ruleDescriptionSections={Array []}
+ ruleDescriptionSections={[]}
showStatusUpdateSuccessModal={false}
/>
`;
diff --git a/server/sonar-web/src/main/js/apps/security-hotspots/components/__tests__/__snapshots__/HotspotViewerRenderer-test.tsx.snap b/server/sonar-web/src/main/js/apps/security-hotspots/components/__tests__/__snapshots__/HotspotViewerRenderer-test.tsx.snap
index 2931486759b..b3c5a12ade7 100644
--- a/server/sonar-web/src/main/js/apps/security-hotspots/components/__tests__/__snapshots__/HotspotViewerRenderer-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/security-hotspots/components/__tests__/__snapshots__/HotspotViewerRenderer-test.tsx.snap
@@ -10,25 +10,25 @@ exports[`should render correctly: anonymous user 1`] = `
>
<HotspotHeader
hotspot={
- Object {
+ {
"assignee": "assignee",
- "assigneeUser": Object {
+ "assigneeUser": {
"active": true,
"local": true,
"login": "assignee",
"name": "John Doe",
},
"author": "author",
- "authorUser": Object {
+ "authorUser": {
"active": true,
"local": true,
"login": "author",
"name": "John Doe",
},
"canChangeStatus": true,
- "changelog": Array [],
- "comment": Array [],
- "component": Object {
+ "changelog": [],
+ "comment": [],
+ "component": {
"key": "hotspot-component",
"longName": "Hotspot component long name",
"name": "Hotspot Component",
@@ -36,12 +36,12 @@ exports[`should render correctly: anonymous user 1`] = `
"qualifier": "FIL",
},
"creationDate": "2013-05-13T17:55:41+0200",
- "flows": Array [
- Object {
- "locations": Array [
- Object {
+ "flows": [
+ {
+ "locations": [
+ {
"component": "main.js",
- "textRange": Object {
+ "textRange": {
"endLine": 2,
"endOffset": 2,
"startLine": 1,
@@ -54,7 +54,7 @@ exports[`should render correctly: anonymous user 1`] = `
"key": "01fc972e-2a3c-433e-bcae-0bd7f88f5123",
"line": 142,
"message": "'3' is a magic number.",
- "project": Object {
+ "project": {
"key": "hotspot-component",
"longName": "Hotspot component long name",
"name": "Hotspot Component",
@@ -62,28 +62,28 @@ exports[`should render correctly: anonymous user 1`] = `
"qualifier": "TRK",
},
"resolution": "FIXED",
- "rule": Object {
+ "rule": {
"key": "squid:S2077",
"name": "That rule",
"securityCategory": "sql-injection",
"vulnerabilityProbability": "HIGH",
},
"status": "REVIEWED",
- "textRange": Object {
+ "textRange": {
"endLine": 142,
"endOffset": 83,
"startLine": 142,
"startOffset": 26,
},
"updateDate": "2013-05-13T17:55:42+0200",
- "users": Array [
- Object {
+ "users": [
+ {
"active": true,
"local": true,
"login": "assignee",
"name": "John Doe",
},
- Object {
+ {
"active": true,
"local": true,
"login": "author",
@@ -98,47 +98,47 @@ exports[`should render correctly: anonymous user 1`] = `
codeTabContent={
<HotspotSnippetContainer
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "TRK",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
hotspot={
- Object {
+ {
"assignee": "assignee",
- "assigneeUser": Object {
+ "assigneeUser": {
"active": true,
"local": true,
"login": "assignee",
"name": "John Doe",
},
"author": "author",
- "authorUser": Object {
+ "authorUser": {
"active": true,
"local": true,
"login": "author",
"name": "John Doe",
},
"canChangeStatus": true,
- "changelog": Array [],
- "comment": Array [],
- "component": Object {
+ "changelog": [],
+ "comment": [],
+ "component": {
"key": "hotspot-component",
"longName": "Hotspot component long name",
"name": "Hotspot Component",
@@ -146,12 +146,12 @@ exports[`should render correctly: anonymous user 1`] = `
"qualifier": "FIL",
},
"creationDate": "2013-05-13T17:55:41+0200",
- "flows": Array [
- Object {
- "locations": Array [
- Object {
+ "flows": [
+ {
+ "locations": [
+ {
"component": "main.js",
- "textRange": Object {
+ "textRange": {
"endLine": 2,
"endOffset": 2,
"startLine": 1,
@@ -164,7 +164,7 @@ exports[`should render correctly: anonymous user 1`] = `
"key": "01fc972e-2a3c-433e-bcae-0bd7f88f5123",
"line": 142,
"message": "'3' is a magic number.",
- "project": Object {
+ "project": {
"key": "hotspot-component",
"longName": "Hotspot component long name",
"name": "Hotspot Component",
@@ -172,28 +172,28 @@ exports[`should render correctly: anonymous user 1`] = `
"qualifier": "TRK",
},
"resolution": "FIXED",
- "rule": Object {
+ "rule": {
"key": "squid:S2077",
"name": "That rule",
"securityCategory": "sql-injection",
"vulnerabilityProbability": "HIGH",
},
"status": "REVIEWED",
- "textRange": Object {
+ "textRange": {
"endLine": 142,
"endOffset": 83,
"startLine": 142,
"startOffset": 26,
},
"updateDate": "2013-05-13T17:55:42+0200",
- "users": Array [
- Object {
+ "users": [
+ {
"active": true,
"local": true,
"login": "assignee",
"name": "John Doe",
},
- Object {
+ {
"active": true,
"local": true,
"login": "author",
@@ -207,25 +207,25 @@ exports[`should render correctly: anonymous user 1`] = `
/>
}
hotspot={
- Object {
+ {
"assignee": "assignee",
- "assigneeUser": Object {
+ "assigneeUser": {
"active": true,
"local": true,
"login": "assignee",
"name": "John Doe",
},
"author": "author",
- "authorUser": Object {
+ "authorUser": {
"active": true,
"local": true,
"login": "author",
"name": "John Doe",
},
"canChangeStatus": true,
- "changelog": Array [],
- "comment": Array [],
- "component": Object {
+ "changelog": [],
+ "comment": [],
+ "component": {
"key": "hotspot-component",
"longName": "Hotspot component long name",
"name": "Hotspot Component",
@@ -233,12 +233,12 @@ exports[`should render correctly: anonymous user 1`] = `
"qualifier": "FIL",
},
"creationDate": "2013-05-13T17:55:41+0200",
- "flows": Array [
- Object {
- "locations": Array [
- Object {
+ "flows": [
+ {
+ "locations": [
+ {
"component": "main.js",
- "textRange": Object {
+ "textRange": {
"endLine": 2,
"endOffset": 2,
"startLine": 1,
@@ -251,7 +251,7 @@ exports[`should render correctly: anonymous user 1`] = `
"key": "01fc972e-2a3c-433e-bcae-0bd7f88f5123",
"line": 142,
"message": "'3' is a magic number.",
- "project": Object {
+ "project": {
"key": "hotspot-component",
"longName": "Hotspot component long name",
"name": "Hotspot Component",
@@ -259,28 +259,28 @@ exports[`should render correctly: anonymous user 1`] = `
"qualifier": "TRK",
},
"resolution": "FIXED",
- "rule": Object {
+ "rule": {
"key": "squid:S2077",
"name": "That rule",
"securityCategory": "sql-injection",
"vulnerabilityProbability": "HIGH",
},
"status": "REVIEWED",
- "textRange": Object {
+ "textRange": {
"endLine": 142,
"endOffset": 83,
"startLine": 142,
"startOffset": 26,
},
"updateDate": "2013-05-13T17:55:42+0200",
- "users": Array [
- Object {
+ "users": [
+ {
"active": true,
"local": true,
"login": "assignee",
"name": "John Doe",
},
- Object {
+ {
"active": true,
"local": true,
"login": "author",
@@ -292,38 +292,38 @@ exports[`should render correctly: anonymous user 1`] = `
/>
<HotspotReviewHistoryAndComments
commentTextRef={
- Object {
+ {
"current": null,
}
}
currentUser={
- Object {
- "dismissedNotices": Object {
+ {
+ "dismissedNotices": {
"educationPrinciples": false,
},
"isLoggedIn": false,
}
}
hotspot={
- Object {
+ {
"assignee": "assignee",
- "assigneeUser": Object {
+ "assigneeUser": {
"active": true,
"local": true,
"login": "assignee",
"name": "John Doe",
},
"author": "author",
- "authorUser": Object {
+ "authorUser": {
"active": true,
"local": true,
"login": "author",
"name": "John Doe",
},
"canChangeStatus": true,
- "changelog": Array [],
- "comment": Array [],
- "component": Object {
+ "changelog": [],
+ "comment": [],
+ "component": {
"key": "hotspot-component",
"longName": "Hotspot component long name",
"name": "Hotspot Component",
@@ -331,12 +331,12 @@ exports[`should render correctly: anonymous user 1`] = `
"qualifier": "FIL",
},
"creationDate": "2013-05-13T17:55:41+0200",
- "flows": Array [
- Object {
- "locations": Array [
- Object {
+ "flows": [
+ {
+ "locations": [
+ {
"component": "main.js",
- "textRange": Object {
+ "textRange": {
"endLine": 2,
"endOffset": 2,
"startLine": 1,
@@ -349,7 +349,7 @@ exports[`should render correctly: anonymous user 1`] = `
"key": "01fc972e-2a3c-433e-bcae-0bd7f88f5123",
"line": 142,
"message": "'3' is a magic number.",
- "project": Object {
+ "project": {
"key": "hotspot-component",
"longName": "Hotspot component long name",
"name": "Hotspot Component",
@@ -357,28 +357,28 @@ exports[`should render correctly: anonymous user 1`] = `
"qualifier": "TRK",
},
"resolution": "FIXED",
- "rule": Object {
+ "rule": {
"key": "squid:S2077",
"name": "That rule",
"securityCategory": "sql-injection",
"vulnerabilityProbability": "HIGH",
},
"status": "REVIEWED",
- "textRange": Object {
+ "textRange": {
"endLine": 142,
"endOffset": 83,
"startLine": 142,
"startOffset": 26,
},
"updateDate": "2013-05-13T17:55:42+0200",
- "users": Array [
- Object {
+ "users": [
+ {
"active": true,
"local": true,
"login": "assignee",
"name": "John Doe",
},
- Object {
+ {
"active": true,
"local": true,
"login": "author",
@@ -403,25 +403,25 @@ exports[`should render correctly: assignee without name 1`] = `
>
<HotspotHeader
hotspot={
- Object {
+ {
"assignee": "assignee",
- "assigneeUser": Object {
+ "assigneeUser": {
"active": true,
"local": true,
"login": "assignee_login",
"name": undefined,
},
"author": "author",
- "authorUser": Object {
+ "authorUser": {
"active": true,
"local": true,
"login": "author",
"name": "John Doe",
},
"canChangeStatus": true,
- "changelog": Array [],
- "comment": Array [],
- "component": Object {
+ "changelog": [],
+ "comment": [],
+ "component": {
"key": "hotspot-component",
"longName": "Hotspot component long name",
"name": "Hotspot Component",
@@ -429,12 +429,12 @@ exports[`should render correctly: assignee without name 1`] = `
"qualifier": "FIL",
},
"creationDate": "2013-05-13T17:55:41+0200",
- "flows": Array [
- Object {
- "locations": Array [
- Object {
+ "flows": [
+ {
+ "locations": [
+ {
"component": "main.js",
- "textRange": Object {
+ "textRange": {
"endLine": 2,
"endOffset": 2,
"startLine": 1,
@@ -447,7 +447,7 @@ exports[`should render correctly: assignee without name 1`] = `
"key": "01fc972e-2a3c-433e-bcae-0bd7f88f5123",
"line": 142,
"message": "'3' is a magic number.",
- "project": Object {
+ "project": {
"key": "hotspot-component",
"longName": "Hotspot component long name",
"name": "Hotspot Component",
@@ -455,28 +455,28 @@ exports[`should render correctly: assignee without name 1`] = `
"qualifier": "TRK",
},
"resolution": "FIXED",
- "rule": Object {
+ "rule": {
"key": "squid:S2077",
"name": "That rule",
"securityCategory": "sql-injection",
"vulnerabilityProbability": "HIGH",
},
"status": "REVIEWED",
- "textRange": Object {
+ "textRange": {
"endLine": 142,
"endOffset": 83,
"startLine": 142,
"startOffset": 26,
},
"updateDate": "2013-05-13T17:55:42+0200",
- "users": Array [
- Object {
+ "users": [
+ {
"active": true,
"local": true,
"login": "assignee",
"name": "John Doe",
},
- Object {
+ {
"active": true,
"local": true,
"login": "author",
@@ -491,47 +491,47 @@ exports[`should render correctly: assignee without name 1`] = `
codeTabContent={
<HotspotSnippetContainer
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "TRK",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
hotspot={
- Object {
+ {
"assignee": "assignee",
- "assigneeUser": Object {
+ "assigneeUser": {
"active": true,
"local": true,
"login": "assignee_login",
"name": undefined,
},
"author": "author",
- "authorUser": Object {
+ "authorUser": {
"active": true,
"local": true,
"login": "author",
"name": "John Doe",
},
"canChangeStatus": true,
- "changelog": Array [],
- "comment": Array [],
- "component": Object {
+ "changelog": [],
+ "comment": [],
+ "component": {
"key": "hotspot-component",
"longName": "Hotspot component long name",
"name": "Hotspot Component",
@@ -539,12 +539,12 @@ exports[`should render correctly: assignee without name 1`] = `
"qualifier": "FIL",
},
"creationDate": "2013-05-13T17:55:41+0200",
- "flows": Array [
- Object {
- "locations": Array [
- Object {
+ "flows": [
+ {
+ "locations": [
+ {
"component": "main.js",
- "textRange": Object {
+ "textRange": {
"endLine": 2,
"endOffset": 2,
"startLine": 1,
@@ -557,7 +557,7 @@ exports[`should render correctly: assignee without name 1`] = `
"key": "01fc972e-2a3c-433e-bcae-0bd7f88f5123",
"line": 142,
"message": "'3' is a magic number.",
- "project": Object {
+ "project": {
"key": "hotspot-component",
"longName": "Hotspot component long name",
"name": "Hotspot Component",
@@ -565,28 +565,28 @@ exports[`should render correctly: assignee without name 1`] = `
"qualifier": "TRK",
},
"resolution": "FIXED",
- "rule": Object {
+ "rule": {
"key": "squid:S2077",
"name": "That rule",
"securityCategory": "sql-injection",
"vulnerabilityProbability": "HIGH",
},
"status": "REVIEWED",
- "textRange": Object {
+ "textRange": {
"endLine": 142,
"endOffset": 83,
"startLine": 142,
"startOffset": 26,
},
"updateDate": "2013-05-13T17:55:42+0200",
- "users": Array [
- Object {
+ "users": [
+ {
"active": true,
"local": true,
"login": "assignee",
"name": "John Doe",
},
- Object {
+ {
"active": true,
"local": true,
"login": "author",
@@ -600,25 +600,25 @@ exports[`should render correctly: assignee without name 1`] = `
/>
}
hotspot={
- Object {
+ {
"assignee": "assignee",
- "assigneeUser": Object {
+ "assigneeUser": {
"active": true,
"local": true,
"login": "assignee_login",
"name": undefined,
},
"author": "author",
- "authorUser": Object {
+ "authorUser": {
"active": true,
"local": true,
"login": "author",
"name": "John Doe",
},
"canChangeStatus": true,
- "changelog": Array [],
- "comment": Array [],
- "component": Object {
+ "changelog": [],
+ "comment": [],
+ "component": {
"key": "hotspot-component",
"longName": "Hotspot component long name",
"name": "Hotspot Component",
@@ -626,12 +626,12 @@ exports[`should render correctly: assignee without name 1`] = `
"qualifier": "FIL",
},
"creationDate": "2013-05-13T17:55:41+0200",
- "flows": Array [
- Object {
- "locations": Array [
- Object {
+ "flows": [
+ {
+ "locations": [
+ {
"component": "main.js",
- "textRange": Object {
+ "textRange": {
"endLine": 2,
"endOffset": 2,
"startLine": 1,
@@ -644,7 +644,7 @@ exports[`should render correctly: assignee without name 1`] = `
"key": "01fc972e-2a3c-433e-bcae-0bd7f88f5123",
"line": 142,
"message": "'3' is a magic number.",
- "project": Object {
+ "project": {
"key": "hotspot-component",
"longName": "Hotspot component long name",
"name": "Hotspot Component",
@@ -652,28 +652,28 @@ exports[`should render correctly: assignee without name 1`] = `
"qualifier": "TRK",
},
"resolution": "FIXED",
- "rule": Object {
+ "rule": {
"key": "squid:S2077",
"name": "That rule",
"securityCategory": "sql-injection",
"vulnerabilityProbability": "HIGH",
},
"status": "REVIEWED",
- "textRange": Object {
+ "textRange": {
"endLine": 142,
"endOffset": 83,
"startLine": 142,
"startOffset": 26,
},
"updateDate": "2013-05-13T17:55:42+0200",
- "users": Array [
- Object {
+ "users": [
+ {
"active": true,
"local": true,
"login": "assignee",
"name": "John Doe",
},
- Object {
+ {
"active": true,
"local": true,
"login": "author",
@@ -685,38 +685,38 @@ exports[`should render correctly: assignee without name 1`] = `
/>
<HotspotReviewHistoryAndComments
commentTextRef={
- Object {
+ {
"current": null,
}
}
currentUser={
- Object {
- "dismissedNotices": Object {
+ {
+ "dismissedNotices": {
"educationPrinciples": false,
},
"isLoggedIn": false,
}
}
hotspot={
- Object {
+ {
"assignee": "assignee",
- "assigneeUser": Object {
+ "assigneeUser": {
"active": true,
"local": true,
"login": "assignee_login",
"name": undefined,
},
"author": "author",
- "authorUser": Object {
+ "authorUser": {
"active": true,
"local": true,
"login": "author",
"name": "John Doe",
},
"canChangeStatus": true,
- "changelog": Array [],
- "comment": Array [],
- "component": Object {
+ "changelog": [],
+ "comment": [],
+ "component": {
"key": "hotspot-component",
"longName": "Hotspot component long name",
"name": "Hotspot Component",
@@ -724,12 +724,12 @@ exports[`should render correctly: assignee without name 1`] = `
"qualifier": "FIL",
},
"creationDate": "2013-05-13T17:55:41+0200",
- "flows": Array [
- Object {
- "locations": Array [
- Object {
+ "flows": [
+ {
+ "locations": [
+ {
"component": "main.js",
- "textRange": Object {
+ "textRange": {
"endLine": 2,
"endOffset": 2,
"startLine": 1,
@@ -742,7 +742,7 @@ exports[`should render correctly: assignee without name 1`] = `
"key": "01fc972e-2a3c-433e-bcae-0bd7f88f5123",
"line": 142,
"message": "'3' is a magic number.",
- "project": Object {
+ "project": {
"key": "hotspot-component",
"longName": "Hotspot component long name",
"name": "Hotspot Component",
@@ -750,28 +750,28 @@ exports[`should render correctly: assignee without name 1`] = `
"qualifier": "TRK",
},
"resolution": "FIXED",
- "rule": Object {
+ "rule": {
"key": "squid:S2077",
"name": "That rule",
"securityCategory": "sql-injection",
"vulnerabilityProbability": "HIGH",
},
"status": "REVIEWED",
- "textRange": Object {
+ "textRange": {
"endLine": 142,
"endOffset": 83,
"startLine": 142,
"startOffset": 26,
},
"updateDate": "2013-05-13T17:55:42+0200",
- "users": Array [
- Object {
+ "users": [
+ {
"active": true,
"local": true,
"login": "assignee",
"name": "John Doe",
},
- Object {
+ {
"active": true,
"local": true,
"login": "author",
@@ -796,25 +796,25 @@ exports[`should render correctly: default 1`] = `
>
<HotspotHeader
hotspot={
- Object {
+ {
"assignee": "assignee",
- "assigneeUser": Object {
+ "assigneeUser": {
"active": true,
"local": true,
"login": "assignee",
"name": "John Doe",
},
"author": "author",
- "authorUser": Object {
+ "authorUser": {
"active": true,
"local": true,
"login": "author",
"name": "John Doe",
},
"canChangeStatus": true,
- "changelog": Array [],
- "comment": Array [],
- "component": Object {
+ "changelog": [],
+ "comment": [],
+ "component": {
"key": "hotspot-component",
"longName": "Hotspot component long name",
"name": "Hotspot Component",
@@ -822,12 +822,12 @@ exports[`should render correctly: default 1`] = `
"qualifier": "FIL",
},
"creationDate": "2013-05-13T17:55:41+0200",
- "flows": Array [
- Object {
- "locations": Array [
- Object {
+ "flows": [
+ {
+ "locations": [
+ {
"component": "main.js",
- "textRange": Object {
+ "textRange": {
"endLine": 2,
"endOffset": 2,
"startLine": 1,
@@ -840,7 +840,7 @@ exports[`should render correctly: default 1`] = `
"key": "01fc972e-2a3c-433e-bcae-0bd7f88f5123",
"line": 142,
"message": "'3' is a magic number.",
- "project": Object {
+ "project": {
"key": "hotspot-component",
"longName": "Hotspot component long name",
"name": "Hotspot Component",
@@ -848,28 +848,28 @@ exports[`should render correctly: default 1`] = `
"qualifier": "TRK",
},
"resolution": "FIXED",
- "rule": Object {
+ "rule": {
"key": "squid:S2077",
"name": "That rule",
"securityCategory": "sql-injection",
"vulnerabilityProbability": "HIGH",
},
"status": "REVIEWED",
- "textRange": Object {
+ "textRange": {
"endLine": 142,
"endOffset": 83,
"startLine": 142,
"startOffset": 26,
},
"updateDate": "2013-05-13T17:55:42+0200",
- "users": Array [
- Object {
+ "users": [
+ {
"active": true,
"local": true,
"login": "assignee",
"name": "John Doe",
},
- Object {
+ {
"active": true,
"local": true,
"login": "author",
@@ -884,47 +884,47 @@ exports[`should render correctly: default 1`] = `
codeTabContent={
<HotspotSnippetContainer
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "TRK",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
hotspot={
- Object {
+ {
"assignee": "assignee",
- "assigneeUser": Object {
+ "assigneeUser": {
"active": true,
"local": true,
"login": "assignee",
"name": "John Doe",
},
"author": "author",
- "authorUser": Object {
+ "authorUser": {
"active": true,
"local": true,
"login": "author",
"name": "John Doe",
},
"canChangeStatus": true,
- "changelog": Array [],
- "comment": Array [],
- "component": Object {
+ "changelog": [],
+ "comment": [],
+ "component": {
"key": "hotspot-component",
"longName": "Hotspot component long name",
"name": "Hotspot Component",
@@ -932,12 +932,12 @@ exports[`should render correctly: default 1`] = `
"qualifier": "FIL",
},
"creationDate": "2013-05-13T17:55:41+0200",
- "flows": Array [
- Object {
- "locations": Array [
- Object {
+ "flows": [
+ {
+ "locations": [
+ {
"component": "main.js",
- "textRange": Object {
+ "textRange": {
"endLine": 2,
"endOffset": 2,
"startLine": 1,
@@ -950,7 +950,7 @@ exports[`should render correctly: default 1`] = `
"key": "01fc972e-2a3c-433e-bcae-0bd7f88f5123",
"line": 142,
"message": "'3' is a magic number.",
- "project": Object {
+ "project": {
"key": "hotspot-component",
"longName": "Hotspot component long name",
"name": "Hotspot Component",
@@ -958,28 +958,28 @@ exports[`should render correctly: default 1`] = `
"qualifier": "TRK",
},
"resolution": "FIXED",
- "rule": Object {
+ "rule": {
"key": "squid:S2077",
"name": "That rule",
"securityCategory": "sql-injection",
"vulnerabilityProbability": "HIGH",
},
"status": "REVIEWED",
- "textRange": Object {
+ "textRange": {
"endLine": 142,
"endOffset": 83,
"startLine": 142,
"startOffset": 26,
},
"updateDate": "2013-05-13T17:55:42+0200",
- "users": Array [
- Object {
+ "users": [
+ {
"active": true,
"local": true,
"login": "assignee",
"name": "John Doe",
},
- Object {
+ {
"active": true,
"local": true,
"login": "author",
@@ -993,25 +993,25 @@ exports[`should render correctly: default 1`] = `
/>
}
hotspot={
- Object {
+ {
"assignee": "assignee",
- "assigneeUser": Object {
+ "assigneeUser": {
"active": true,
"local": true,
"login": "assignee",
"name": "John Doe",
},
"author": "author",
- "authorUser": Object {
+ "authorUser": {
"active": true,
"local": true,
"login": "author",
"name": "John Doe",
},
"canChangeStatus": true,
- "changelog": Array [],
- "comment": Array [],
- "component": Object {
+ "changelog": [],
+ "comment": [],
+ "component": {
"key": "hotspot-component",
"longName": "Hotspot component long name",
"name": "Hotspot Component",
@@ -1019,12 +1019,12 @@ exports[`should render correctly: default 1`] = `
"qualifier": "FIL",
},
"creationDate": "2013-05-13T17:55:41+0200",
- "flows": Array [
- Object {
- "locations": Array [
- Object {
+ "flows": [
+ {
+ "locations": [
+ {
"component": "main.js",
- "textRange": Object {
+ "textRange": {
"endLine": 2,
"endOffset": 2,
"startLine": 1,
@@ -1037,7 +1037,7 @@ exports[`should render correctly: default 1`] = `
"key": "01fc972e-2a3c-433e-bcae-0bd7f88f5123",
"line": 142,
"message": "'3' is a magic number.",
- "project": Object {
+ "project": {
"key": "hotspot-component",
"longName": "Hotspot component long name",
"name": "Hotspot Component",
@@ -1045,28 +1045,28 @@ exports[`should render correctly: default 1`] = `
"qualifier": "TRK",
},
"resolution": "FIXED",
- "rule": Object {
+ "rule": {
"key": "squid:S2077",
"name": "That rule",
"securityCategory": "sql-injection",
"vulnerabilityProbability": "HIGH",
},
"status": "REVIEWED",
- "textRange": Object {
+ "textRange": {
"endLine": 142,
"endOffset": 83,
"startLine": 142,
"startOffset": 26,
},
"updateDate": "2013-05-13T17:55:42+0200",
- "users": Array [
- Object {
+ "users": [
+ {
"active": true,
"local": true,
"login": "assignee",
"name": "John Doe",
},
- Object {
+ {
"active": true,
"local": true,
"login": "author",
@@ -1078,38 +1078,38 @@ exports[`should render correctly: default 1`] = `
/>
<HotspotReviewHistoryAndComments
commentTextRef={
- Object {
+ {
"current": null,
}
}
currentUser={
- Object {
- "dismissedNotices": Object {
+ {
+ "dismissedNotices": {
"educationPrinciples": false,
},
"isLoggedIn": false,
}
}
hotspot={
- Object {
+ {
"assignee": "assignee",
- "assigneeUser": Object {
+ "assigneeUser": {
"active": true,
"local": true,
"login": "assignee",
"name": "John Doe",
},
"author": "author",
- "authorUser": Object {
+ "authorUser": {
"active": true,
"local": true,
"login": "author",
"name": "John Doe",
},
"canChangeStatus": true,
- "changelog": Array [],
- "comment": Array [],
- "component": Object {
+ "changelog": [],
+ "comment": [],
+ "component": {
"key": "hotspot-component",
"longName": "Hotspot component long name",
"name": "Hotspot Component",
@@ -1117,12 +1117,12 @@ exports[`should render correctly: default 1`] = `
"qualifier": "FIL",
},
"creationDate": "2013-05-13T17:55:41+0200",
- "flows": Array [
- Object {
- "locations": Array [
- Object {
+ "flows": [
+ {
+ "locations": [
+ {
"component": "main.js",
- "textRange": Object {
+ "textRange": {
"endLine": 2,
"endOffset": 2,
"startLine": 1,
@@ -1135,7 +1135,7 @@ exports[`should render correctly: default 1`] = `
"key": "01fc972e-2a3c-433e-bcae-0bd7f88f5123",
"line": 142,
"message": "'3' is a magic number.",
- "project": Object {
+ "project": {
"key": "hotspot-component",
"longName": "Hotspot component long name",
"name": "Hotspot Component",
@@ -1143,28 +1143,28 @@ exports[`should render correctly: default 1`] = `
"qualifier": "TRK",
},
"resolution": "FIXED",
- "rule": Object {
+ "rule": {
"key": "squid:S2077",
"name": "That rule",
"securityCategory": "sql-injection",
"vulnerabilityProbability": "HIGH",
},
"status": "REVIEWED",
- "textRange": Object {
+ "textRange": {
"endLine": 142,
"endOffset": 83,
"startLine": 142,
"startOffset": 26,
},
"updateDate": "2013-05-13T17:55:42+0200",
- "users": Array [
- Object {
+ "users": [
+ {
"active": true,
"local": true,
"login": "assignee",
"name": "John Doe",
},
- Object {
+ {
"active": true,
"local": true,
"login": "author",
@@ -1189,25 +1189,25 @@ exports[`should render correctly: deleted assignee 1`] = `
>
<HotspotHeader
hotspot={
- Object {
+ {
"assignee": "assignee",
- "assigneeUser": Object {
+ "assigneeUser": {
"active": false,
"local": true,
"login": "john.doe",
"name": "John Doe",
},
"author": "author",
- "authorUser": Object {
+ "authorUser": {
"active": true,
"local": true,
"login": "author",
"name": "John Doe",
},
"canChangeStatus": true,
- "changelog": Array [],
- "comment": Array [],
- "component": Object {
+ "changelog": [],
+ "comment": [],
+ "component": {
"key": "hotspot-component",
"longName": "Hotspot component long name",
"name": "Hotspot Component",
@@ -1215,12 +1215,12 @@ exports[`should render correctly: deleted assignee 1`] = `
"qualifier": "FIL",
},
"creationDate": "2013-05-13T17:55:41+0200",
- "flows": Array [
- Object {
- "locations": Array [
- Object {
+ "flows": [
+ {
+ "locations": [
+ {
"component": "main.js",
- "textRange": Object {
+ "textRange": {
"endLine": 2,
"endOffset": 2,
"startLine": 1,
@@ -1233,7 +1233,7 @@ exports[`should render correctly: deleted assignee 1`] = `
"key": "01fc972e-2a3c-433e-bcae-0bd7f88f5123",
"line": 142,
"message": "'3' is a magic number.",
- "project": Object {
+ "project": {
"key": "hotspot-component",
"longName": "Hotspot component long name",
"name": "Hotspot Component",
@@ -1241,28 +1241,28 @@ exports[`should render correctly: deleted assignee 1`] = `
"qualifier": "TRK",
},
"resolution": "FIXED",
- "rule": Object {
+ "rule": {
"key": "squid:S2077",
"name": "That rule",
"securityCategory": "sql-injection",
"vulnerabilityProbability": "HIGH",
},
"status": "REVIEWED",
- "textRange": Object {
+ "textRange": {
"endLine": 142,
"endOffset": 83,
"startLine": 142,
"startOffset": 26,
},
"updateDate": "2013-05-13T17:55:42+0200",
- "users": Array [
- Object {
+ "users": [
+ {
"active": true,
"local": true,
"login": "assignee",
"name": "John Doe",
},
- Object {
+ {
"active": true,
"local": true,
"login": "author",
@@ -1277,47 +1277,47 @@ exports[`should render correctly: deleted assignee 1`] = `
codeTabContent={
<HotspotSnippetContainer
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "TRK",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
hotspot={
- Object {
+ {
"assignee": "assignee",
- "assigneeUser": Object {
+ "assigneeUser": {
"active": false,
"local": true,
"login": "john.doe",
"name": "John Doe",
},
"author": "author",
- "authorUser": Object {
+ "authorUser": {
"active": true,
"local": true,
"login": "author",
"name": "John Doe",
},
"canChangeStatus": true,
- "changelog": Array [],
- "comment": Array [],
- "component": Object {
+ "changelog": [],
+ "comment": [],
+ "component": {
"key": "hotspot-component",
"longName": "Hotspot component long name",
"name": "Hotspot Component",
@@ -1325,12 +1325,12 @@ exports[`should render correctly: deleted assignee 1`] = `
"qualifier": "FIL",
},
"creationDate": "2013-05-13T17:55:41+0200",
- "flows": Array [
- Object {
- "locations": Array [
- Object {
+ "flows": [
+ {
+ "locations": [
+ {
"component": "main.js",
- "textRange": Object {
+ "textRange": {
"endLine": 2,
"endOffset": 2,
"startLine": 1,
@@ -1343,7 +1343,7 @@ exports[`should render correctly: deleted assignee 1`] = `
"key": "01fc972e-2a3c-433e-bcae-0bd7f88f5123",
"line": 142,
"message": "'3' is a magic number.",
- "project": Object {
+ "project": {
"key": "hotspot-component",
"longName": "Hotspot component long name",
"name": "Hotspot Component",
@@ -1351,28 +1351,28 @@ exports[`should render correctly: deleted assignee 1`] = `
"qualifier": "TRK",
},
"resolution": "FIXED",
- "rule": Object {
+ "rule": {
"key": "squid:S2077",
"name": "That rule",
"securityCategory": "sql-injection",
"vulnerabilityProbability": "HIGH",
},
"status": "REVIEWED",
- "textRange": Object {
+ "textRange": {
"endLine": 142,
"endOffset": 83,
"startLine": 142,
"startOffset": 26,
},
"updateDate": "2013-05-13T17:55:42+0200",
- "users": Array [
- Object {
+ "users": [
+ {
"active": true,
"local": true,
"login": "assignee",
"name": "John Doe",
},
- Object {
+ {
"active": true,
"local": true,
"login": "author",
@@ -1386,25 +1386,25 @@ exports[`should render correctly: deleted assignee 1`] = `
/>
}
hotspot={
- Object {
+ {
"assignee": "assignee",
- "assigneeUser": Object {
+ "assigneeUser": {
"active": false,
"local": true,
"login": "john.doe",
"name": "John Doe",
},
"author": "author",
- "authorUser": Object {
+ "authorUser": {
"active": true,
"local": true,
"login": "author",
"name": "John Doe",
},
"canChangeStatus": true,
- "changelog": Array [],
- "comment": Array [],
- "component": Object {
+ "changelog": [],
+ "comment": [],
+ "component": {
"key": "hotspot-component",
"longName": "Hotspot component long name",
"name": "Hotspot Component",
@@ -1412,12 +1412,12 @@ exports[`should render correctly: deleted assignee 1`] = `
"qualifier": "FIL",
},
"creationDate": "2013-05-13T17:55:41+0200",
- "flows": Array [
- Object {
- "locations": Array [
- Object {
+ "flows": [
+ {
+ "locations": [
+ {
"component": "main.js",
- "textRange": Object {
+ "textRange": {
"endLine": 2,
"endOffset": 2,
"startLine": 1,
@@ -1430,7 +1430,7 @@ exports[`should render correctly: deleted assignee 1`] = `
"key": "01fc972e-2a3c-433e-bcae-0bd7f88f5123",
"line": 142,
"message": "'3' is a magic number.",
- "project": Object {
+ "project": {
"key": "hotspot-component",
"longName": "Hotspot component long name",
"name": "Hotspot Component",
@@ -1438,28 +1438,28 @@ exports[`should render correctly: deleted assignee 1`] = `
"qualifier": "TRK",
},
"resolution": "FIXED",
- "rule": Object {
+ "rule": {
"key": "squid:S2077",
"name": "That rule",
"securityCategory": "sql-injection",
"vulnerabilityProbability": "HIGH",
},
"status": "REVIEWED",
- "textRange": Object {
+ "textRange": {
"endLine": 142,
"endOffset": 83,
"startLine": 142,
"startOffset": 26,
},
"updateDate": "2013-05-13T17:55:42+0200",
- "users": Array [
- Object {
+ "users": [
+ {
"active": true,
"local": true,
"login": "assignee",
"name": "John Doe",
},
- Object {
+ {
"active": true,
"local": true,
"login": "author",
@@ -1471,38 +1471,38 @@ exports[`should render correctly: deleted assignee 1`] = `
/>
<HotspotReviewHistoryAndComments
commentTextRef={
- Object {
+ {
"current": null,
}
}
currentUser={
- Object {
- "dismissedNotices": Object {
+ {
+ "dismissedNotices": {
"educationPrinciples": false,
},
"isLoggedIn": false,
}
}
hotspot={
- Object {
+ {
"assignee": "assignee",
- "assigneeUser": Object {
+ "assigneeUser": {
"active": false,
"local": true,
"login": "john.doe",
"name": "John Doe",
},
"author": "author",
- "authorUser": Object {
+ "authorUser": {
"active": true,
"local": true,
"login": "author",
"name": "John Doe",
},
"canChangeStatus": true,
- "changelog": Array [],
- "comment": Array [],
- "component": Object {
+ "changelog": [],
+ "comment": [],
+ "component": {
"key": "hotspot-component",
"longName": "Hotspot component long name",
"name": "Hotspot Component",
@@ -1510,12 +1510,12 @@ exports[`should render correctly: deleted assignee 1`] = `
"qualifier": "FIL",
},
"creationDate": "2013-05-13T17:55:41+0200",
- "flows": Array [
- Object {
- "locations": Array [
- Object {
+ "flows": [
+ {
+ "locations": [
+ {
"component": "main.js",
- "textRange": Object {
+ "textRange": {
"endLine": 2,
"endOffset": 2,
"startLine": 1,
@@ -1528,7 +1528,7 @@ exports[`should render correctly: deleted assignee 1`] = `
"key": "01fc972e-2a3c-433e-bcae-0bd7f88f5123",
"line": 142,
"message": "'3' is a magic number.",
- "project": Object {
+ "project": {
"key": "hotspot-component",
"longName": "Hotspot component long name",
"name": "Hotspot Component",
@@ -1536,28 +1536,28 @@ exports[`should render correctly: deleted assignee 1`] = `
"qualifier": "TRK",
},
"resolution": "FIXED",
- "rule": Object {
+ "rule": {
"key": "squid:S2077",
"name": "That rule",
"securityCategory": "sql-injection",
"vulnerabilityProbability": "HIGH",
},
"status": "REVIEWED",
- "textRange": Object {
+ "textRange": {
"endLine": 142,
"endOffset": 83,
"startLine": 142,
"startOffset": 26,
},
"updateDate": "2013-05-13T17:55:42+0200",
- "users": Array [
- Object {
+ "users": [
+ {
"active": true,
"local": true,
"login": "assignee",
"name": "John Doe",
},
- Object {
+ {
"active": true,
"local": true,
"login": "author",
@@ -1595,25 +1595,25 @@ exports[`should render correctly: show success modal 1`] = `
>
<HotspotHeader
hotspot={
- Object {
+ {
"assignee": "assignee",
- "assigneeUser": Object {
+ "assigneeUser": {
"active": true,
"local": true,
"login": "assignee",
"name": "John Doe",
},
"author": "author",
- "authorUser": Object {
+ "authorUser": {
"active": true,
"local": true,
"login": "author",
"name": "John Doe",
},
"canChangeStatus": true,
- "changelog": Array [],
- "comment": Array [],
- "component": Object {
+ "changelog": [],
+ "comment": [],
+ "component": {
"key": "hotspot-component",
"longName": "Hotspot component long name",
"name": "Hotspot Component",
@@ -1621,12 +1621,12 @@ exports[`should render correctly: show success modal 1`] = `
"qualifier": "FIL",
},
"creationDate": "2013-05-13T17:55:41+0200",
- "flows": Array [
- Object {
- "locations": Array [
- Object {
+ "flows": [
+ {
+ "locations": [
+ {
"component": "main.js",
- "textRange": Object {
+ "textRange": {
"endLine": 2,
"endOffset": 2,
"startLine": 1,
@@ -1639,7 +1639,7 @@ exports[`should render correctly: show success modal 1`] = `
"key": "01fc972e-2a3c-433e-bcae-0bd7f88f5123",
"line": 142,
"message": "'3' is a magic number.",
- "project": Object {
+ "project": {
"key": "hotspot-component",
"longName": "Hotspot component long name",
"name": "Hotspot Component",
@@ -1647,28 +1647,28 @@ exports[`should render correctly: show success modal 1`] = `
"qualifier": "TRK",
},
"resolution": "FIXED",
- "rule": Object {
+ "rule": {
"key": "squid:S2077",
"name": "That rule",
"securityCategory": "sql-injection",
"vulnerabilityProbability": "HIGH",
},
"status": "REVIEWED",
- "textRange": Object {
+ "textRange": {
"endLine": 142,
"endOffset": 83,
"startLine": 142,
"startOffset": 26,
},
"updateDate": "2013-05-13T17:55:42+0200",
- "users": Array [
- Object {
+ "users": [
+ {
"active": true,
"local": true,
"login": "assignee",
"name": "John Doe",
},
- Object {
+ {
"active": true,
"local": true,
"login": "author",
@@ -1683,47 +1683,47 @@ exports[`should render correctly: show success modal 1`] = `
codeTabContent={
<HotspotSnippetContainer
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "TRK",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
hotspot={
- Object {
+ {
"assignee": "assignee",
- "assigneeUser": Object {
+ "assigneeUser": {
"active": true,
"local": true,
"login": "assignee",
"name": "John Doe",
},
"author": "author",
- "authorUser": Object {
+ "authorUser": {
"active": true,
"local": true,
"login": "author",
"name": "John Doe",
},
"canChangeStatus": true,
- "changelog": Array [],
- "comment": Array [],
- "component": Object {
+ "changelog": [],
+ "comment": [],
+ "component": {
"key": "hotspot-component",
"longName": "Hotspot component long name",
"name": "Hotspot Component",
@@ -1731,12 +1731,12 @@ exports[`should render correctly: show success modal 1`] = `
"qualifier": "FIL",
},
"creationDate": "2013-05-13T17:55:41+0200",
- "flows": Array [
- Object {
- "locations": Array [
- Object {
+ "flows": [
+ {
+ "locations": [
+ {
"component": "main.js",
- "textRange": Object {
+ "textRange": {
"endLine": 2,
"endOffset": 2,
"startLine": 1,
@@ -1749,7 +1749,7 @@ exports[`should render correctly: show success modal 1`] = `
"key": "01fc972e-2a3c-433e-bcae-0bd7f88f5123",
"line": 142,
"message": "'3' is a magic number.",
- "project": Object {
+ "project": {
"key": "hotspot-component",
"longName": "Hotspot component long name",
"name": "Hotspot Component",
@@ -1757,28 +1757,28 @@ exports[`should render correctly: show success modal 1`] = `
"qualifier": "TRK",
},
"resolution": "FIXED",
- "rule": Object {
+ "rule": {
"key": "squid:S2077",
"name": "That rule",
"securityCategory": "sql-injection",
"vulnerabilityProbability": "HIGH",
},
"status": "REVIEWED",
- "textRange": Object {
+ "textRange": {
"endLine": 142,
"endOffset": 83,
"startLine": 142,
"startOffset": 26,
},
"updateDate": "2013-05-13T17:55:42+0200",
- "users": Array [
- Object {
+ "users": [
+ {
"active": true,
"local": true,
"login": "assignee",
"name": "John Doe",
},
- Object {
+ {
"active": true,
"local": true,
"login": "author",
@@ -1792,25 +1792,25 @@ exports[`should render correctly: show success modal 1`] = `
/>
}
hotspot={
- Object {
+ {
"assignee": "assignee",
- "assigneeUser": Object {
+ "assigneeUser": {
"active": true,
"local": true,
"login": "assignee",
"name": "John Doe",
},
"author": "author",
- "authorUser": Object {
+ "authorUser": {
"active": true,
"local": true,
"login": "author",
"name": "John Doe",
},
"canChangeStatus": true,
- "changelog": Array [],
- "comment": Array [],
- "component": Object {
+ "changelog": [],
+ "comment": [],
+ "component": {
"key": "hotspot-component",
"longName": "Hotspot component long name",
"name": "Hotspot Component",
@@ -1818,12 +1818,12 @@ exports[`should render correctly: show success modal 1`] = `
"qualifier": "FIL",
},
"creationDate": "2013-05-13T17:55:41+0200",
- "flows": Array [
- Object {
- "locations": Array [
- Object {
+ "flows": [
+ {
+ "locations": [
+ {
"component": "main.js",
- "textRange": Object {
+ "textRange": {
"endLine": 2,
"endOffset": 2,
"startLine": 1,
@@ -1836,7 +1836,7 @@ exports[`should render correctly: show success modal 1`] = `
"key": "01fc972e-2a3c-433e-bcae-0bd7f88f5123",
"line": 142,
"message": "'3' is a magic number.",
- "project": Object {
+ "project": {
"key": "hotspot-component",
"longName": "Hotspot component long name",
"name": "Hotspot Component",
@@ -1844,28 +1844,28 @@ exports[`should render correctly: show success modal 1`] = `
"qualifier": "TRK",
},
"resolution": "FIXED",
- "rule": Object {
+ "rule": {
"key": "squid:S2077",
"name": "That rule",
"securityCategory": "sql-injection",
"vulnerabilityProbability": "HIGH",
},
"status": "REVIEWED",
- "textRange": Object {
+ "textRange": {
"endLine": 142,
"endOffset": 83,
"startLine": 142,
"startOffset": 26,
},
"updateDate": "2013-05-13T17:55:42+0200",
- "users": Array [
- Object {
+ "users": [
+ {
"active": true,
"local": true,
"login": "assignee",
"name": "John Doe",
},
- Object {
+ {
"active": true,
"local": true,
"login": "author",
@@ -1877,38 +1877,38 @@ exports[`should render correctly: show success modal 1`] = `
/>
<HotspotReviewHistoryAndComments
commentTextRef={
- Object {
+ {
"current": null,
}
}
currentUser={
- Object {
- "dismissedNotices": Object {
+ {
+ "dismissedNotices": {
"educationPrinciples": false,
},
"isLoggedIn": false,
}
}
hotspot={
- Object {
+ {
"assignee": "assignee",
- "assigneeUser": Object {
+ "assigneeUser": {
"active": true,
"local": true,
"login": "assignee",
"name": "John Doe",
},
"author": "author",
- "authorUser": Object {
+ "authorUser": {
"active": true,
"local": true,
"login": "author",
"name": "John Doe",
},
"canChangeStatus": true,
- "changelog": Array [],
- "comment": Array [],
- "component": Object {
+ "changelog": [],
+ "comment": [],
+ "component": {
"key": "hotspot-component",
"longName": "Hotspot component long name",
"name": "Hotspot Component",
@@ -1916,12 +1916,12 @@ exports[`should render correctly: show success modal 1`] = `
"qualifier": "FIL",
},
"creationDate": "2013-05-13T17:55:41+0200",
- "flows": Array [
- Object {
- "locations": Array [
- Object {
+ "flows": [
+ {
+ "locations": [
+ {
"component": "main.js",
- "textRange": Object {
+ "textRange": {
"endLine": 2,
"endOffset": 2,
"startLine": 1,
@@ -1934,7 +1934,7 @@ exports[`should render correctly: show success modal 1`] = `
"key": "01fc972e-2a3c-433e-bcae-0bd7f88f5123",
"line": 142,
"message": "'3' is a magic number.",
- "project": Object {
+ "project": {
"key": "hotspot-component",
"longName": "Hotspot component long name",
"name": "Hotspot Component",
@@ -1942,28 +1942,28 @@ exports[`should render correctly: show success modal 1`] = `
"qualifier": "TRK",
},
"resolution": "FIXED",
- "rule": Object {
+ "rule": {
"key": "squid:S2077",
"name": "That rule",
"securityCategory": "sql-injection",
"vulnerabilityProbability": "HIGH",
},
"status": "REVIEWED",
- "textRange": Object {
+ "textRange": {
"endLine": 142,
"endOffset": 83,
"startLine": 142,
"startOffset": 26,
},
"updateDate": "2013-05-13T17:55:42+0200",
- "users": Array [
- Object {
+ "users": [
+ {
"active": true,
"local": true,
"login": "assignee",
"name": "John Doe",
},
- Object {
+ {
"active": true,
"local": true,
"login": "author",
@@ -1988,25 +1988,25 @@ exports[`should render correctly: unassigned 1`] = `
>
<HotspotHeader
hotspot={
- Object {
+ {
"assignee": undefined,
- "assigneeUser": Object {
+ "assigneeUser": {
"active": true,
"local": true,
"login": "assignee",
"name": "John Doe",
},
"author": "author",
- "authorUser": Object {
+ "authorUser": {
"active": true,
"local": true,
"login": "author",
"name": "John Doe",
},
"canChangeStatus": true,
- "changelog": Array [],
- "comment": Array [],
- "component": Object {
+ "changelog": [],
+ "comment": [],
+ "component": {
"key": "hotspot-component",
"longName": "Hotspot component long name",
"name": "Hotspot Component",
@@ -2014,12 +2014,12 @@ exports[`should render correctly: unassigned 1`] = `
"qualifier": "FIL",
},
"creationDate": "2013-05-13T17:55:41+0200",
- "flows": Array [
- Object {
- "locations": Array [
- Object {
+ "flows": [
+ {
+ "locations": [
+ {
"component": "main.js",
- "textRange": Object {
+ "textRange": {
"endLine": 2,
"endOffset": 2,
"startLine": 1,
@@ -2032,7 +2032,7 @@ exports[`should render correctly: unassigned 1`] = `
"key": "01fc972e-2a3c-433e-bcae-0bd7f88f5123",
"line": 142,
"message": "'3' is a magic number.",
- "project": Object {
+ "project": {
"key": "hotspot-component",
"longName": "Hotspot component long name",
"name": "Hotspot Component",
@@ -2040,28 +2040,28 @@ exports[`should render correctly: unassigned 1`] = `
"qualifier": "TRK",
},
"resolution": "FIXED",
- "rule": Object {
+ "rule": {
"key": "squid:S2077",
"name": "That rule",
"securityCategory": "sql-injection",
"vulnerabilityProbability": "HIGH",
},
"status": "REVIEWED",
- "textRange": Object {
+ "textRange": {
"endLine": 142,
"endOffset": 83,
"startLine": 142,
"startOffset": 26,
},
"updateDate": "2013-05-13T17:55:42+0200",
- "users": Array [
- Object {
+ "users": [
+ {
"active": true,
"local": true,
"login": "assignee",
"name": "John Doe",
},
- Object {
+ {
"active": true,
"local": true,
"login": "author",
@@ -2076,47 +2076,47 @@ exports[`should render correctly: unassigned 1`] = `
codeTabContent={
<HotspotSnippetContainer
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "TRK",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
hotspot={
- Object {
+ {
"assignee": undefined,
- "assigneeUser": Object {
+ "assigneeUser": {
"active": true,
"local": true,
"login": "assignee",
"name": "John Doe",
},
"author": "author",
- "authorUser": Object {
+ "authorUser": {
"active": true,
"local": true,
"login": "author",
"name": "John Doe",
},
"canChangeStatus": true,
- "changelog": Array [],
- "comment": Array [],
- "component": Object {
+ "changelog": [],
+ "comment": [],
+ "component": {
"key": "hotspot-component",
"longName": "Hotspot component long name",
"name": "Hotspot Component",
@@ -2124,12 +2124,12 @@ exports[`should render correctly: unassigned 1`] = `
"qualifier": "FIL",
},
"creationDate": "2013-05-13T17:55:41+0200",
- "flows": Array [
- Object {
- "locations": Array [
- Object {
+ "flows": [
+ {
+ "locations": [
+ {
"component": "main.js",
- "textRange": Object {
+ "textRange": {
"endLine": 2,
"endOffset": 2,
"startLine": 1,
@@ -2142,7 +2142,7 @@ exports[`should render correctly: unassigned 1`] = `
"key": "01fc972e-2a3c-433e-bcae-0bd7f88f5123",
"line": 142,
"message": "'3' is a magic number.",
- "project": Object {
+ "project": {
"key": "hotspot-component",
"longName": "Hotspot component long name",
"name": "Hotspot Component",
@@ -2150,28 +2150,28 @@ exports[`should render correctly: unassigned 1`] = `
"qualifier": "TRK",
},
"resolution": "FIXED",
- "rule": Object {
+ "rule": {
"key": "squid:S2077",
"name": "That rule",
"securityCategory": "sql-injection",
"vulnerabilityProbability": "HIGH",
},
"status": "REVIEWED",
- "textRange": Object {
+ "textRange": {
"endLine": 142,
"endOffset": 83,
"startLine": 142,
"startOffset": 26,
},
"updateDate": "2013-05-13T17:55:42+0200",
- "users": Array [
- Object {
+ "users": [
+ {
"active": true,
"local": true,
"login": "assignee",
"name": "John Doe",
},
- Object {
+ {
"active": true,
"local": true,
"login": "author",
@@ -2185,25 +2185,25 @@ exports[`should render correctly: unassigned 1`] = `
/>
}
hotspot={
- Object {
+ {
"assignee": undefined,
- "assigneeUser": Object {
+ "assigneeUser": {
"active": true,
"local": true,
"login": "assignee",
"name": "John Doe",
},
"author": "author",
- "authorUser": Object {
+ "authorUser": {
"active": true,
"local": true,
"login": "author",
"name": "John Doe",
},
"canChangeStatus": true,
- "changelog": Array [],
- "comment": Array [],
- "component": Object {
+ "changelog": [],
+ "comment": [],
+ "component": {
"key": "hotspot-component",
"longName": "Hotspot component long name",
"name": "Hotspot Component",
@@ -2211,12 +2211,12 @@ exports[`should render correctly: unassigned 1`] = `
"qualifier": "FIL",
},
"creationDate": "2013-05-13T17:55:41+0200",
- "flows": Array [
- Object {
- "locations": Array [
- Object {
+ "flows": [
+ {
+ "locations": [
+ {
"component": "main.js",
- "textRange": Object {
+ "textRange": {
"endLine": 2,
"endOffset": 2,
"startLine": 1,
@@ -2229,7 +2229,7 @@ exports[`should render correctly: unassigned 1`] = `
"key": "01fc972e-2a3c-433e-bcae-0bd7f88f5123",
"line": 142,
"message": "'3' is a magic number.",
- "project": Object {
+ "project": {
"key": "hotspot-component",
"longName": "Hotspot component long name",
"name": "Hotspot Component",
@@ -2237,28 +2237,28 @@ exports[`should render correctly: unassigned 1`] = `
"qualifier": "TRK",
},
"resolution": "FIXED",
- "rule": Object {
+ "rule": {
"key": "squid:S2077",
"name": "That rule",
"securityCategory": "sql-injection",
"vulnerabilityProbability": "HIGH",
},
"status": "REVIEWED",
- "textRange": Object {
+ "textRange": {
"endLine": 142,
"endOffset": 83,
"startLine": 142,
"startOffset": 26,
},
"updateDate": "2013-05-13T17:55:42+0200",
- "users": Array [
- Object {
+ "users": [
+ {
"active": true,
"local": true,
"login": "assignee",
"name": "John Doe",
},
- Object {
+ {
"active": true,
"local": true,
"login": "author",
@@ -2270,38 +2270,38 @@ exports[`should render correctly: unassigned 1`] = `
/>
<HotspotReviewHistoryAndComments
commentTextRef={
- Object {
+ {
"current": null,
}
}
currentUser={
- Object {
- "dismissedNotices": Object {
+ {
+ "dismissedNotices": {
"educationPrinciples": false,
},
"isLoggedIn": false,
}
}
hotspot={
- Object {
+ {
"assignee": undefined,
- "assigneeUser": Object {
+ "assigneeUser": {
"active": true,
"local": true,
"login": "assignee",
"name": "John Doe",
},
"author": "author",
- "authorUser": Object {
+ "authorUser": {
"active": true,
"local": true,
"login": "author",
"name": "John Doe",
},
"canChangeStatus": true,
- "changelog": Array [],
- "comment": Array [],
- "component": Object {
+ "changelog": [],
+ "comment": [],
+ "component": {
"key": "hotspot-component",
"longName": "Hotspot component long name",
"name": "Hotspot Component",
@@ -2309,12 +2309,12 @@ exports[`should render correctly: unassigned 1`] = `
"qualifier": "FIL",
},
"creationDate": "2013-05-13T17:55:41+0200",
- "flows": Array [
- Object {
- "locations": Array [
- Object {
+ "flows": [
+ {
+ "locations": [
+ {
"component": "main.js",
- "textRange": Object {
+ "textRange": {
"endLine": 2,
"endOffset": 2,
"startLine": 1,
@@ -2327,7 +2327,7 @@ exports[`should render correctly: unassigned 1`] = `
"key": "01fc972e-2a3c-433e-bcae-0bd7f88f5123",
"line": 142,
"message": "'3' is a magic number.",
- "project": Object {
+ "project": {
"key": "hotspot-component",
"longName": "Hotspot component long name",
"name": "Hotspot Component",
@@ -2335,28 +2335,28 @@ exports[`should render correctly: unassigned 1`] = `
"qualifier": "TRK",
},
"resolution": "FIXED",
- "rule": Object {
+ "rule": {
"key": "squid:S2077",
"name": "That rule",
"securityCategory": "sql-injection",
"vulnerabilityProbability": "HIGH",
},
"status": "REVIEWED",
- "textRange": Object {
+ "textRange": {
"endLine": 142,
"endOffset": 83,
"startLine": 142,
"startOffset": 26,
},
"updateDate": "2013-05-13T17:55:42+0200",
- "users": Array [
- Object {
+ "users": [
+ {
"active": true,
"local": true,
"login": "assignee",
"name": "John Doe",
},
- Object {
+ {
"active": true,
"local": true,
"login": "author",
diff --git a/server/sonar-web/src/main/js/apps/security-hotspots/components/__tests__/__snapshots__/HotspotViewerTabs-test.tsx.snap b/server/sonar-web/src/main/js/apps/security-hotspots/components/__tests__/__snapshots__/HotspotViewerTabs-test.tsx.snap
index 8f26bcf4641..3594e0207b1 100644
--- a/server/sonar-web/src/main/js/apps/security-hotspots/components/__tests__/__snapshots__/HotspotViewerTabs-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/security-hotspots/components/__tests__/__snapshots__/HotspotViewerTabs-test.tsx.snap
@@ -6,8 +6,8 @@ exports[`should render correctly: fix 1`] = `
onSelect={[Function]}
selected="fix"
tabs={
- Array [
- Object {
+ [
+ {
"content": <div
className="padded"
>
@@ -18,13 +18,13 @@ exports[`should render correctly: fix 1`] = `
"key": "code",
"label": "hotspots.tabs.code",
},
- Object {
+ {
"content": <RuleDescription
className="big-padded"
isDefault={true}
sections={
- Array [
- Object {
+ [
+ {
"content": "cause",
"key": "root_cause",
},
@@ -34,13 +34,13 @@ exports[`should render correctly: fix 1`] = `
"key": "risk",
"label": "hotspots.tabs.risk_description",
},
- Object {
+ {
"content": <RuleDescription
className="big-padded"
isDefault={true}
sections={
- Array [
- Object {
+ [
+ {
"content": "assess",
"key": "assess_the_problem",
},
@@ -50,13 +50,13 @@ exports[`should render correctly: fix 1`] = `
"key": "vulnerability",
"label": "hotspots.tabs.vulnerability_description",
},
- Object {
+ {
"content": <RuleDescription
className="big-padded"
isDefault={true}
sections={
- Array [
- Object {
+ [
+ {
"content": "how",
"key": "how_to_fix",
},
@@ -79,8 +79,8 @@ exports[`should render correctly: fix 1`] = `
className="big-padded"
isDefault={true}
sections={
- Array [
- Object {
+ [
+ {
"content": "how",
"key": "how_to_fix",
},
@@ -97,8 +97,8 @@ exports[`should render correctly: risk 1`] = `
onSelect={[Function]}
selected="code"
tabs={
- Array [
- Object {
+ [
+ {
"content": <div
className="padded"
>
@@ -109,13 +109,13 @@ exports[`should render correctly: risk 1`] = `
"key": "code",
"label": "hotspots.tabs.code",
},
- Object {
+ {
"content": <RuleDescription
className="big-padded"
isDefault={true}
sections={
- Array [
- Object {
+ [
+ {
"content": "cause",
"key": "root_cause",
},
@@ -125,13 +125,13 @@ exports[`should render correctly: risk 1`] = `
"key": "risk",
"label": "hotspots.tabs.risk_description",
},
- Object {
+ {
"content": <RuleDescription
className="big-padded"
isDefault={true}
sections={
- Array [
- Object {
+ [
+ {
"content": "assess",
"key": "assess_the_problem",
},
@@ -141,13 +141,13 @@ exports[`should render correctly: risk 1`] = `
"key": "vulnerability",
"label": "hotspots.tabs.vulnerability_description",
},
- Object {
+ {
"content": <RuleDescription
className="big-padded"
isDefault={true}
sections={
- Array [
- Object {
+ [
+ {
"content": "how",
"key": "how_to_fix",
},
@@ -183,8 +183,8 @@ exports[`should render correctly: vulnerability 1`] = `
onSelect={[Function]}
selected="vulnerability"
tabs={
- Array [
- Object {
+ [
+ {
"content": <div
className="padded"
>
@@ -195,13 +195,13 @@ exports[`should render correctly: vulnerability 1`] = `
"key": "code",
"label": "hotspots.tabs.code",
},
- Object {
+ {
"content": <RuleDescription
className="big-padded"
isDefault={true}
sections={
- Array [
- Object {
+ [
+ {
"content": "cause",
"key": "root_cause",
},
@@ -211,13 +211,13 @@ exports[`should render correctly: vulnerability 1`] = `
"key": "risk",
"label": "hotspots.tabs.risk_description",
},
- Object {
+ {
"content": <RuleDescription
className="big-padded"
isDefault={true}
sections={
- Array [
- Object {
+ [
+ {
"content": "assess",
"key": "assess_the_problem",
},
@@ -227,13 +227,13 @@ exports[`should render correctly: vulnerability 1`] = `
"key": "vulnerability",
"label": "hotspots.tabs.vulnerability_description",
},
- Object {
+ {
"content": <RuleDescription
className="big-padded"
isDefault={true}
sections={
- Array [
- Object {
+ [
+ {
"content": "how",
"key": "how_to_fix",
},
@@ -256,8 +256,8 @@ exports[`should render correctly: vulnerability 1`] = `
className="big-padded"
isDefault={true}
sections={
- Array [
- Object {
+ [
+ {
"content": "assess",
"key": "assess_the_problem",
},
@@ -274,8 +274,8 @@ exports[`should render correctly: with comments or changelog element 1`] = `
onSelect={[Function]}
selected="code"
tabs={
- Array [
- Object {
+ [
+ {
"content": <div
className="padded"
>
@@ -286,13 +286,13 @@ exports[`should render correctly: with comments or changelog element 1`] = `
"key": "code",
"label": "hotspots.tabs.code",
},
- Object {
+ {
"content": <RuleDescription
className="big-padded"
isDefault={true}
sections={
- Array [
- Object {
+ [
+ {
"content": "cause",
"key": "root_cause",
},
@@ -302,13 +302,13 @@ exports[`should render correctly: with comments or changelog element 1`] = `
"key": "risk",
"label": "hotspots.tabs.risk_description",
},
- Object {
+ {
"content": <RuleDescription
className="big-padded"
isDefault={true}
sections={
- Array [
- Object {
+ [
+ {
"content": "assess",
"key": "assess_the_problem",
},
@@ -318,13 +318,13 @@ exports[`should render correctly: with comments or changelog element 1`] = `
"key": "vulnerability",
"label": "hotspots.tabs.vulnerability_description",
},
- Object {
+ {
"content": <RuleDescription
className="big-padded"
isDefault={true}
sections={
- Array [
- Object {
+ [
+ {
"content": "how",
"key": "how_to_fix",
},
diff --git a/server/sonar-web/src/main/js/apps/security-hotspots/components/__tests__/__snapshots__/StatusUpdateSuccessModal-test.tsx.snap b/server/sonar-web/src/main/js/apps/security-hotspots/components/__tests__/__snapshots__/StatusUpdateSuccessModal-test.tsx.snap
index 136d52ffa71..609e8203e5a 100644
--- a/server/sonar-web/src/main/js/apps/security-hotspots/components/__tests__/__snapshots__/StatusUpdateSuccessModal-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/security-hotspots/components/__tests__/__snapshots__/StatusUpdateSuccessModal-test.tsx.snap
@@ -18,7 +18,7 @@ exports[`should render correctly: default 1`] = `
defaultMessage="hotspots.find_in_status_filter_x"
id="hotspots.successfully_changed_to_x"
values={
- Object {
+ {
"status_label": <strong>
hotspots.status_option.FIXED
</strong>,
@@ -32,7 +32,7 @@ exports[`should render correctly: default 1`] = `
defaultMessage="hotspots.x_done_keep_going"
id="hotspots.x_done_keep_going"
values={
- Object {
+ {
"percentage": <strong>
</strong>,
@@ -77,7 +77,7 @@ exports[`should render correctly: opening hotspots again 1`] = `
defaultMessage="hotspots.find_in_status_filter_x"
id="hotspots.successfully_changed_to_x"
values={
- Object {
+ {
"status_label": <strong>
hotspots.status_option.TO_REVIEW
</strong>,
diff --git a/server/sonar-web/src/main/js/apps/security-hotspots/components/assignee/__tests__/__snapshots__/Assignee-test.tsx.snap b/server/sonar-web/src/main/js/apps/security-hotspots/components/assignee/__tests__/__snapshots__/Assignee-test.tsx.snap
index 1b919702f03..56948a75548 100644
--- a/server/sonar-web/src/main/js/apps/security-hotspots/components/assignee/__tests__/__snapshots__/Assignee-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/security-hotspots/components/assignee/__tests__/__snapshots__/Assignee-test.tsx.snap
@@ -3,7 +3,7 @@
exports[`should render correctly 1`] = `
<AssigneeRenderer
assignee={
- Object {
+ {
"active": true,
"local": true,
"login": "assignee",
diff --git a/server/sonar-web/src/main/js/apps/security-hotspots/components/assignee/__tests__/__snapshots__/AssigneeRenderer-test.tsx.snap b/server/sonar-web/src/main/js/apps/security-hotspots/components/assignee/__tests__/__snapshots__/AssigneeRenderer-test.tsx.snap
index 6c98a977fd0..bd08e03f65e 100644
--- a/server/sonar-web/src/main/js/apps/security-hotspots/components/assignee/__tests__/__snapshots__/AssigneeRenderer-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/security-hotspots/components/assignee/__tests__/__snapshots__/AssigneeRenderer-test.tsx.snap
@@ -13,15 +13,15 @@ exports[`should render correctly: editing 1`] = `
<AssigneeSelection
allowCurrentUserSelection={false}
loggedInUser={
- Object {
- "dismissedNotices": Object {
+ {
+ "dismissedNotices": {
"educationPrinciples": false,
},
- "groups": Array [],
+ "groups": [],
"isLoggedIn": true,
"login": "luke",
"name": "Skywalker",
- "scmAccounts": Array [],
+ "scmAccounts": [],
}
}
onSelect={[MockFunction]}
@@ -95,4 +95,4 @@ exports[`should render correctly: without current assignee 1`] = `
/>
</div>
</DeferredSpinner>
-`; \ No newline at end of file
+`;
diff --git a/server/sonar-web/src/main/js/apps/security-hotspots/components/assignee/__tests__/__snapshots__/AssigneeSelection-test.tsx.snap b/server/sonar-web/src/main/js/apps/security-hotspots/components/assignee/__tests__/__snapshots__/AssigneeSelection-test.tsx.snap
index c814ca7fdce..07a704bdaea 100644
--- a/server/sonar-web/src/main/js/apps/security-hotspots/components/assignee/__tests__/__snapshots__/AssigneeSelection-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/security-hotspots/components/assignee/__tests__/__snapshots__/AssigneeSelection-test.tsx.snap
@@ -7,8 +7,8 @@ exports[`should render correctly 1`] = `
onSearch={[Function]}
onSelect={[MockFunction]}
suggestedUsers={
- Array [
- Object {
+ [
+ {
"login": "",
"name": "unassigned",
},
diff --git a/server/sonar-web/src/main/js/apps/settings/components/__tests__/__snapshots__/AdditionalCategories-test.tsx.snap b/server/sonar-web/src/main/js/apps/settings/components/__tests__/__snapshots__/AdditionalCategories-test.tsx.snap
index 4d5762daebd..1458c61e3d4 100644
--- a/server/sonar-web/src/main/js/apps/settings/components/__tests__/__snapshots__/AdditionalCategories-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/settings/components/__tests__/__snapshots__/AdditionalCategories-test.tsx.snap
@@ -2,30 +2,30 @@
exports[`should render additional categories component correctly 1`] = `
<withRouter(Languages)
- categories={Array []}
+ categories={[]}
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "TRK",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
- definitions={Array []}
+ definitions={[]}
selectedCategory="TEST"
/>
`;
@@ -34,60 +34,60 @@ exports[`should render additional categories component correctly 2`] = `<NewCode
exports[`should render additional categories component correctly 3`] = `
<AnalysisScope
- categories={Array []}
+ categories={[]}
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "TRK",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
- definitions={Array []}
+ definitions={[]}
selectedCategory="TEST"
/>
`;
exports[`should render additional categories component correctly 4`] = `
<withRouter(withAvailableFeaturesContext(AlmIntegration))
- categories={Array []}
+ categories={[]}
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "TRK",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
- definitions={Array []}
+ definitions={[]}
selectedCategory="TEST"
/>
`;
@@ -95,25 +95,25 @@ exports[`should render additional categories component correctly 4`] = `
exports[`should render additional categories component correctly 5`] = `
<withCurrentUserContext(PRDecorationBinding)
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "TRK",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
/>
@@ -121,30 +121,30 @@ exports[`should render additional categories component correctly 5`] = `
exports[`should render additional categories component correctly 6`] = `
<withAvailableFeaturesContext(Authentication)
- categories={Array []}
+ categories={[]}
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "TRK",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
- definitions={Array []}
+ definitions={[]}
selectedCategory="TEST"
/>
`;
diff --git a/server/sonar-web/src/main/js/apps/settings/components/__tests__/__snapshots__/AnalysisScope-test.tsx.snap b/server/sonar-web/src/main/js/apps/settings/components/__tests__/__snapshots__/AnalysisScope-test.tsx.snap
index 0b50c3ff5b8..1a40aa6ea1d 100644
--- a/server/sonar-web/src/main/js/apps/settings/components/__tests__/__snapshots__/AnalysisScope-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/settings/components/__tests__/__snapshots__/AnalysisScope-test.tsx.snap
@@ -49,28 +49,28 @@ exports[`should render correctly 1`] = `
<CategoryDefinitionsList
category="TEST"
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "TRK",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
- definitions={Array []}
+ definitions={[]}
/>
</div>
</Fragment>
diff --git a/server/sonar-web/src/main/js/apps/settings/components/__tests__/__snapshots__/DefinitionActions-test.tsx.snap b/server/sonar-web/src/main/js/apps/settings/components/__tests__/__snapshots__/DefinitionActions-test.tsx.snap
index 4751477bfc8..dddb190a866 100644
--- a/server/sonar-web/src/main/js/apps/settings/components/__tests__/__snapshots__/DefinitionActions-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/settings/components/__tests__/__snapshots__/DefinitionActions-test.tsx.snap
@@ -71,7 +71,7 @@ exports[`displays default message when value is default 1`] = `
<div
className="spacer-top note"
style={
- Object {
+ {
"lineHeight": "24px",
}
}
diff --git a/server/sonar-web/src/main/js/apps/settings/components/__tests__/__snapshots__/DefinitionRenderer-test.tsx.snap b/server/sonar-web/src/main/js/apps/settings/components/__tests__/__snapshots__/DefinitionRenderer-test.tsx.snap
index be05ab719d8..021e807d1af 100644
--- a/server/sonar-web/src/main/js/apps/settings/components/__tests__/__snapshots__/DefinitionRenderer-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/settings/components/__tests__/__snapshots__/DefinitionRenderer-test.tsx.snap
@@ -17,7 +17,7 @@ exports[`should render correctly: changed value 1`] = `
<div
className="markdown small spacer-top"
dangerouslySetInnerHTML={
- Object {
+ {
"__html": "property.foo.description",
}
}
@@ -49,12 +49,12 @@ exports[`should render correctly: changed value 1`] = `
onEditing={[MockFunction]}
onSave={[MockFunction]}
setting={
- Object {
- "definition": Object {
+ {
+ "definition": {
"category": "foo category",
- "fields": Array [],
+ "fields": [],
"key": "foo",
- "options": Array [],
+ "options": [],
"subCategory": "foo subCat",
},
"hasValue": false,
@@ -73,12 +73,12 @@ exports[`should render correctly: changed value 1`] = `
onReset={[MockFunction]}
onSave={[MockFunction]}
setting={
- Object {
- "definition": Object {
+ {
+ "definition": {
"category": "foo category",
- "fields": Array [],
+ "fields": [],
"key": "foo",
- "options": Array [],
+ "options": [],
"subCategory": "foo subCat",
},
"hasValue": false,
@@ -108,7 +108,7 @@ exports[`should render correctly: in error 1`] = `
<div
className="markdown small spacer-top"
dangerouslySetInnerHTML={
- Object {
+ {
"__html": "property.foo.description",
}
}
@@ -151,12 +151,12 @@ exports[`should render correctly: in error 1`] = `
onEditing={[MockFunction]}
onSave={[MockFunction]}
setting={
- Object {
- "definition": Object {
+ {
+ "definition": {
"category": "foo category",
- "fields": Array [],
+ "fields": [],
"key": "foo",
- "options": Array [],
+ "options": [],
"subCategory": "foo subCat",
},
"hasValue": false,
@@ -173,12 +173,12 @@ exports[`should render correctly: in error 1`] = `
onReset={[MockFunction]}
onSave={[MockFunction]}
setting={
- Object {
- "definition": Object {
+ {
+ "definition": {
"category": "foo category",
- "fields": Array [],
+ "fields": [],
"key": "foo",
- "options": Array [],
+ "options": [],
"subCategory": "foo subCat",
},
"hasValue": false,
@@ -208,7 +208,7 @@ exports[`should render correctly: loading 1`] = `
<div
className="markdown small spacer-top"
dangerouslySetInnerHTML={
- Object {
+ {
"__html": "property.foo.description",
}
}
@@ -249,12 +249,12 @@ exports[`should render correctly: loading 1`] = `
onEditing={[MockFunction]}
onSave={[MockFunction]}
setting={
- Object {
- "definition": Object {
+ {
+ "definition": {
"category": "foo category",
- "fields": Array [],
+ "fields": [],
"key": "foo",
- "options": Array [],
+ "options": [],
"subCategory": "foo subCat",
},
"hasValue": false,
@@ -271,12 +271,12 @@ exports[`should render correctly: loading 1`] = `
onReset={[MockFunction]}
onSave={[MockFunction]}
setting={
- Object {
- "definition": Object {
+ {
+ "definition": {
"category": "foo category",
- "fields": Array [],
+ "fields": [],
"key": "foo",
- "options": Array [],
+ "options": [],
"subCategory": "foo subCat",
},
"hasValue": false,
@@ -306,7 +306,7 @@ exports[`should render correctly: original value 1`] = `
<div
className="markdown small spacer-top"
dangerouslySetInnerHTML={
- Object {
+ {
"__html": "property.foo.description",
}
}
@@ -338,12 +338,12 @@ exports[`should render correctly: original value 1`] = `
onEditing={[MockFunction]}
onSave={[MockFunction]}
setting={
- Object {
- "definition": Object {
+ {
+ "definition": {
"category": "foo category",
- "fields": Array [],
+ "fields": [],
"key": "foo",
- "options": Array [],
+ "options": [],
"subCategory": "foo subCat",
},
"hasValue": true,
@@ -362,12 +362,12 @@ exports[`should render correctly: original value 1`] = `
onReset={[MockFunction]}
onSave={[MockFunction]}
setting={
- Object {
- "definition": Object {
+ {
+ "definition": {
"category": "foo category",
- "fields": Array [],
+ "fields": [],
"key": "foo",
- "options": Array [],
+ "options": [],
"subCategory": "foo subCat",
},
"hasValue": true,
@@ -398,7 +398,7 @@ exports[`should render correctly: success 1`] = `
<div
className="markdown small spacer-top"
dangerouslySetInnerHTML={
- Object {
+ {
"__html": "property.foo.description",
}
}
@@ -439,12 +439,12 @@ exports[`should render correctly: success 1`] = `
onEditing={[MockFunction]}
onSave={[MockFunction]}
setting={
- Object {
- "definition": Object {
+ {
+ "definition": {
"category": "foo category",
- "fields": Array [],
+ "fields": [],
"key": "foo",
- "options": Array [],
+ "options": [],
"subCategory": "foo subCat",
},
"hasValue": false,
@@ -461,12 +461,12 @@ exports[`should render correctly: success 1`] = `
onReset={[MockFunction]}
onSave={[MockFunction]}
setting={
- Object {
- "definition": Object {
+ {
+ "definition": {
"category": "foo category",
- "fields": Array [],
+ "fields": [],
"key": "foo",
- "options": Array [],
+ "options": [],
"subCategory": "foo subCat",
},
"hasValue": false,
@@ -496,7 +496,7 @@ exports[`should render correctly: with description 1`] = `
<div
className="markdown small spacer-top"
dangerouslySetInnerHTML={
- Object {
+ {
"__html": "property.foo.description",
}
}
@@ -528,13 +528,13 @@ exports[`should render correctly: with description 1`] = `
onEditing={[MockFunction]}
onSave={[MockFunction]}
setting={
- Object {
- "definition": Object {
+ {
+ "definition": {
"category": "foo category",
"description": "description",
- "fields": Array [],
+ "fields": [],
"key": "foo",
- "options": Array [],
+ "options": [],
"subCategory": "foo subCat",
},
"hasValue": false,
@@ -551,13 +551,13 @@ exports[`should render correctly: with description 1`] = `
onReset={[MockFunction]}
onSave={[MockFunction]}
setting={
- Object {
- "definition": Object {
+ {
+ "definition": {
"category": "foo category",
"description": "description",
- "fields": Array [],
+ "fields": [],
"key": "foo",
- "options": Array [],
+ "options": [],
"subCategory": "foo subCat",
},
"hasValue": false,
diff --git a/server/sonar-web/src/main/js/apps/settings/components/__tests__/__snapshots__/Languages-test.tsx.snap b/server/sonar-web/src/main/js/apps/settings/components/__tests__/__snapshots__/Languages-test.tsx.snap
index b44e852341a..30014d31064 100644
--- a/server/sonar-web/src/main/js/apps/settings/components/__tests__/__snapshots__/Languages-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/settings/components/__tests__/__snapshots__/Languages-test.tsx.snap
@@ -16,18 +16,18 @@ exports[`should render correctly 1`] = `
className="input-large select-settings-language"
onChange={[Function]}
options={
- Array [
- Object {
+ [
+ {
"label": "property.category.Java",
"originalValue": "Java",
"value": "java",
},
- Object {
+ {
"label": "property.category.JavaScript",
"originalValue": "JavaScript",
"value": "javascript",
},
- Object {
+ {
"label": "property.category.COBOL",
"originalValue": "COBOL",
"value": "cobol",
@@ -36,7 +36,7 @@ exports[`should render correctly 1`] = `
}
placeholder="settings.languages.select_a_language_placeholder"
value={
- Object {
+ {
"label": "property.category.Java",
"originalValue": "Java",
"value": "java",
@@ -49,7 +49,7 @@ exports[`should render correctly 1`] = `
>
<CategoryDefinitionsList
category="java"
- definitions={Array []}
+ definitions={[]}
/>
</div>
</Fragment>
@@ -71,18 +71,18 @@ exports[`should render correctly with an unknow language 1`] = `
className="input-large select-settings-language"
onChange={[Function]}
options={
- Array [
- Object {
+ [
+ {
"label": "property.category.Java",
"originalValue": "Java",
"value": "java",
},
- Object {
+ {
"label": "property.category.JavaScript",
"originalValue": "JavaScript",
"value": "javascript",
},
- Object {
+ {
"label": "property.category.COBOL",
"originalValue": "COBOL",
"value": "cobol",
diff --git a/server/sonar-web/src/main/js/apps/settings/components/__tests__/__snapshots__/NewCodePeriod-test.tsx.snap b/server/sonar-web/src/main/js/apps/settings/components/__tests__/__snapshots__/NewCodePeriod-test.tsx.snap
index 954f487a655..24a811bedac 100644
--- a/server/sonar-web/src/main/js/apps/settings/components/__tests__/__snapshots__/NewCodePeriod-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/settings/components/__tests__/__snapshots__/NewCodePeriod-test.tsx.snap
@@ -28,7 +28,7 @@ exports[`should render correctly 1`] = `
defaultMessage="settings.new_code_period.description"
id="settings.new_code_period.description"
values={
- Object {
+ {
"link": <withAppStateContext(DocLink)
to="/project-administration/defining-new-code/"
>
diff --git a/server/sonar-web/src/main/js/apps/settings/components/__tests__/__snapshots__/PageHeader-test.tsx.snap b/server/sonar-web/src/main/js/apps/settings/components/__tests__/__snapshots__/PageHeader-test.tsx.snap
index ab693c7f5d5..0ceb31d6227 100644
--- a/server/sonar-web/src/main/js/apps/settings/components/__tests__/__snapshots__/PageHeader-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/settings/components/__tests__/__snapshots__/PageHeader-test.tsx.snap
@@ -23,28 +23,28 @@ exports[`should render correctly: for project 1`] = `
<withRouter(SettingsSearch)
className="big-spacer-top"
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "TRK",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
- definitions={Array []}
+ definitions={[]}
/>
</div>
</div>
@@ -75,7 +75,7 @@ exports[`should render correctly: global 1`] = `
</div>
<withRouter(SettingsSearch)
className="big-spacer-top"
- definitions={Array []}
+ definitions={[]}
/>
</div>
</div>
diff --git a/server/sonar-web/src/main/js/apps/settings/components/__tests__/__snapshots__/SettingsApp-test.tsx.snap b/server/sonar-web/src/main/js/apps/settings/components/__tests__/__snapshots__/SettingsApp-test.tsx.snap
index dd622ed928c..0f002e7be11 100644
--- a/server/sonar-web/src/main/js/apps/settings/components/__tests__/__snapshots__/SettingsApp-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/settings/components/__tests__/__snapshots__/SettingsApp-test.tsx.snap
@@ -2,7 +2,7 @@
exports[`should render default view correctly 1`] = `
<withRouter(SettingsAppRenderer)
- definitions={Array []}
+ definitions={[]}
loading={false}
/>
`;
diff --git a/server/sonar-web/src/main/js/apps/settings/components/__tests__/__snapshots__/SettingsAppRenderer-test.tsx.snap b/server/sonar-web/src/main/js/apps/settings/components/__tests__/__snapshots__/SettingsAppRenderer-test.tsx.snap
index 33c14061cbf..02bc3346760 100644
--- a/server/sonar-web/src/main/js/apps/settings/components/__tests__/__snapshots__/SettingsAppRenderer-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/settings/components/__tests__/__snapshots__/SettingsAppRenderer-test.tsx.snap
@@ -15,19 +15,19 @@ exports[`should render almintegration correctly 1`] = `
/>
<PageHeader
definitions={
- Array [
- Object {
+ [
+ {
"category": "foo category",
- "fields": Array [],
+ "fields": [],
"key": "foo",
- "options": Array [],
+ "options": [],
"subCategory": "foo subCat",
},
- Object {
+ {
"category": "general",
- "fields": Array [],
+ "fields": [],
"key": "bar",
- "options": Array [],
+ "options": [],
"subCategory": "foo subCat",
},
]
@@ -53,25 +53,25 @@ exports[`should render almintegration correctly 1`] = `
>
<withRouter(withAvailableFeaturesContext(AlmIntegration))
categories={
- Array [
+ [
"foo category",
"general",
]
}
definitions={
- Array [
- Object {
+ [
+ {
"category": "foo category",
- "fields": Array [],
+ "fields": [],
"key": "foo",
- "options": Array [],
+ "options": [],
"subCategory": "foo subCat",
},
- Object {
+ {
"category": "general",
- "fields": Array [],
+ "fields": [],
"key": "bar",
- "options": Array [],
+ "options": [],
"subCategory": "foo subCat",
},
]
@@ -100,19 +100,19 @@ exports[`should render default view correctly 1`] = `
/>
<PageHeader
definitions={
- Array [
- Object {
+ [
+ {
"category": "foo category",
- "fields": Array [],
+ "fields": [],
"key": "foo",
- "options": Array [],
+ "options": [],
"subCategory": "foo subCat",
},
- Object {
+ {
"category": "general",
- "fields": Array [],
+ "fields": [],
"key": "bar",
- "options": Array [],
+ "options": [],
"subCategory": "foo subCat",
},
]
@@ -139,19 +139,19 @@ exports[`should render default view correctly 1`] = `
<CategoryDefinitionsList
category="general"
definitions={
- Array [
- Object {
+ [
+ {
"category": "foo category",
- "fields": Array [],
+ "fields": [],
"key": "foo",
- "options": Array [],
+ "options": [],
"subCategory": "foo subCat",
},
- Object {
+ {
"category": "general",
- "fields": Array [],
+ "fields": [],
"key": "bar",
- "options": Array [],
+ "options": [],
"subCategory": "foo subCat",
},
]
@@ -171,7 +171,7 @@ exports[`should render default view correctly: All Categories List 1`] = `
<div
className="layout-page-side"
style={
- Object {
+ {
"top": 0,
}
}
@@ -181,7 +181,7 @@ exports[`should render default view correctly: All Categories List 1`] = `
>
<withAvailableFeaturesContext(CategoriesList)
categories={
- Array [
+ [
"foo category",
"general",
]
@@ -209,19 +209,19 @@ exports[`should render exclusions correctly 1`] = `
/>
<PageHeader
definitions={
- Array [
- Object {
+ [
+ {
"category": "foo category",
- "fields": Array [],
+ "fields": [],
"key": "foo",
- "options": Array [],
+ "options": [],
"subCategory": "foo subCat",
},
- Object {
+ {
"category": "general",
- "fields": Array [],
+ "fields": [],
"key": "bar",
- "options": Array [],
+ "options": [],
"subCategory": "foo subCat",
},
]
@@ -247,25 +247,25 @@ exports[`should render exclusions correctly 1`] = `
>
<AnalysisScope
categories={
- Array [
+ [
"foo category",
"general",
]
}
definitions={
- Array [
- Object {
+ [
+ {
"category": "foo category",
- "fields": Array [],
+ "fields": [],
"key": "foo",
- "options": Array [],
+ "options": [],
"subCategory": "foo subCat",
},
- Object {
+ {
"category": "general",
- "fields": Array [],
+ "fields": [],
"key": "bar",
- "options": Array [],
+ "options": [],
"subCategory": "foo subCat",
},
]
@@ -294,19 +294,19 @@ exports[`should render languages correctly 1`] = `
/>
<PageHeader
definitions={
- Array [
- Object {
+ [
+ {
"category": "foo category",
- "fields": Array [],
+ "fields": [],
"key": "foo",
- "options": Array [],
+ "options": [],
"subCategory": "foo subCat",
},
- Object {
+ {
"category": "general",
- "fields": Array [],
+ "fields": [],
"key": "bar",
- "options": Array [],
+ "options": [],
"subCategory": "foo subCat",
},
]
@@ -332,25 +332,25 @@ exports[`should render languages correctly 1`] = `
>
<withRouter(Languages)
categories={
- Array [
+ [
"foo category",
"general",
]
}
definitions={
- Array [
- Object {
+ [
+ {
"category": "foo category",
- "fields": Array [],
+ "fields": [],
"key": "foo",
- "options": Array [],
+ "options": [],
"subCategory": "foo subCat",
},
- Object {
+ {
"category": "general",
- "fields": Array [],
+ "fields": [],
"key": "bar",
- "options": Array [],
+ "options": [],
"subCategory": "foo subCat",
},
]
@@ -379,19 +379,19 @@ exports[`should render new_code_period correctly 1`] = `
/>
<PageHeader
definitions={
- Array [
- Object {
+ [
+ {
"category": "foo category",
- "fields": Array [],
+ "fields": [],
"key": "foo",
- "options": Array [],
+ "options": [],
"subCategory": "foo subCat",
},
- Object {
+ {
"category": "general",
- "fields": Array [],
+ "fields": [],
"key": "bar",
- "options": Array [],
+ "options": [],
"subCategory": "foo subCat",
},
]
@@ -438,19 +438,19 @@ exports[`should render pull_request_decoration_binding correctly 1`] = `
/>
<PageHeader
definitions={
- Array [
- Object {
+ [
+ {
"category": "foo category",
- "fields": Array [],
+ "fields": [],
"key": "foo",
- "options": Array [],
+ "options": [],
"subCategory": "foo subCat",
},
- Object {
+ {
"category": "general",
- "fields": Array [],
+ "fields": [],
"key": "bar",
- "options": Array [],
+ "options": [],
"subCategory": "foo subCat",
},
]
@@ -477,19 +477,19 @@ exports[`should render pull_request_decoration_binding correctly 1`] = `
<CategoryDefinitionsList
category="pull_request_decoration_binding"
definitions={
- Array [
- Object {
+ [
+ {
"category": "foo category",
- "fields": Array [],
+ "fields": [],
"key": "foo",
- "options": Array [],
+ "options": [],
"subCategory": "foo subCat",
},
- Object {
+ {
"category": "general",
- "fields": Array [],
+ "fields": [],
"key": "bar",
- "options": Array [],
+ "options": [],
"subCategory": "foo subCat",
},
]
diff --git a/server/sonar-web/src/main/js/apps/settings/components/__tests__/__snapshots__/SettingsSearchRenderer-test.tsx.snap b/server/sonar-web/src/main/js/apps/settings/components/__tests__/__snapshots__/SettingsSearchRenderer-test.tsx.snap
index 5ef2dff5980..a50c55c2c6a 100644
--- a/server/sonar-web/src/main/js/apps/settings/components/__tests__/__snapshots__/SettingsSearchRenderer-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/settings/components/__tests__/__snapshots__/SettingsSearchRenderer-test.tsx.snap
@@ -77,7 +77,7 @@ exports[`should render correctly when open: results 1`] = `
onClick={[MockFunction]}
onMouseEnter={[Function]}
to={
- Object {
+ {
"hash": "#foo",
"pathname": "/admin/settings",
"search": "?category=foo+category",
@@ -106,7 +106,7 @@ exports[`should render correctly when open: results 1`] = `
onClick={[MockFunction]}
onMouseEnter={[Function]}
to={
- Object {
+ {
"hash": "#bar",
"pathname": "/admin/settings",
"search": "?category=foo+category",
diff --git a/server/sonar-web/src/main/js/apps/settings/components/__tests__/__snapshots__/SubCategoryDefinitionsList-test.tsx.snap b/server/sonar-web/src/main/js/apps/settings/components/__tests__/__snapshots__/SubCategoryDefinitionsList-test.tsx.snap
index d4699f7f8e2..9e70241ec02 100644
--- a/server/sonar-web/src/main/js/apps/settings/components/__tests__/__snapshots__/SubCategoryDefinitionsList-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/settings/components/__tests__/__snapshots__/SubCategoryDefinitionsList-test.tsx.snap
@@ -16,7 +16,7 @@ exports[`should render correctly 1`] = `
<div
className="settings-sub-category-description markdown"
dangerouslySetInnerHTML={
- Object {
+ {
"__html": "property.category.general.email.description",
}
}
@@ -24,15 +24,15 @@ exports[`should render correctly 1`] = `
<DefinitionsList
scrollToDefinition={[Function]}
settings={
- Array [
- Object {
- "definition": Object {
+ [
+ {
+ "definition": {
"category": "general",
"description": "When Foo then Bar",
- "fields": Array [],
+ "fields": [],
"key": "foo",
"name": "Foo setting",
- "options": Array [],
+ "options": [],
"subCategory": "email",
"type": "INTEGER",
},
@@ -58,7 +58,7 @@ exports[`should render correctly 1`] = `
<div
className="settings-sub-category-description markdown"
dangerouslySetInnerHTML={
- Object {
+ {
"__html": "property.category.general.qg.description",
}
}
@@ -66,14 +66,14 @@ exports[`should render correctly 1`] = `
<DefinitionsList
scrollToDefinition={[Function]}
settings={
- Array [
- Object {
- "definition": Object {
+ [
+ {
+ "definition": {
"category": "general",
"description": "awesome description",
- "fields": Array [],
+ "fields": [],
"key": "qg",
- "options": Array [],
+ "options": [],
"subCategory": "qg",
},
"hasValue": true,
@@ -104,7 +104,7 @@ exports[`should render correctly: subcategory 1`] = `
<div
className="settings-sub-category-description markdown"
dangerouslySetInnerHTML={
- Object {
+ {
"__html": "property.category.general.qg.description",
}
}
@@ -112,14 +112,14 @@ exports[`should render correctly: subcategory 1`] = `
<DefinitionsList
scrollToDefinition={[Function]}
settings={
- Array [
- Object {
- "definition": Object {
+ [
+ {
+ "definition": {
"category": "general",
"description": "awesome description",
- "fields": Array [],
+ "fields": [],
"key": "qg",
- "options": Array [],
+ "options": [],
"subCategory": "qg",
},
"hasValue": true,
diff --git a/server/sonar-web/src/main/js/apps/settings/components/almIntegration/__tests__/__snapshots__/AlmBindingDefinitionBox-test.tsx.snap b/server/sonar-web/src/main/js/apps/settings/components/almIntegration/__tests__/__snapshots__/AlmBindingDefinitionBox-test.tsx.snap
index f669520ace3..e31673bf7f0 100644
--- a/server/sonar-web/src/main/js/apps/settings/components/almIntegration/__tests__/__snapshots__/AlmBindingDefinitionBox-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/settings/components/almIntegration/__tests__/__snapshots__/AlmBindingDefinitionBox-test.tsx.snap
@@ -479,7 +479,7 @@ exports[`should render correctly: success with alert 1`] = `
defaultMessage="settings.almintegration.github.additional_permission"
id="settings.almintegration.github.additional_permission"
values={
- Object {
+ {
"link": <withAppStateContext(DocLink)
to="/devops-platform-integration/github-integration/"
>
@@ -562,7 +562,7 @@ exports[`should render correctly: success with branches disabled 1`] = `
defaultMessage="settings.almintegration.feature.pr_decoration.disabled.no_branches"
id="settings.almintegration.feature.pr_decoration.disabled.no_branches"
values={
- Object {
+ {
"link": <a
href="https://redirect.sonarsource.com/editions/developer.html?sourceEdition=community"
rel="noopener noreferrer"
@@ -605,7 +605,7 @@ exports[`should render correctly: success with branches disabled 1`] = `
defaultMessage="settings.almintegration.github.additional_permission"
id="settings.almintegration.github.additional_permission"
values={
- Object {
+ {
"link": <withAppStateContext(DocLink)
to="/devops-platform-integration/github-integration/"
>
diff --git a/server/sonar-web/src/main/js/apps/settings/components/almIntegration/__tests__/__snapshots__/AlmBindingDefinitionForm-test.tsx.snap b/server/sonar-web/src/main/js/apps/settings/components/almIntegration/__tests__/__snapshots__/AlmBindingDefinitionForm-test.tsx.snap
index 1fad7166360..19fc742ed32 100644
--- a/server/sonar-web/src/main/js/apps/settings/components/almIntegration/__tests__/__snapshots__/AlmBindingDefinitionForm-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/settings/components/almIntegration/__tests__/__snapshots__/AlmBindingDefinitionForm-test.tsx.snap
@@ -6,7 +6,7 @@ exports[`should render correctly: create 1`] = `
alreadyHaveInstanceConfigured={false}
canSubmit={false}
formData={
- Object {
+ {
"appId": "",
"clientId": "",
"clientSecret": "",
@@ -31,7 +31,7 @@ exports[`should render correctly: edit 1`] = `
alreadyHaveInstanceConfigured={false}
canSubmit={false}
formData={
- Object {
+ {
"appId": "123456",
"clientId": "client1",
"clientSecret": "**clientsecret**",
diff --git a/server/sonar-web/src/main/js/apps/settings/components/almIntegration/__tests__/__snapshots__/AlmBindingDefinitionFormField-test.tsx.snap b/server/sonar-web/src/main/js/apps/settings/components/almIntegration/__tests__/__snapshots__/AlmBindingDefinitionFormField-test.tsx.snap
index f878e875d5e..21193865848 100644
--- a/server/sonar-web/src/main/js/apps/settings/components/almIntegration/__tests__/__snapshots__/AlmBindingDefinitionFormField-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/settings/components/almIntegration/__tests__/__snapshots__/AlmBindingDefinitionFormField-test.tsx.snap
@@ -80,7 +80,7 @@ exports[`should render correctly: encryptable 1`] = `
defaultMessage="settings.almintegration.form.secret.can_encrypt"
id="settings.almintegration.form.secret.can_encrypt"
values={
- Object {
+ {
"learn_more": <withAppStateContext(DocLink)
to="/instance-administration/security/#settings-encryption"
>
diff --git a/server/sonar-web/src/main/js/apps/settings/components/almIntegration/__tests__/__snapshots__/AlmBindingDefinitionFormRenderer-test.tsx.snap b/server/sonar-web/src/main/js/apps/settings/components/almIntegration/__tests__/__snapshots__/AlmBindingDefinitionFormRenderer-test.tsx.snap
index 9c5ba34217e..76e6f318f7d 100644
--- a/server/sonar-web/src/main/js/apps/settings/components/almIntegration/__tests__/__snapshots__/AlmBindingDefinitionFormRenderer-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/settings/components/almIntegration/__tests__/__snapshots__/AlmBindingDefinitionFormRenderer-test.tsx.snap
@@ -23,7 +23,7 @@ exports[`should render correctly 1`] = `
>
<GithubForm
formData={
- Object {
+ {
"appId": "123456",
"clientId": "client1",
"clientSecret": "**clientsecret**",
@@ -81,7 +81,7 @@ exports[`should render correctly for azure 1`] = `
>
<AzureForm
formData={
- Object {
+ {
"appId": "123456",
"clientId": "client1",
"clientSecret": "**clientsecret**",
@@ -139,7 +139,7 @@ exports[`should render correctly for bitbucket 1`] = `
>
<BitbucketForm
formData={
- Object {
+ {
"appId": "123456",
"clientId": "client1",
"clientSecret": "**clientsecret**",
@@ -200,7 +200,7 @@ exports[`should render correctly for github 1`] = `
>
<GithubForm
formData={
- Object {
+ {
"appId": "123456",
"clientId": "client1",
"clientSecret": "**clientsecret**",
@@ -258,7 +258,7 @@ exports[`should render correctly for gitlab 1`] = `
>
<GitlabForm
formData={
- Object {
+ {
"appId": "123456",
"clientId": "client1",
"clientSecret": "**clientsecret**",
@@ -316,7 +316,7 @@ exports[`should render correctly: editing 1`] = `
>
<GithubForm
formData={
- Object {
+ {
"appId": "123456",
"clientId": "client1",
"clientSecret": "**clientsecret**",
@@ -380,7 +380,7 @@ exports[`should render correctly: second instance 1`] = `
</Alert>
<GithubForm
formData={
- Object {
+ {
"appId": "123456",
"clientId": "client1",
"clientSecret": "**clientsecret**",
@@ -438,7 +438,7 @@ exports[`should render correctly: submitting 1`] = `
>
<GithubForm
formData={
- Object {
+ {
"appId": "123456",
"clientId": "client1",
"clientSecret": "**clientsecret**",
@@ -496,7 +496,7 @@ exports[`should render correctly: with validation error 1`] = `
>
<GithubForm
formData={
- Object {
+ {
"appId": "123456",
"clientId": "client1",
"clientSecret": "**clientsecret**",
diff --git a/server/sonar-web/src/main/js/apps/settings/components/almIntegration/__tests__/__snapshots__/AlmIntegration-test.tsx.snap b/server/sonar-web/src/main/js/apps/settings/components/almIntegration/__tests__/__snapshots__/AlmIntegration-test.tsx.snap
index 116616c5808..6833ad10819 100644
--- a/server/sonar-web/src/main/js/apps/settings/components/almIntegration/__tests__/__snapshots__/AlmIntegration-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/settings/components/almIntegration/__tests__/__snapshots__/AlmIntegration-test.tsx.snap
@@ -4,14 +4,14 @@ exports[`should render correctly 1`] = `
<AlmIntegrationRenderer
branchesEnabled={true}
currentAlmTab="github"
- definitionStatus={Object {}}
+ definitionStatus={{}}
definitions={
- Object {
- "azure": Array [],
- "bitbucket": Array [],
- "bitbucketcloud": Array [],
- "github": Array [],
- "gitlab": Array [],
+ {
+ "azure": [],
+ "bitbucket": [],
+ "bitbucketcloud": [],
+ "github": [],
+ "gitlab": [],
}
}
loadingAlmDefinitions={true}
diff --git a/server/sonar-web/src/main/js/apps/settings/components/almIntegration/__tests__/__snapshots__/AlmIntegrationRenderer-test.tsx.snap b/server/sonar-web/src/main/js/apps/settings/components/almIntegration/__tests__/__snapshots__/AlmIntegrationRenderer-test.tsx.snap
index dbbe5ea825c..f90ed6025da 100644
--- a/server/sonar-web/src/main/js/apps/settings/components/almIntegration/__tests__/__snapshots__/AlmIntegrationRenderer-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/settings/components/almIntegration/__tests__/__snapshots__/AlmIntegrationRenderer-test.tsx.snap
@@ -20,8 +20,8 @@ exports[`should render correctly: azure 1`] = `
onSelect={[MockFunction]}
selected="azure"
tabs={
- Array [
- Object {
+ [
+ {
"key": "github",
"label": <React.Fragment>
<img
@@ -33,7 +33,7 @@ exports[`should render correctly: azure 1`] = `
GitHub
</React.Fragment>,
},
- Object {
+ {
"key": "bitbucket",
"label": <React.Fragment>
<img
@@ -45,7 +45,7 @@ exports[`should render correctly: azure 1`] = `
Bitbucket
</React.Fragment>,
},
- Object {
+ {
"key": "azure",
"label": <React.Fragment>
<img
@@ -57,7 +57,7 @@ exports[`should render correctly: azure 1`] = `
Azure DevOps
</React.Fragment>,
},
- Object {
+ {
"key": "gitlab",
"label": <React.Fragment>
<img
@@ -75,8 +75,8 @@ exports[`should render correctly: azure 1`] = `
<AlmTab
almTab="azure"
branchesEnabled={true}
- definitionStatus={Object {}}
- definitions={Array []}
+ definitionStatus={{}}
+ definitions={[]}
loadingAlmDefinitions={false}
loadingProjectCount={false}
multipleAlmEnabled={false}
@@ -107,8 +107,8 @@ exports[`should render correctly: bitbucket 1`] = `
onSelect={[MockFunction]}
selected="bitbucket"
tabs={
- Array [
- Object {
+ [
+ {
"key": "github",
"label": <React.Fragment>
<img
@@ -120,7 +120,7 @@ exports[`should render correctly: bitbucket 1`] = `
GitHub
</React.Fragment>,
},
- Object {
+ {
"key": "bitbucket",
"label": <React.Fragment>
<img
@@ -132,7 +132,7 @@ exports[`should render correctly: bitbucket 1`] = `
Bitbucket
</React.Fragment>,
},
- Object {
+ {
"key": "azure",
"label": <React.Fragment>
<img
@@ -144,7 +144,7 @@ exports[`should render correctly: bitbucket 1`] = `
Azure DevOps
</React.Fragment>,
},
- Object {
+ {
"key": "gitlab",
"label": <React.Fragment>
<img
@@ -162,8 +162,8 @@ exports[`should render correctly: bitbucket 1`] = `
<AlmTab
almTab="bitbucket"
branchesEnabled={true}
- definitionStatus={Object {}}
- definitions={Array []}
+ definitionStatus={{}}
+ definitions={[]}
loadingAlmDefinitions={false}
loadingProjectCount={false}
multipleAlmEnabled={false}
@@ -194,8 +194,8 @@ exports[`should render correctly: default 1`] = `
onSelect={[MockFunction]}
selected="github"
tabs={
- Array [
- Object {
+ [
+ {
"key": "github",
"label": <React.Fragment>
<img
@@ -207,7 +207,7 @@ exports[`should render correctly: default 1`] = `
GitHub
</React.Fragment>,
},
- Object {
+ {
"key": "bitbucket",
"label": <React.Fragment>
<img
@@ -219,7 +219,7 @@ exports[`should render correctly: default 1`] = `
Bitbucket
</React.Fragment>,
},
- Object {
+ {
"key": "azure",
"label": <React.Fragment>
<img
@@ -231,7 +231,7 @@ exports[`should render correctly: default 1`] = `
Azure DevOps
</React.Fragment>,
},
- Object {
+ {
"key": "gitlab",
"label": <React.Fragment>
<img
@@ -249,8 +249,8 @@ exports[`should render correctly: default 1`] = `
<AlmTab
almTab="github"
branchesEnabled={true}
- definitionStatus={Object {}}
- definitions={Array []}
+ definitionStatus={{}}
+ definitions={[]}
loadingAlmDefinitions={false}
loadingProjectCount={false}
multipleAlmEnabled={false}
@@ -281,8 +281,8 @@ exports[`should render correctly: delete modal 1`] = `
onSelect={[MockFunction]}
selected="github"
tabs={
- Array [
- Object {
+ [
+ {
"key": "github",
"label": <React.Fragment>
<img
@@ -294,7 +294,7 @@ exports[`should render correctly: delete modal 1`] = `
GitHub
</React.Fragment>,
},
- Object {
+ {
"key": "bitbucket",
"label": <React.Fragment>
<img
@@ -306,7 +306,7 @@ exports[`should render correctly: delete modal 1`] = `
Bitbucket
</React.Fragment>,
},
- Object {
+ {
"key": "azure",
"label": <React.Fragment>
<img
@@ -318,7 +318,7 @@ exports[`should render correctly: delete modal 1`] = `
Azure DevOps
</React.Fragment>,
},
- Object {
+ {
"key": "gitlab",
"label": <React.Fragment>
<img
@@ -336,8 +336,8 @@ exports[`should render correctly: delete modal 1`] = `
<AlmTab
almTab="github"
branchesEnabled={true}
- definitionStatus={Object {}}
- definitions={Array []}
+ definitionStatus={{}}
+ definitions={[]}
loadingAlmDefinitions={false}
loadingProjectCount={false}
multipleAlmEnabled={false}
@@ -373,8 +373,8 @@ exports[`should render correctly: gitlab 1`] = `
onSelect={[MockFunction]}
selected="gitlab"
tabs={
- Array [
- Object {
+ [
+ {
"key": "github",
"label": <React.Fragment>
<img
@@ -386,7 +386,7 @@ exports[`should render correctly: gitlab 1`] = `
GitHub
</React.Fragment>,
},
- Object {
+ {
"key": "bitbucket",
"label": <React.Fragment>
<img
@@ -398,7 +398,7 @@ exports[`should render correctly: gitlab 1`] = `
Bitbucket
</React.Fragment>,
},
- Object {
+ {
"key": "azure",
"label": <React.Fragment>
<img
@@ -410,7 +410,7 @@ exports[`should render correctly: gitlab 1`] = `
Azure DevOps
</React.Fragment>,
},
- Object {
+ {
"key": "gitlab",
"label": <React.Fragment>
<img
@@ -428,8 +428,8 @@ exports[`should render correctly: gitlab 1`] = `
<AlmTab
almTab="gitlab"
branchesEnabled={true}
- definitionStatus={Object {}}
- definitions={Array []}
+ definitionStatus={{}}
+ definitions={[]}
loadingAlmDefinitions={false}
loadingProjectCount={false}
multipleAlmEnabled={false}
@@ -460,8 +460,8 @@ exports[`should render correctly: loading 1`] = `
onSelect={[MockFunction]}
selected="github"
tabs={
- Array [
- Object {
+ [
+ {
"key": "github",
"label": <React.Fragment>
<img
@@ -473,7 +473,7 @@ exports[`should render correctly: loading 1`] = `
GitHub
</React.Fragment>,
},
- Object {
+ {
"key": "bitbucket",
"label": <React.Fragment>
<img
@@ -485,7 +485,7 @@ exports[`should render correctly: loading 1`] = `
Bitbucket
</React.Fragment>,
},
- Object {
+ {
"key": "azure",
"label": <React.Fragment>
<img
@@ -497,7 +497,7 @@ exports[`should render correctly: loading 1`] = `
Azure DevOps
</React.Fragment>,
},
- Object {
+ {
"key": "gitlab",
"label": <React.Fragment>
<img
@@ -515,8 +515,8 @@ exports[`should render correctly: loading 1`] = `
<AlmTab
almTab="github"
branchesEnabled={true}
- definitionStatus={Object {}}
- definitions={Array []}
+ definitionStatus={{}}
+ definitions={[]}
loadingAlmDefinitions={true}
loadingProjectCount={true}
multipleAlmEnabled={false}
diff --git a/server/sonar-web/src/main/js/apps/settings/components/almIntegration/__tests__/__snapshots__/AlmTab-test.tsx.snap b/server/sonar-web/src/main/js/apps/settings/components/almIntegration/__tests__/__snapshots__/AlmTab-test.tsx.snap
index ae9342d08d0..97725f0b360 100644
--- a/server/sonar-web/src/main/js/apps/settings/components/almIntegration/__tests__/__snapshots__/AlmTab-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/settings/components/almIntegration/__tests__/__snapshots__/AlmTab-test.tsx.snap
@@ -5,10 +5,10 @@ exports[`should render correctly 1`] = `
afterSubmit={[Function]}
almTab="azure"
branchesEnabled={true}
- definitionStatus={Object {}}
+ definitionStatus={{}}
definitions={
- Array [
- Object {
+ [
+ {
"key": "key",
"personalAccessToken": "asdf1234",
},
diff --git a/server/sonar-web/src/main/js/apps/settings/components/almIntegration/__tests__/__snapshots__/AlmTabRenderer-test.tsx.snap b/server/sonar-web/src/main/js/apps/settings/components/almIntegration/__tests__/__snapshots__/AlmTabRenderer-test.tsx.snap
index 9adea1fe647..209cc555ce1 100644
--- a/server/sonar-web/src/main/js/apps/settings/components/almIntegration/__tests__/__snapshots__/AlmTabRenderer-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/settings/components/almIntegration/__tests__/__snapshots__/AlmTabRenderer-test.tsx.snap
@@ -33,7 +33,7 @@ exports[`should render correctly for multi-ALM binding: editing a definition 1`]
alm="azure"
branchesEnabled={true}
definition={
- Object {
+ {
"key": "key",
"personalAccessToken": "asdf1234",
}
@@ -81,7 +81,7 @@ exports[`should render correctly for multi-ALM binding: loaded 1`] = `
alm="azure"
branchesEnabled={true}
definition={
- Object {
+ {
"key": "key",
"personalAccessToken": "asdf1234",
}
@@ -129,7 +129,7 @@ exports[`should render correctly for multi-ALM binding: loading ALM definitions
alm="azure"
branchesEnabled={true}
definition={
- Object {
+ {
"key": "key",
"personalAccessToken": "asdf1234",
}
@@ -177,7 +177,7 @@ exports[`should render correctly for multi-ALM binding: loading project count 1`
alm="azure"
branchesEnabled={true}
definition={
- Object {
+ {
"key": "key",
"personalAccessToken": "asdf1234",
}
@@ -225,7 +225,7 @@ exports[`should render correctly for single-ALM binding 1`] = `
alm="azure"
branchesEnabled={true}
definition={
- Object {
+ {
"key": "key",
"personalAccessToken": "asdf1234",
}
@@ -273,7 +273,7 @@ exports[`should render correctly for single-ALM binding 2`] = `
alm="azure"
branchesEnabled={true}
definition={
- Object {
+ {
"key": "key",
"personalAccessToken": "asdf1234",
}
@@ -321,7 +321,7 @@ exports[`should render correctly for single-ALM binding 3`] = `
alm="azure"
branchesEnabled={true}
definition={
- Object {
+ {
"key": "key",
"personalAccessToken": "asdf1234",
}
@@ -408,7 +408,7 @@ exports[`should render correctly with validation: create a second 1`] = `
alm="azure"
branchesEnabled={true}
definition={
- Object {
+ {
"appId": "123456",
"clientId": "client1",
"clientSecret": "**clientsecret**",
@@ -461,7 +461,7 @@ exports[`should render correctly with validation: default 1`] = `
alm="azure"
branchesEnabled={true}
definition={
- Object {
+ {
"appId": "123456",
"clientId": "client1",
"clientSecret": "**clientsecret**",
@@ -553,7 +553,7 @@ exports[`should render correctly with validation: pass the correct key for bitbu
alm="bitbucketcloud"
branchesEnabled={true}
definition={
- Object {
+ {
"clientId": "client1",
"clientSecret": "**clientsecret**",
"key": "key",
@@ -575,10 +575,10 @@ exports[`should render correctly with validation: pass the correct key for bitbu
defaultMessage="settings.almintegration.tabs.authentication_moved"
id="settings.almintegration.tabs.authentication-moved"
values={
- Object {
+ {
"link": <ForwardRef(Link)
to={
- Object {
+ {
"pathname": "/admin/settings",
"search": "category=authentication&tab=bitbucket",
}
diff --git a/server/sonar-web/src/main/js/apps/settings/components/almIntegration/__tests__/__snapshots__/AzureForm-test.tsx.snap b/server/sonar-web/src/main/js/apps/settings/components/almIntegration/__tests__/__snapshots__/AzureForm-test.tsx.snap
index 8b117d1933e..c2c39f83b8d 100644
--- a/server/sonar-web/src/main/js/apps/settings/components/almIntegration/__tests__/__snapshots__/AzureForm-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/settings/components/almIntegration/__tests__/__snapshots__/AzureForm-test.tsx.snap
@@ -40,7 +40,7 @@ exports[`should render correctly: create 1`] = `
defaultMessage="settings.almintegration.form.personal_access_token.azure.help"
id="settings.almintegration.form.personal_access_token.azure.help"
values={
- Object {
+ {
"doc_link": <withAppStateContext(DocLink)
to="/devops-platform-integration/azure-devops-integration/"
>
@@ -111,7 +111,7 @@ exports[`should render correctly: edit 1`] = `
defaultMessage="settings.almintegration.form.personal_access_token.azure.help"
id="settings.almintegration.form.personal_access_token.azure.help"
values={
- Object {
+ {
"doc_link": <withAppStateContext(DocLink)
to="/devops-platform-integration/azure-devops-integration/"
>
diff --git a/server/sonar-web/src/main/js/apps/settings/components/almIntegration/__tests__/__snapshots__/BitbucketCloudForm-test.tsx.snap b/server/sonar-web/src/main/js/apps/settings/components/almIntegration/__tests__/__snapshots__/BitbucketCloudForm-test.tsx.snap
index 830ab9179ce..fd82e19493e 100644
--- a/server/sonar-web/src/main/js/apps/settings/components/almIntegration/__tests__/__snapshots__/BitbucketCloudForm-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/settings/components/almIntegration/__tests__/__snapshots__/BitbucketCloudForm-test.tsx.snap
@@ -17,7 +17,7 @@ exports[`should render correctly: default 1`] = `
defaultMessage="settings.almintegration.form.workspace.bitbucketcloud.help"
id="settings.almintegration.form.workspace.bitbucketcloud.help"
values={
- Object {
+ {
"example": <React.Fragment>
https://bitbucket.org/
<strong>
@@ -44,7 +44,7 @@ exports[`should render correctly: default 1`] = `
defaultMessage="settings.almintegration.bitbucketcloud.info"
id="settings.almintegration.bitbucketcloud.info"
values={
- Object {
+ {
"doc_link": <withAppStateContext(DocLink)
to="/devops-platform-integration/bitbucket-integration/bitbucket-cloud-integration/"
>
@@ -102,7 +102,7 @@ exports[`should render correctly: invalid workspace ID 1`] = `
defaultMessage="settings.almintegration.form.workspace.bitbucketcloud.help"
id="settings.almintegration.form.workspace.bitbucketcloud.help"
values={
- Object {
+ {
"example": <React.Fragment>
https://bitbucket.org/
<strong>
@@ -129,7 +129,7 @@ exports[`should render correctly: invalid workspace ID 1`] = `
defaultMessage="settings.almintegration.bitbucketcloud.info"
id="settings.almintegration.bitbucketcloud.info"
values={
- Object {
+ {
"doc_link": <withAppStateContext(DocLink)
to="/devops-platform-integration/bitbucket-integration/bitbucket-cloud-integration/"
>
diff --git a/server/sonar-web/src/main/js/apps/settings/components/almIntegration/__tests__/__snapshots__/BitbucketForm-test.tsx.snap b/server/sonar-web/src/main/js/apps/settings/components/almIntegration/__tests__/__snapshots__/BitbucketForm-test.tsx.snap
index f5be3549dad..37f52f7b9e7 100644
--- a/server/sonar-web/src/main/js/apps/settings/components/almIntegration/__tests__/__snapshots__/BitbucketForm-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/settings/components/almIntegration/__tests__/__snapshots__/BitbucketForm-test.tsx.snap
@@ -15,12 +15,12 @@ exports[`should render correctly: bbc 1`] = `
label="settings.almintegration.form.choose_bitbucket_variant"
onCheck={[MockFunction]}
options={
- Array [
- Object {
+ [
+ {
"label": "Bitbucket Server",
"value": "bitbucket",
},
- Object {
+ {
"label": "Bitbucket Cloud",
"value": "bitbucketcloud",
},
@@ -32,7 +32,7 @@ exports[`should render correctly: bbc 1`] = `
</div>
<BitbucketCloudForm
formData={
- Object {
+ {
"clientId": "client1",
"clientSecret": "**clientsecret**",
"key": "key",
@@ -59,12 +59,12 @@ exports[`should render correctly: bbs 1`] = `
label="settings.almintegration.form.choose_bitbucket_variant"
onCheck={[MockFunction]}
options={
- Array [
- Object {
+ [
+ {
"label": "Bitbucket Server",
"value": "bitbucket",
},
- Object {
+ {
"label": "Bitbucket Cloud",
"value": "bitbucketcloud",
},
@@ -76,7 +76,7 @@ exports[`should render correctly: bbs 1`] = `
</div>
<BitbucketServerForm
formData={
- Object {
+ {
"key": "key",
"personalAccessToken": "asdf1234",
"url": "http://bbs.enterprise.com",
@@ -91,7 +91,7 @@ exports[`should render correctly: update bbc 1`] = `
<Fragment>
<BitbucketCloudForm
formData={
- Object {
+ {
"clientId": "client1",
"clientSecret": "**clientsecret**",
"key": "key",
@@ -107,7 +107,7 @@ exports[`should render correctly: update bbs 1`] = `
<Fragment>
<BitbucketServerForm
formData={
- Object {
+ {
"key": "key",
"personalAccessToken": "asdf1234",
"url": "http://bbs.enterprise.com",
diff --git a/server/sonar-web/src/main/js/apps/settings/components/almIntegration/__tests__/__snapshots__/BitbucketServerForm-test.tsx.snap b/server/sonar-web/src/main/js/apps/settings/components/almIntegration/__tests__/__snapshots__/BitbucketServerForm-test.tsx.snap
index 9489c049997..c937fdb2eb8 100644
--- a/server/sonar-web/src/main/js/apps/settings/components/almIntegration/__tests__/__snapshots__/BitbucketServerForm-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/settings/components/almIntegration/__tests__/__snapshots__/BitbucketServerForm-test.tsx.snap
@@ -17,7 +17,7 @@ exports[`should render correctly 1`] = `
defaultMessage="settings.almintegration.form.url.bitbucket.help"
id="settings.almintegration.form.url.bitbucket.help"
values={
- Object {
+ {
"example": "https://bitbucket-server.your-company.com",
}
}
@@ -35,7 +35,7 @@ exports[`should render correctly 1`] = `
defaultMessage="settings.almintegration.form.personal_access_token.bitbucket.help"
id="settings.almintegration.form.personal_access_token.bitbucket.help"
values={
- Object {
+ {
"doc_link": <withAppStateContext(DocLink)
to="/devops-platform-integration/bitbucket-integration/bitbucket-server-integration/"
>
diff --git a/server/sonar-web/src/main/js/apps/settings/components/almIntegration/__tests__/__snapshots__/CreationTooltip-test.tsx.snap b/server/sonar-web/src/main/js/apps/settings/components/almIntegration/__tests__/__snapshots__/CreationTooltip-test.tsx.snap
index 7892bc64d2e..c9564f6cefe 100644
--- a/server/sonar-web/src/main/js/apps/settings/components/almIntegration/__tests__/__snapshots__/CreationTooltip-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/settings/components/almIntegration/__tests__/__snapshots__/CreationTooltip-test.tsx.snap
@@ -8,7 +8,7 @@ exports[`should render correctly 1`] = `
defaultMessage="settings.almintegration.create.tooltip"
id="settings.almintegration.create.tooltip"
values={
- Object {
+ {
"alm": "alm.azure",
"link": <a
href="https://redirect.sonarsource.com/editions/enterprise.html?sourceEdition=community"
diff --git a/server/sonar-web/src/main/js/apps/settings/components/almIntegration/__tests__/__snapshots__/DeleteModal-test.tsx.snap b/server/sonar-web/src/main/js/apps/settings/components/almIntegration/__tests__/__snapshots__/DeleteModal-test.tsx.snap
index 78660781f84..48f49ab0594 100644
--- a/server/sonar-web/src/main/js/apps/settings/components/almIntegration/__tests__/__snapshots__/DeleteModal-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/settings/components/almIntegration/__tests__/__snapshots__/DeleteModal-test.tsx.snap
@@ -16,7 +16,7 @@ exports[`should render correctly 1`] = `
defaultMessage="settings.almintegration.delete.message"
id="settings.almintegration.delete.message"
values={
- Object {
+ {
"id": <b>
1
</b>,
@@ -47,7 +47,7 @@ exports[`should render correctly 2`] = `
defaultMessage="settings.almintegration.delete.message"
id="settings.almintegration.delete.message"
values={
- Object {
+ {
"id": <b>
1
</b>,
diff --git a/server/sonar-web/src/main/js/apps/settings/components/almIntegration/__tests__/__snapshots__/GithubForm-test.tsx.snap b/server/sonar-web/src/main/js/apps/settings/components/almIntegration/__tests__/__snapshots__/GithubForm-test.tsx.snap
index 49e546b829a..1abc6baade5 100644
--- a/server/sonar-web/src/main/js/apps/settings/components/almIntegration/__tests__/__snapshots__/GithubForm-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/settings/components/almIntegration/__tests__/__snapshots__/GithubForm-test.tsx.snap
@@ -42,7 +42,7 @@ exports[`should render correctly 1`] = `
defaultMessage="settings.almintegration.github.info"
id="settings.almintegration.github.info"
values={
- Object {
+ {
"link": <withAppStateContext(DocLink)
to="/devops-platform-integration/github-integration/"
>
@@ -145,7 +145,7 @@ exports[`should render correctly 2`] = `
defaultMessage="settings.almintegration.github.info"
id="settings.almintegration.github.info"
values={
- Object {
+ {
"link": <withAppStateContext(DocLink)
to="/devops-platform-integration/github-integration/"
>
diff --git a/server/sonar-web/src/main/js/apps/settings/components/almIntegration/__tests__/__snapshots__/GitlabForm-test.tsx.snap b/server/sonar-web/src/main/js/apps/settings/components/almIntegration/__tests__/__snapshots__/GitlabForm-test.tsx.snap
index 532dcecbe71..c7707c964b8 100644
--- a/server/sonar-web/src/main/js/apps/settings/components/almIntegration/__tests__/__snapshots__/GitlabForm-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/settings/components/almIntegration/__tests__/__snapshots__/GitlabForm-test.tsx.snap
@@ -33,7 +33,7 @@ exports[`should render correctly 1`] = `
defaultMessage="settings.almintegration.form.personal_access_token.gitlab.help"
id="settings.almintegration.form.personal_access_token.gitlab.help"
values={
- Object {
+ {
"doc_link": <withAppStateContext(DocLink)
to="/devops-platform-integration/gitlab-integration/"
>
@@ -100,7 +100,7 @@ exports[`should render correctly 2`] = `
defaultMessage="settings.almintegration.form.personal_access_token.gitlab.help"
id="settings.almintegration.form.personal_access_token.gitlab.help"
values={
- Object {
+ {
"doc_link": <withAppStateContext(DocLink)
to="/devops-platform-integration/gitlab-integration/"
>
diff --git a/server/sonar-web/src/main/js/apps/settings/components/inputs/__tests__/__snapshots__/InputForJSON-test.tsx.snap b/server/sonar-web/src/main/js/apps/settings/components/inputs/__tests__/__snapshots__/InputForJSON-test.tsx.snap
index 686f50937c9..3353ed9aa59 100644
--- a/server/sonar-web/src/main/js/apps/settings/components/inputs/__tests__/__snapshots__/InputForJSON-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/settings/components/inputs/__tests__/__snapshots__/InputForJSON-test.tsx.snap
@@ -9,7 +9,7 @@ exports[`should handle formatting for invalid JSON 1`] = `
name="foo"
onChange={[Function]}
rows={5}
- value="{\\"a\\": 1b}"
+ value="{"a": 1b}"
/>
<div>
<Alert
diff --git a/server/sonar-web/src/main/js/apps/settings/components/inputs/__tests__/__snapshots__/PrimitiveInput-test.tsx.snap b/server/sonar-web/src/main/js/apps/settings/components/inputs/__tests__/__snapshots__/PrimitiveInput-test.tsx.snap
index f65e5f36800..ddfa45a802d 100644
--- a/server/sonar-web/src/main/js/apps/settings/components/inputs/__tests__/__snapshots__/PrimitiveInput-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/settings/components/inputs/__tests__/__snapshots__/PrimitiveInput-test.tsx.snap
@@ -6,12 +6,12 @@ exports[`should render correctly for BOOLEAN 1`] = `
name="name"
onChange={[MockFunction]}
setting={
- Object {
- "definition": Object {
+ {
+ "definition": {
"category": "foo category",
- "fields": Array [],
+ "fields": [],
"key": "foo",
- "options": Array [],
+ "options": [],
"subCategory": "foo subCat",
"type": "BOOLEAN",
},
@@ -22,7 +22,7 @@ exports[`should render correctly for BOOLEAN 1`] = `
}
}
value={
- Array [
+ [
"foo",
]
}
@@ -35,12 +35,12 @@ exports[`should render correctly for FLOAT 1`] = `
name="name"
onChange={[MockFunction]}
setting={
- Object {
- "definition": Object {
+ {
+ "definition": {
"category": "foo category",
- "fields": Array [],
+ "fields": [],
"key": "foo",
- "options": Array [],
+ "options": [],
"subCategory": "foo subCat",
"type": "FLOAT",
},
@@ -51,7 +51,7 @@ exports[`should render correctly for FLOAT 1`] = `
}
}
value={
- Array [
+ [
"foo",
]
}
@@ -64,12 +64,12 @@ exports[`should render correctly for FORMATTED_TEXT 1`] = `
name="name"
onChange={[MockFunction]}
setting={
- Object {
- "definition": Object {
+ {
+ "definition": {
"category": "foo category",
- "fields": Array [],
+ "fields": [],
"key": "foo",
- "options": Array [],
+ "options": [],
"subCategory": "foo subCat",
"type": "FORMATTED_TEXT",
},
@@ -80,7 +80,7 @@ exports[`should render correctly for FORMATTED_TEXT 1`] = `
}
}
value={
- Array [
+ [
"foo",
]
}
@@ -93,12 +93,12 @@ exports[`should render correctly for INTEGER 1`] = `
name="name"
onChange={[MockFunction]}
setting={
- Object {
- "definition": Object {
+ {
+ "definition": {
"category": "foo category",
- "fields": Array [],
+ "fields": [],
"key": "foo",
- "options": Array [],
+ "options": [],
"subCategory": "foo subCat",
"type": "INTEGER",
},
@@ -109,7 +109,7 @@ exports[`should render correctly for INTEGER 1`] = `
}
}
value={
- Array [
+ [
"foo",
]
}
@@ -122,12 +122,12 @@ exports[`should render correctly for JSON 1`] = `
name="name"
onChange={[MockFunction]}
setting={
- Object {
- "definition": Object {
+ {
+ "definition": {
"category": "foo category",
- "fields": Array [],
+ "fields": [],
"key": "foo",
- "options": Array [],
+ "options": [],
"subCategory": "foo subCat",
"type": "JSON",
},
@@ -138,7 +138,7 @@ exports[`should render correctly for JSON 1`] = `
}
}
value={
- Array [
+ [
"foo",
]
}
@@ -151,12 +151,12 @@ exports[`should render correctly for LICENSE 1`] = `
name="name"
onChange={[MockFunction]}
setting={
- Object {
- "definition": Object {
+ {
+ "definition": {
"category": "foo category",
- "fields": Array [],
+ "fields": [],
"key": "foo",
- "options": Array [],
+ "options": [],
"subCategory": "foo subCat",
"type": "LICENSE",
},
@@ -167,7 +167,7 @@ exports[`should render correctly for LICENSE 1`] = `
}
}
value={
- Array [
+ [
"foo",
]
}
@@ -180,12 +180,12 @@ exports[`should render correctly for LONG 1`] = `
name="name"
onChange={[MockFunction]}
setting={
- Object {
- "definition": Object {
+ {
+ "definition": {
"category": "foo category",
- "fields": Array [],
+ "fields": [],
"key": "foo",
- "options": Array [],
+ "options": [],
"subCategory": "foo subCat",
"type": "LONG",
},
@@ -196,7 +196,7 @@ exports[`should render correctly for LONG 1`] = `
}
}
value={
- Array [
+ [
"foo",
]
}
@@ -209,12 +209,12 @@ exports[`should render correctly for PASSWORD 1`] = `
name="name"
onChange={[MockFunction]}
setting={
- Object {
- "definition": Object {
+ {
+ "definition": {
"category": "foo category",
- "fields": Array [],
+ "fields": [],
"key": "foo",
- "options": Array [],
+ "options": [],
"subCategory": "foo subCat",
"type": "PASSWORD",
},
@@ -225,7 +225,7 @@ exports[`should render correctly for PASSWORD 1`] = `
}
}
value={
- Array [
+ [
"foo",
]
}
@@ -238,12 +238,12 @@ exports[`should render correctly for PROPERTY_SET 1`] = `
name="name"
onChange={[MockFunction]}
setting={
- Object {
- "definition": Object {
+ {
+ "definition": {
"category": "foo category",
- "fields": Array [],
+ "fields": [],
"key": "foo",
- "options": Array [],
+ "options": [],
"subCategory": "foo subCat",
"type": "PROPERTY_SET",
},
@@ -254,7 +254,7 @@ exports[`should render correctly for PROPERTY_SET 1`] = `
}
}
value={
- Array [
+ [
"foo",
]
}
@@ -267,12 +267,12 @@ exports[`should render correctly for SINGLE_SELECT_LIST 1`] = `
name="name"
onChange={[MockFunction]}
setting={
- Object {
- "definition": Object {
+ {
+ "definition": {
"category": "foo category",
- "fields": Array [],
+ "fields": [],
"key": "foo",
- "options": Array [],
+ "options": [],
"subCategory": "foo subCat",
"type": "SINGLE_SELECT_LIST",
},
@@ -283,7 +283,7 @@ exports[`should render correctly for SINGLE_SELECT_LIST 1`] = `
}
}
value={
- Array [
+ [
"foo",
]
}
@@ -296,12 +296,12 @@ exports[`should render correctly for STRING 1`] = `
name="name"
onChange={[MockFunction]}
setting={
- Object {
- "definition": Object {
+ {
+ "definition": {
"category": "foo category",
- "fields": Array [],
+ "fields": [],
"key": "foo",
- "options": Array [],
+ "options": [],
"subCategory": "foo subCat",
"type": "STRING",
},
@@ -312,7 +312,7 @@ exports[`should render correctly for STRING 1`] = `
}
}
value={
- Array [
+ [
"foo",
]
}
@@ -325,12 +325,12 @@ exports[`should render correctly for TEXT 1`] = `
name="name"
onChange={[MockFunction]}
setting={
- Object {
- "definition": Object {
+ {
+ "definition": {
"category": "foo category",
- "fields": Array [],
+ "fields": [],
"key": "foo",
- "options": Array [],
+ "options": [],
"subCategory": "foo subCat",
"type": "TEXT",
},
@@ -341,7 +341,7 @@ exports[`should render correctly for TEXT 1`] = `
}
}
value={
- Array [
+ [
"foo",
]
}
diff --git a/server/sonar-web/src/main/js/apps/settings/components/pullRequestDecorationBinding/__tests__/__snapshots__/AlmSpecificForm-test.tsx.snap b/server/sonar-web/src/main/js/apps/settings/components/pullRequestDecorationBinding/__tests__/__snapshots__/AlmSpecificForm-test.tsx.snap
index d860fad3267..555d867cbe7 100644
--- a/server/sonar-web/src/main/js/apps/settings/components/pullRequestDecorationBinding/__tests__/__snapshots__/AlmSpecificForm-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/settings/components/pullRequestDecorationBinding/__tests__/__snapshots__/AlmSpecificForm-test.tsx.snap
@@ -801,7 +801,7 @@ exports[`should render the monorepo field when the feature is supported 1`] = `
defaultMessage="settings.pr_decoration.binding.form.monorepo.help"
id="settings.pr_decoration.binding.form.monorepo.help"
values={
- Object {
+ {
"doc_link": <withAppStateContext(DocLink)
to="/devops-platform-integration/azure-devops-integration/"
>
diff --git a/server/sonar-web/src/main/js/apps/settings/components/pullRequestDecorationBinding/__tests__/__snapshots__/PRDecorationBinding-test.tsx.snap b/server/sonar-web/src/main/js/apps/settings/components/pullRequestDecorationBinding/__tests__/__snapshots__/PRDecorationBinding-test.tsx.snap
index aa67734fdaf..53dc3641152 100644
--- a/server/sonar-web/src/main/js/apps/settings/components/pullRequestDecorationBinding/__tests__/__snapshots__/PRDecorationBinding-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/settings/components/pullRequestDecorationBinding/__tests__/__snapshots__/PRDecorationBinding-test.tsx.snap
@@ -4,12 +4,12 @@ exports[`should render correctly 1`] = `
<PRDecorationBindingRenderer
checkingConfiguration={false}
formData={
- Object {
+ {
"key": "",
"monorepo": false,
}
}
- instances={Array []}
+ instances={[]}
isChanged={false}
isConfigured={false}
isSysAdmin={false}
diff --git a/server/sonar-web/src/main/js/apps/settings/components/pullRequestDecorationBinding/__tests__/__snapshots__/PRDecorationBindingRenderer-test.tsx.snap b/server/sonar-web/src/main/js/apps/settings/components/pullRequestDecorationBinding/__tests__/__snapshots__/PRDecorationBindingRenderer-test.tsx.snap
index ba29cae6f90..0bd144c7702 100644
--- a/server/sonar-web/src/main/js/apps/settings/components/pullRequestDecorationBinding/__tests__/__snapshots__/PRDecorationBindingRenderer-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/settings/components/pullRequestDecorationBinding/__tests__/__snapshots__/PRDecorationBindingRenderer-test.tsx.snap
@@ -134,23 +134,23 @@ exports[`should render correctly: when there are configuration errors (admin use
initialValue="i1"
inputId="name"
instances={
- Array [
- Object {
+ [
+ {
"alm": "github",
"key": "i1",
"url": "http://github.enterprise.com",
},
- Object {
+ {
"alm": "github",
"key": "i2",
"url": "http://github.enterprise.com",
},
- Object {
+ {
"alm": "bitbucket",
"key": "i3",
"url": "http://bbs.enterprise.com",
},
- Object {
+ {
"alm": "azure",
"key": "i4",
},
@@ -163,30 +163,30 @@ exports[`should render correctly: when there are configuration errors (admin use
<withAvailableFeaturesContext(AlmSpecificForm)
alm="github"
formData={
- Object {
+ {
"key": "i1",
"monorepo": false,
"repository": "account/repo",
}
}
instances={
- Array [
- Object {
+ [
+ {
"alm": "github",
"key": "i1",
"url": "http://github.enterprise.com",
},
- Object {
+ {
"alm": "github",
"key": "i2",
"url": "http://github.enterprise.com",
},
- Object {
+ {
"alm": "bitbucket",
"key": "i3",
"url": "http://bbs.enterprise.com",
},
- Object {
+ {
"alm": "azure",
"key": "i4",
},
@@ -247,10 +247,10 @@ exports[`should render correctly: when there are configuration errors (admin use
defaultMessage="settings.pr_decoration.binding.check_configuration.failure.check_global_settings"
id="settings.pr_decoration.binding.check_configuration.failure.check_global_settings"
values={
- Object {
+ {
"link": <ForwardRef(Link)
to={
- Object {
+ {
"pathname": "/admin/settings",
"search": "?category=almintegration&alm=github",
}
@@ -318,23 +318,23 @@ exports[`should render correctly: when there are configuration errors (admin use
initialValue=""
inputId="name"
instances={
- Array [
- Object {
+ [
+ {
"alm": "github",
"key": "i1",
"url": "http://github.enterprise.com",
},
- Object {
+ {
"alm": "github",
"key": "i2",
"url": "http://github.enterprise.com",
},
- Object {
+ {
"alm": "bitbucket",
"key": "i3",
"url": "http://bbs.enterprise.com",
},
- Object {
+ {
"alm": "azure",
"key": "i4",
},
@@ -448,23 +448,23 @@ exports[`should render correctly: when there are configuration errors (non-admin
initialValue=""
inputId="name"
instances={
- Array [
- Object {
+ [
+ {
"alm": "github",
"key": "i1",
"url": "http://github.enterprise.com",
},
- Object {
+ {
"alm": "github",
"key": "i2",
"url": "http://github.enterprise.com",
},
- Object {
+ {
"alm": "bitbucket",
"key": "i3",
"url": "http://bbs.enterprise.com",
},
- Object {
+ {
"alm": "azure",
"key": "i4",
},
@@ -581,8 +581,8 @@ exports[`should render correctly: with a single ALM instance 1`] = `
initialValue=""
inputId="name"
instances={
- Array [
- Object {
+ [
+ {
"alm": "github",
"key": "i1",
"url": "http://github.enterprise.com",
@@ -651,23 +651,23 @@ exports[`should render correctly: with a valid and saved form 1`] = `
initialValue="i1"
inputId="name"
instances={
- Array [
- Object {
+ [
+ {
"alm": "github",
"key": "i1",
"url": "http://github.enterprise.com",
},
- Object {
+ {
"alm": "github",
"key": "i2",
"url": "http://github.enterprise.com",
},
- Object {
+ {
"alm": "bitbucket",
"key": "i3",
"url": "http://bbs.enterprise.com",
},
- Object {
+ {
"alm": "azure",
"key": "i4",
},
@@ -680,30 +680,30 @@ exports[`should render correctly: with a valid and saved form 1`] = `
<withAvailableFeaturesContext(AlmSpecificForm)
alm="github"
formData={
- Object {
+ {
"key": "i1",
"monorepo": false,
"repository": "account/repo",
}
}
instances={
- Array [
- Object {
+ [
+ {
"alm": "github",
"key": "i1",
"url": "http://github.enterprise.com",
},
- Object {
+ {
"alm": "github",
"key": "i2",
"url": "http://github.enterprise.com",
},
- Object {
+ {
"alm": "bitbucket",
"key": "i3",
"url": "http://bbs.enterprise.com",
},
- Object {
+ {
"alm": "azure",
"key": "i4",
},
@@ -797,23 +797,23 @@ exports[`should render correctly: with an empty form 1`] = `
initialValue=""
inputId="name"
instances={
- Array [
- Object {
+ [
+ {
"alm": "github",
"key": "i1",
"url": "http://github.enterprise.com",
},
- Object {
+ {
"alm": "github",
"key": "i2",
"url": "http://github.enterprise.com",
},
- Object {
+ {
"alm": "bitbucket",
"key": "i3",
"url": "http://bbs.enterprise.com",
},
- Object {
+ {
"alm": "azure",
"key": "i4",
},
@@ -840,10 +840,10 @@ exports[`should render correctly: with no ALM instances (admin user) 1`] = `
defaultMessage="settings.pr_decoration.binding.no_bindings.admin"
id="settings.pr_decoration.binding.no_bindings.admin"
values={
- Object {
+ {
"link": <ForwardRef(Link)
to={
- Object {
+ {
"pathname": "/admin/settings",
"search": "?category=almintegration",
}
diff --git a/server/sonar-web/src/main/js/apps/settings/encryption/__tests__/__snapshots__/EncryptionForm-test.tsx.snap b/server/sonar-web/src/main/js/apps/settings/encryption/__tests__/__snapshots__/EncryptionForm-test.tsx.snap
index c8771a86fd7..cac7af83afd 100644
--- a/server/sonar-web/src/main/js/apps/settings/encryption/__tests__/__snapshots__/EncryptionForm-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/settings/encryption/__tests__/__snapshots__/EncryptionForm-test.tsx.snap
@@ -49,7 +49,7 @@ exports[`should render correctly 1`] = `
defaultMessage="encryption.form_note"
id="encryption.form_note"
values={
- Object {
+ {
"moreInformationLink": <withAppStateContext(DocLink)
to="/instance-administration/security/"
>
diff --git a/server/sonar-web/src/main/js/apps/settings/encryption/__tests__/__snapshots__/GenerateSecretKeyForm-test.tsx.snap b/server/sonar-web/src/main/js/apps/settings/encryption/__tests__/__snapshots__/GenerateSecretKeyForm-test.tsx.snap
index 82f4f112d07..2249cde68e0 100644
--- a/server/sonar-web/src/main/js/apps/settings/encryption/__tests__/__snapshots__/GenerateSecretKeyForm-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/settings/encryption/__tests__/__snapshots__/GenerateSecretKeyForm-test.tsx.snap
@@ -15,7 +15,7 @@ exports[`should render correctly 1`] = `
defaultMessage="encryption.secret_key_description"
id="encryption.secret_key_description"
values={
- Object {
+ {
"moreInformationLink": <withAppStateContext(DocLink)
to="/instance-administration/security/"
>
diff --git a/server/sonar-web/src/main/js/apps/system/components/__tests__/__snapshots__/App-test.tsx.snap b/server/sonar-web/src/main/js/apps/system/components/__tests__/__snapshots__/App-test.tsx.snap
index f439306338c..1f62f012092 100644
--- a/server/sonar-web/src/main/js/apps/system/components/__tests__/__snapshots__/App-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/system/components/__tests__/__snapshots__/App-test.tsx.snap
@@ -30,107 +30,107 @@ exports[`should render correctly: cluster sysinfo 1`] = `
version="7.8"
/>
<ClusterSysInfos
- expandedCards={Array []}
+ expandedCards={[]}
sysInfoData={
- Object {
- "Application Nodes": Array [
- Object {
- "Compute Engine Database Connection": Object {
+ {
+ "Application Nodes": [
+ {
+ "Compute Engine Database Connection": {
"Pool Active Connections": 0,
"Pool Initial Size": 0,
},
- "Compute Engine JVM Properties": Object {
+ "Compute Engine JVM Properties": {
"file.encoding": "UTF-8",
"file.separator": "/",
},
- "Compute Engine JVM State": Object {
+ "Compute Engine JVM State": {
"Free Memory (MB)": 78,
"Max Memory (MB)": 1024,
},
- "Compute Engine Logging": Object {
+ "Compute Engine Logging": {
"Logs Level": "INFO",
},
- "Compute Engine Tasks": Object {
+ "Compute Engine Tasks": {
"In Progress": 0,
"Pending": 0,
},
"Health": "GREEN",
- "Health Causes": Array [],
+ "Health Causes": [],
"Host": "10.0.0.0",
"Name": "server9.example.com",
- "Plugins": Object {
+ "Plugins": {
"java": "5.13.0.17924 [SonarJava]",
},
- "System": Object {
+ "System": {
"Version": "7.8",
},
- "Web Database Connection": Object {
+ "Web Database Connection": {
"Pool Active Connections": 1,
},
- "Web JVM Properties": Object {
+ "Web JVM Properties": {
"file.encoding": "UTF-8",
"file.separator": "/",
},
- "Web JVM State": Object {
+ "Web JVM State": {
"Free Memory (MB)": 122,
"Max Memory (MB)": 1024,
},
- "Web Logging": Object {
+ "Web Logging": {
"Logs Level": "DEBUG",
},
},
- Object {
- "Compute Engine Database Connection": Object {
+ {
+ "Compute Engine Database Connection": {
"Pool Active Connections": 0,
"Pool Initial Size": 0,
},
- "Compute Engine JVM Properties": Object {
+ "Compute Engine JVM Properties": {
"file.encoding": "UTF-8",
"file.separator": "/",
},
- "Compute Engine JVM State": Object {
+ "Compute Engine JVM State": {
"Free Memory (MB)": 89,
"Max Memory (MB)": 1024,
},
- "Compute Engine Logging": Object {
+ "Compute Engine Logging": {
"Logs Level": "INFO",
},
- "Compute Engine Tasks": Object {
+ "Compute Engine Tasks": {
"In Progress": 0,
"Pending": 0,
},
"Health": "GREEN",
- "Health Causes": Array [],
+ "Health Causes": [],
"Host": "10.0.0.0",
"Name": "server9.example.com",
- "Plugins": Object {
+ "Plugins": {
"java": "5.13.0.17924 [SonarJava]",
},
- "System": Object {
+ "System": {
"Version": "7.8",
},
- "Web Database Connection": Object {
+ "Web Database Connection": {
"Pool Active Connections": 0,
"Pool Max Connections": 60,
},
- "Web JVM Properties": Object {
+ "Web JVM Properties": {
"file.encoding": "UTF-8",
"file.separator": "/",
},
- "Web JVM State": Object {
+ "Web JVM State": {
"Free Memory (MB)": 111,
"Max Memory (MB)": 1024,
},
- "Web Logging": Object {
+ "Web Logging": {
"Logs Level": "INFO",
},
},
],
- "Compute Engine Tasks": Object {
+ "Compute Engine Tasks": {
"Total In Progress": 0,
"Total Pending": 0,
},
- "Database": Object {
+ "Database": {
"Database": "PostgreSQL",
"Database Version": "10.3",
"Driver": "PostgreSQL JDBC Driver",
@@ -139,49 +139,49 @@ exports[`should render correctly: cluster sysinfo 1`] = `
"Username": "sonar",
},
"Health": "GREEN",
- "Health Causes": Array [],
- "Search Indexes": Object {
+ "Health Causes": [],
+ "Search Indexes": {
"Index components - Docs": 30445,
"Index components - Shards": 10,
},
- "Search Nodes": Array [
- Object {
+ "Search Nodes": [
+ {
"Host": "10.0.0.0",
"Name": "server.example.com",
- "Search State": Object {
+ "Search State": {
"CPU Usage (%)": 0,
"Disk Available": "93 GB",
},
},
- Object {
+ {
"Host": "10.0.0.0",
"Name": "server.example.com",
- "Search State": Object {
+ "Search State": {
"CPU Usage (%)": 0,
"Disk Available": "93 GB",
},
},
- Object {
+ {
"Host": "10.0.0.0",
"Name": "server.example.com",
- "Search State": Object {
+ "Search State": {
"CPU Usage (%)": 0,
"Disk Available": "93 GB",
},
},
],
- "Search State": Object {
+ "Search State": {
"Nodes": 3,
"State": "GREEN",
},
- "Settings": Object {
+ "Settings": {
"sonar.cluster.enabled": "true",
"sonar.cluster.node.name": "server9.example.com",
},
- "Statistics": Object {
+ "Statistics": {
"ncloc": 989880,
},
- "System": Object {
+ "System": {
"High Availability": true,
"Server ID": "asd564-asd54a-5dsfg45",
"Version": "7.8",
@@ -246,32 +246,32 @@ exports[`should render correctly: stand-alone sysinfo 1`] = `
version="7.8"
/>
<StandAloneSysInfos
- expandedCards={Array []}
+ expandedCards={[]}
sysInfoData={
- Object {
- "ALMs": Object {},
- "Bundled": Object {},
- "Compute Engine Database Connection": Object {
+ {
+ "ALMs": {},
+ "Bundled": {},
+ "Compute Engine Database Connection": {
"Pool Active Connections": 0,
"Pool Initial Size": 0,
},
- "Compute Engine JVM Properties": Object {
+ "Compute Engine JVM Properties": {
"file.encoding": "UTF-8",
"file.separator": "/",
},
- "Compute Engine JVM State": Object {
+ "Compute Engine JVM State": {
"Free Memory (MB)": 89,
"Max Memory (MB)": 1024,
},
- "Compute Engine Logging": Object {
+ "Compute Engine Logging": {
"Logs Dir": "/logs",
"Logs Level": "DEBUG",
},
- "Compute Engine Tasks": Object {
+ "Compute Engine Tasks": {
"In Progress": 0,
"Pending": 0,
},
- "Database": Object {
+ "Database": {
"Database": "PostgreSQL",
"Database Version": "10.3",
"Driver": "PostgreSQL JDBC Driver",
@@ -280,38 +280,38 @@ exports[`should render correctly: stand-alone sysinfo 1`] = `
"Username": "sonar",
},
"Health": "GREEN",
- "Health Causes": Array [],
- "Plugins": Object {},
- "Search Indexes": Object {
+ "Health Causes": [],
+ "Plugins": {},
+ "Search Indexes": {
"Index components - Docs": 30445,
"Index components - Shards": 10,
},
- "Search State": Object {
+ "Search State": {
"Nodes": 3,
"State": "GREEN",
},
- "Settings": Object {
+ "Settings": {
"sonar.cluster.enabled": "true",
"sonar.cluster.node.name": "server9.example.com",
},
- "System": Object {
+ "System": {
"High Availability": false,
"Server ID": "asd564-asd54a-5dsfg45",
"Version": "7.8",
},
- "Web Database Connection": Object {
+ "Web Database Connection": {
"Pool Active Connections": 0,
"Pool Max Connections": 60,
},
- "Web JVM Properties": Object {
+ "Web JVM Properties": {
"file.encoding": "UTF-8",
"file.separator": "/",
},
- "Web JVM State": Object {
+ "Web JVM State": {
"Free Memory (MB)": 111,
"Max Memory (MB)": 1024,
},
- "Web Logging": Object {
+ "Web Logging": {
"Logs Dir": "/logs",
"Logs Level": "INFO",
},
diff --git a/server/sonar-web/src/main/js/apps/system/components/__tests__/__snapshots__/ClusterSysInfos-test.tsx.snap b/server/sonar-web/src/main/js/apps/system/components/__tests__/__snapshots__/ClusterSysInfos-test.tsx.snap
index a186f4110d3..6f44479f0e0 100644
--- a/server/sonar-web/src/main/js/apps/system/components/__tests__/__snapshots__/ClusterSysInfos-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/system/components/__tests__/__snapshots__/ClusterSysInfos-test.tsx.snap
@@ -6,7 +6,7 @@ exports[`should support more than two nodes 1`] = `
biggerHealth={true}
health="RED"
healthCauses={
- Array [
+ [
"Database down",
]
}
@@ -14,12 +14,12 @@ exports[`should support more than two nodes 1`] = `
onClick={[Function]}
open={true}
sysInfoData={
- Object {
- "Compute Engine Tasks": Object {
+ {
+ "Compute Engine Tasks": {
"Total In Progress": 0,
"Total Pending": 0,
},
- "Database": Object {
+ "Database": {
"Database": "PostgreSQL",
"Database Version": "10.3",
"Driver": "PostgreSQL JDBC Driver",
@@ -29,11 +29,11 @@ exports[`should support more than two nodes 1`] = `
},
"High Availability": true,
"Lines of Code": "989,880",
- "Search Indexes": Object {
+ "Search Indexes": {
"Index components - Docs": 30445,
"Index components - Shards": 10,
},
- "Search State": Object {
+ "Search State": {
"Nodes": 3,
"State": "GREEN",
},
@@ -47,17 +47,17 @@ exports[`should support more than two nodes 1`] = `
</li>
<HealthCard
health="GREEN"
- healthCauses={Array []}
+ healthCauses={[]}
key="Bar"
name="Bar"
onClick={[Function]}
open={false}
sysInfoData={
- Object {
- "Compute Engine Logging": Object {
+ {
+ "Compute Engine Logging": {
"Logs Level": "INFO",
},
- "Web Logging": Object {
+ "Web Logging": {
"Logs Level": "INFO",
},
}
@@ -74,11 +74,11 @@ exports[`should support more than two nodes 1`] = `
onClick={[Function]}
open={false}
sysInfoData={
- Object {
- "Compute Engine Logging": Object {
+ {
+ "Compute Engine Logging": {
"Logs Level": "INFO",
},
- "Web Logging": Object {
+ "Web Logging": {
"Logs Level": "INFO",
},
}
diff --git a/server/sonar-web/src/main/js/apps/system/components/__tests__/__snapshots__/StandaloneSysInfos-test.tsx.snap b/server/sonar-web/src/main/js/apps/system/components/__tests__/__snapshots__/StandaloneSysInfos-test.tsx.snap
index 0d5a69d87e1..a5e38efa9cf 100644
--- a/server/sonar-web/src/main/js/apps/system/components/__tests__/__snapshots__/StandaloneSysInfos-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/system/components/__tests__/__snapshots__/StandaloneSysInfos-test.tsx.snap
@@ -6,7 +6,7 @@ exports[`should render correctly 1`] = `
biggerHealth={true}
health="RED"
healthCauses={
- Array [
+ [
"Database down",
]
}
@@ -14,8 +14,8 @@ exports[`should render correctly 1`] = `
onClick={[Function]}
open={false}
sysInfoData={
- Object {
- "Database": Object {
+ {
+ "Database": {
"Database": "PostgreSQL",
"Database Version": "10.3",
"Driver": "PostgreSQL JDBC Driver",
@@ -33,20 +33,20 @@ exports[`should render correctly 1`] = `
onClick={[Function]}
open={false}
sysInfoData={
- Object {
- "Web Database Connection": Object {
+ {
+ "Web Database Connection": {
"Pool Active Connections": 0,
"Pool Max Connections": 60,
},
- "Web JVM Properties": Object {
+ "Web JVM Properties": {
"file.encoding": "UTF-8",
"file.separator": "/",
},
- "Web JVM State": Object {
+ "Web JVM State": {
"Free Memory (MB)": 111,
"Max Memory (MB)": 1024,
},
- "Web Logging": Object {
+ "Web Logging": {
"Logs Dir": "/logs",
"Logs Level": "INFO",
},
@@ -59,24 +59,24 @@ exports[`should render correctly 1`] = `
onClick={[Function]}
open={true}
sysInfoData={
- Object {
- "Compute Engine Database Connection": Object {
+ {
+ "Compute Engine Database Connection": {
"Pool Active Connections": 0,
"Pool Initial Size": 0,
},
- "Compute Engine JVM Properties": Object {
+ "Compute Engine JVM Properties": {
"file.encoding": "UTF-8",
"file.separator": "/",
},
- "Compute Engine JVM State": Object {
+ "Compute Engine JVM State": {
"Free Memory (MB)": 89,
"Max Memory (MB)": 1024,
},
- "Compute Engine Logging": Object {
+ "Compute Engine Logging": {
"Logs Dir": "/logs",
"Logs Level": "DEBUG",
},
- "Compute Engine Tasks": Object {
+ "Compute Engine Tasks": {
"In Progress": 0,
"Pending": 0,
},
@@ -89,12 +89,12 @@ exports[`should render correctly 1`] = `
onClick={[Function]}
open={false}
sysInfoData={
- Object {
- "Search Indexes": Object {
+ {
+ "Search Indexes": {
"Index components - Docs": 30445,
"Index components - Shards": 10,
},
- "Search State": Object {
+ "Search State": {
"Nodes": 3,
"State": "GREEN",
},
diff --git a/server/sonar-web/src/main/js/apps/system/components/info-items/__tests__/__snapshots__/HealthCard-test.tsx.snap b/server/sonar-web/src/main/js/apps/system/components/info-items/__tests__/__snapshots__/HealthCard-test.tsx.snap
index b4210356c2e..c2312372cea 100644
--- a/server/sonar-web/src/main/js/apps/system/components/info-items/__tests__/__snapshots__/HealthCard-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/system/components/info-items/__tests__/__snapshots__/HealthCard-test.tsx.snap
@@ -30,7 +30,7 @@ exports[`should show a main section and multiple sub sections 1`] = `
>
<Section
items={
- Object {
+ {
"Name": "foo",
"bar": "Bar",
}
@@ -38,7 +38,7 @@ exports[`should show a main section and multiple sub sections 1`] = `
/>
<Section
items={
- Object {
+ {
"db": "test",
}
}
@@ -47,7 +47,7 @@ exports[`should show a main section and multiple sub sections 1`] = `
/>
<Section
items={
- Object {
+ {
"Elastic": "search",
}
}
diff --git a/server/sonar-web/src/main/js/apps/system/components/info-items/__tests__/__snapshots__/Section-test.tsx.snap b/server/sonar-web/src/main/js/apps/system/components/info-items/__tests__/__snapshots__/Section-test.tsx.snap
index ecbb9a4b5b3..b2a00b9c039 100644
--- a/server/sonar-web/src/main/js/apps/system/components/info-items/__tests__/__snapshots__/Section-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/system/components/info-items/__tests__/__snapshots__/Section-test.tsx.snap
@@ -22,7 +22,7 @@ exports[`should not render a title 1`] = `
</td>
<td
style={
- Object {
+ {
"wordBreak": "break-all",
}
}
@@ -66,7 +66,7 @@ exports[`should render correctly 1`] = `
</td>
<td
style={
- Object {
+ {
"wordBreak": "break-all",
}
}
@@ -91,7 +91,7 @@ exports[`should render correctly 1`] = `
</td>
<td
style={
- Object {
+ {
"wordBreak": "break-all",
}
}
@@ -116,7 +116,7 @@ exports[`should render correctly 1`] = `
</td>
<td
style={
- Object {
+ {
"wordBreak": "break-all",
}
}
diff --git a/server/sonar-web/src/main/js/apps/system/components/info-items/__tests__/__snapshots__/SysInfoItem-test.tsx.snap b/server/sonar-web/src/main/js/apps/system/components/info-items/__tests__/__snapshots__/SysInfoItem-test.tsx.snap
index 7b2c54af4c1..26fb233e4a4 100644
--- a/server/sonar-web/src/main/js/apps/system/components/info-items/__tests__/__snapshots__/SysInfoItem-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/system/components/info-items/__tests__/__snapshots__/SysInfoItem-test.tsx.snap
@@ -38,7 +38,7 @@ exports[`should render correctly: object 1`] = `
<SysInfoItem
name="bar"
value={
- Object {
+ {
"a": 1,
"b": "b",
}
diff --git a/server/sonar-web/src/main/js/apps/tutorials/components/__tests__/__snapshots__/TutorialsApp-test.tsx.snap b/server/sonar-web/src/main/js/apps/tutorials/components/__tests__/__snapshots__/TutorialsApp-test.tsx.snap
index ddeed501f58..52fa708d935 100644
--- a/server/sonar-web/src/main/js/apps/tutorials/components/__tests__/__snapshots__/TutorialsApp-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/tutorials/components/__tests__/__snapshots__/TutorialsApp-test.tsx.snap
@@ -6,37 +6,37 @@ exports[`should render correctly 1`] = `
>
<withRouter(TutorialSelection)
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "TRK",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
currentUser={
- Object {
- "dismissedNotices": Object {
+ {
+ "dismissedNotices": {
"educationPrinciples": false,
},
- "groups": Array [],
+ "groups": [],
"isLoggedIn": true,
"login": "luke",
"name": "Skywalker",
- "scmAccounts": Array [],
+ "scmAccounts": [],
}
}
/>
@@ -49,41 +49,41 @@ exports[`should render correctly 2`] = `
>
<withRouter(TutorialSelection)
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "TRK",
- "qualityGate": Object {
+ "qualityGate": {
"isDefault": true,
"key": "30",
"name": "Sonar way",
},
- "qualityProfiles": Array [
- Object {
+ "qualityProfiles": [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
"name": "Sonar way",
},
],
- "tags": Array [],
+ "tags": [],
}
}
currentUser={
- Object {
- "dismissedNotices": Object {
+ {
+ "dismissedNotices": {
"educationPrinciples": false,
},
- "groups": Array [],
+ "groups": [],
"isLoggedIn": true,
"login": "luke",
"name": "Skywalker",
- "scmAccounts": Array [],
+ "scmAccounts": [],
}
}
projectBinding={
- Object {
+ {
"alm": "azure",
"key": "foo",
"monorepo": false,
diff --git a/server/sonar-web/src/main/js/apps/users/__tests__/__snapshots__/UsersApp-test.tsx.snap b/server/sonar-web/src/main/js/apps/users/__tests__/__snapshots__/UsersApp-test.tsx.snap
index cfb5fcdec4a..aee0b17d53a 100644
--- a/server/sonar-web/src/main/js/apps/users/__tests__/__snapshots__/UsersApp-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/users/__tests__/__snapshots__/UsersApp-test.tsx.snap
@@ -20,7 +20,7 @@ exports[`should render correctly 1`] = `
/>
<Search
query={
- Object {
+ {
"search": "",
}
}
@@ -28,16 +28,16 @@ exports[`should render correctly 1`] = `
/>
<UsersList
currentUser={
- Object {
- "dismissedNotices": Object {},
+ {
+ "dismissedNotices": {},
"isLoggedIn": true,
"login": "luke",
}
}
- identityProviders={Array []}
+ identityProviders={[]}
onUpdateUsers={[Function]}
updateTokensCount={[Function]}
- users={Array []}
+ users={[]}
/>
</div>
`;
@@ -62,7 +62,7 @@ exports[`should render correctly 2`] = `
/>
<Search
query={
- Object {
+ {
"search": "",
}
}
@@ -70,15 +70,15 @@ exports[`should render correctly 2`] = `
/>
<UsersList
currentUser={
- Object {
- "dismissedNotices": Object {},
+ {
+ "dismissedNotices": {},
"isLoggedIn": true,
"login": "luke",
}
}
identityProviders={
- Array [
- Object {
+ [
+ {
"backgroundColor": "blue",
"iconPath": "icon/path",
"key": "foo",
@@ -89,13 +89,13 @@ exports[`should render correctly 2`] = `
onUpdateUsers={[Function]}
updateTokensCount={[Function]}
users={
- Array [
- Object {
+ [
+ {
"active": true,
"local": false,
"login": "luke",
"name": "Luke",
- "scmAccounts": Array [],
+ "scmAccounts": [],
},
]
}
diff --git a/server/sonar-web/src/main/js/apps/users/__tests__/__snapshots__/UsersList-test.tsx.snap b/server/sonar-web/src/main/js/apps/users/__tests__/__snapshots__/UsersList-test.tsx.snap
index 739952fb5a9..175936df424 100644
--- a/server/sonar-web/src/main/js/apps/users/__tests__/__snapshots__/UsersList-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/users/__tests__/__snapshots__/UsersList-test.tsx.snap
@@ -48,12 +48,12 @@ exports[`should render correctly 1`] = `
onUpdateUsers={[MockFunction]}
updateTokensCount={[MockFunction]}
user={
- Object {
+ {
"active": true,
"local": false,
"login": "luke",
"name": "Luke",
- "scmAccounts": Array [],
+ "scmAccounts": [],
}
}
/>
@@ -63,12 +63,12 @@ exports[`should render correctly 1`] = `
onUpdateUsers={[MockFunction]}
updateTokensCount={[MockFunction]}
user={
- Object {
+ {
"active": true,
"local": false,
"login": "obi",
"name": "One",
- "scmAccounts": Array [],
+ "scmAccounts": [],
}
}
/>
diff --git a/server/sonar-web/src/main/js/apps/users/components/__tests__/__snapshots__/GroupsForm-test.tsx.snap b/server/sonar-web/src/main/js/apps/users/components/__tests__/__snapshots__/GroupsForm-test.tsx.snap
index f8a5bab167e..42d2eea5e78 100644
--- a/server/sonar-web/src/main/js/apps/users/components/__tests__/__snapshots__/GroupsForm-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/users/components/__tests__/__snapshots__/GroupsForm-test.tsx.snap
@@ -17,7 +17,7 @@ exports[`should render correctly 1`] = `
>
<SelectList
elements={
- Array [
+ [
"test1",
"test2",
"test3",
@@ -30,7 +30,7 @@ exports[`should render correctly 1`] = `
onUnselect={[Function]}
renderElement={[Function]}
selectedElements={
- Array [
+ [
"test1",
"test2",
]
diff --git a/server/sonar-web/src/main/js/apps/users/components/__tests__/__snapshots__/TokensFormItem-test.tsx.snap b/server/sonar-web/src/main/js/apps/users/components/__tests__/__snapshots__/TokensFormItem-test.tsx.snap
index 9ca6159cd85..72ac5758063 100644
--- a/server/sonar-web/src/main/js/apps/users/components/__tests__/__snapshots__/TokensFormItem-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/users/components/__tests__/__snapshots__/TokensFormItem-test.tsx.snap
@@ -109,7 +109,7 @@ exports[`should render correctly 2`] = `
defaultMessage="users.tokens.sure_X"
id="users.tokens.sure_X"
values={
- Object {
+ {
"token": <strong>
foo
</strong>,
diff --git a/server/sonar-web/src/main/js/apps/users/components/__tests__/__snapshots__/TokensFormModal-test.tsx.snap b/server/sonar-web/src/main/js/apps/users/components/__tests__/__snapshots__/TokensFormModal-test.tsx.snap
index d52a6fcd165..b2fc2f786f1 100644
--- a/server/sonar-web/src/main/js/apps/users/components/__tests__/__snapshots__/TokensFormModal-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/users/components/__tests__/__snapshots__/TokensFormModal-test.tsx.snap
@@ -14,7 +14,7 @@ exports[`should render correctly 1`] = `
defaultMessage="users.user_X_tokens"
id="users.user_X_tokens"
values={
- Object {
+ {
"user": <em>
John Doe
</em>,
diff --git a/server/sonar-web/src/main/js/apps/users/components/__tests__/__snapshots__/UserListItem-test.tsx.snap b/server/sonar-web/src/main/js/apps/users/components/__tests__/__snapshots__/UserListItem-test.tsx.snap
index 9d62cbde539..a4e8b65bfc3 100644
--- a/server/sonar-web/src/main/js/apps/users/components/__tests__/__snapshots__/UserListItem-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/users/components/__tests__/__snapshots__/UserListItem-test.tsx.snap
@@ -12,13 +12,13 @@ exports[`should render correctly 1`] = `
</td>
<UserListItemIdentity
user={
- Object {
+ {
"active": true,
"lastConnectionDate": "2019-01-18T15:06:33+0100",
"local": false,
"login": "obi",
"name": "One",
- "scmAccounts": Array [],
+ "scmAccounts": [],
}
}
/>
@@ -26,7 +26,7 @@ exports[`should render correctly 1`] = `
className="thin nowrap text-middle"
>
<UserScmAccounts
- scmAccounts={Array []}
+ scmAccounts={[]}
/>
</td>
<td
@@ -41,16 +41,16 @@ exports[`should render correctly 1`] = `
className="thin nowrap text-middle"
>
<UserGroups
- groups={Array []}
+ groups={[]}
onUpdateUsers={[MockFunction]}
user={
- Object {
+ {
"active": true,
"lastConnectionDate": "2019-01-18T15:06:33+0100",
"local": false,
"login": "obi",
"name": "One",
- "scmAccounts": Array [],
+ "scmAccounts": [],
}
}
/>
@@ -73,13 +73,13 @@ exports[`should render correctly 1`] = `
isCurrentUser={false}
onUpdateUsers={[MockFunction]}
user={
- Object {
+ {
"active": true,
"lastConnectionDate": "2019-01-18T15:06:33+0100",
"local": false,
"login": "obi",
"name": "One",
- "scmAccounts": Array [],
+ "scmAccounts": [],
}
}
/>
@@ -99,13 +99,13 @@ exports[`should render correctly without last connection date 1`] = `
</td>
<UserListItemIdentity
user={
- Object {
+ {
"active": true,
"lastConnectionDate": "2019-01-18T15:06:33+0100",
"local": false,
"login": "obi",
"name": "One",
- "scmAccounts": Array [],
+ "scmAccounts": [],
}
}
/>
@@ -113,7 +113,7 @@ exports[`should render correctly without last connection date 1`] = `
className="thin nowrap text-middle"
>
<UserScmAccounts
- scmAccounts={Array []}
+ scmAccounts={[]}
/>
</td>
<td
@@ -128,16 +128,16 @@ exports[`should render correctly without last connection date 1`] = `
className="thin nowrap text-middle"
>
<UserGroups
- groups={Array []}
+ groups={[]}
onUpdateUsers={[MockFunction]}
user={
- Object {
+ {
"active": true,
"lastConnectionDate": "2019-01-18T15:06:33+0100",
"local": false,
"login": "obi",
"name": "One",
- "scmAccounts": Array [],
+ "scmAccounts": [],
}
}
/>
@@ -160,13 +160,13 @@ exports[`should render correctly without last connection date 1`] = `
isCurrentUser={false}
onUpdateUsers={[MockFunction]}
user={
- Object {
+ {
"active": true,
"lastConnectionDate": "2019-01-18T15:06:33+0100",
"local": false,
"login": "obi",
"name": "One",
- "scmAccounts": Array [],
+ "scmAccounts": [],
}
}
/>
diff --git a/server/sonar-web/src/main/js/apps/users/components/__tests__/__snapshots__/UserListItemIdentity-test.tsx.snap b/server/sonar-web/src/main/js/apps/users/components/__tests__/__snapshots__/UserListItemIdentity-test.tsx.snap
index c6b01bdea01..eccdb8b8147 100644
--- a/server/sonar-web/src/main/js/apps/users/components/__tests__/__snapshots__/UserListItemIdentity-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/users/components/__tests__/__snapshots__/UserListItemIdentity-test.tsx.snap
@@ -7,7 +7,7 @@ exports[`#ExternalProvider should render correctly 1`] = `
<div
className="identity-provider"
style={
- Object {
+ {
"backgroundColor": "blue",
"color": "#fff",
}
@@ -58,7 +58,7 @@ exports[`#UserListItemIdentity should render correctly 1`] = `
</div>
<ExternalProvider
identityProvider={
- Object {
+ {
"backgroundColor": "blue",
"iconPath": "icon/path",
"key": "foo",
@@ -66,7 +66,7 @@ exports[`#UserListItemIdentity should render correctly 1`] = `
}
}
user={
- Object {
+ {
"active": true,
"email": "obi.one@empire",
"externalProvider": "foo",
@@ -74,7 +74,7 @@ exports[`#UserListItemIdentity should render correctly 1`] = `
"local": false,
"login": "obi",
"name": "One",
- "scmAccounts": Array [],
+ "scmAccounts": [],
}
}
/>
diff --git a/server/sonar-web/src/main/js/apps/web-api/components/__tests__/__snapshots__/Action-test.tsx.snap b/server/sonar-web/src/main/js/apps/web-api/components/__tests__/__snapshots__/Action-test.tsx.snap
index c01b5c6181d..3bd42dc7b85 100644
--- a/server/sonar-web/src/main/js/apps/web-api/components/__tests__/__snapshots__/Action-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/web-api/components/__tests__/__snapshots__/Action-test.tsx.snap
@@ -3,8 +3,8 @@
exports[`should display the changelog 1`] = `
<ActionChangelog
changelog={
- Array [
- Object {
+ [
+ {
"description": "Changelog desc",
"version": "5.0",
},
@@ -16,8 +16,8 @@ exports[`should display the changelog 1`] = `
exports[`should display the params 1`] = `
<Params
params={
- Array [
- Object {
+ [
+ {
"description": "Param desc",
"internal": true,
"key": "param",
@@ -33,9 +33,9 @@ exports[`should display the params 1`] = `
exports[`should display the response example 1`] = `
<ResponseExample
action={
- Object {
- "changelog": Array [
- Object {
+ {
+ "changelog": [
+ {
"description": "Changelog desc",
"version": "5.0",
},
@@ -44,8 +44,8 @@ exports[`should display the response example 1`] = `
"hasResponseExample": true,
"internal": false,
"key": "foo",
- "params": Array [
- Object {
+ "params": [
+ {
"description": "Param desc",
"internal": true,
"key": "param",
@@ -56,11 +56,11 @@ exports[`should display the response example 1`] = `
}
}
domain={
- Object {
- "actions": Array [
- Object {
- "changelog": Array [
- Object {
+ {
+ "actions": [
+ {
+ "changelog": [
+ {
"description": "Changelog desc",
"version": "5.0",
},
@@ -69,8 +69,8 @@ exports[`should display the response example 1`] = `
"hasResponseExample": true,
"internal": false,
"key": "foo",
- "params": Array [
- Object {
+ "params": [
+ {
"description": "Param desc",
"internal": true,
"key": "param",
@@ -100,7 +100,7 @@ exports[`should render correctly 1`] = `
<ForwardRef(Link)
className="spacer-right link-no-underline"
to={
- Object {
+ {
"pathname": "/web_api/foo/foo",
"search": "?",
}
@@ -122,7 +122,7 @@ exports[`should render correctly 1`] = `
<div
className="web-api-action-description markdown"
dangerouslySetInnerHTML={
- Object {
+ {
"__html": "Foo Desc",
}
}
diff --git a/server/sonar-web/src/main/js/apps/web-api/components/__tests__/__snapshots__/Domain-test.tsx.snap b/server/sonar-web/src/main/js/apps/web-api/components/__tests__/__snapshots__/Domain-test.tsx.snap
index 2bed8feb6db..36349a995c9 100644
--- a/server/sonar-web/src/main/js/apps/web-api/components/__tests__/__snapshots__/Domain-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/web-api/components/__tests__/__snapshots__/Domain-test.tsx.snap
@@ -16,7 +16,7 @@ exports[`should also render actions with a description matching the query 1`] =
<div
className="web-api-domain-description markdown"
dangerouslySetInnerHTML={
- Object {
+ {
"__html": "API Desc",
}
}
@@ -26,8 +26,8 @@ exports[`should also render actions with a description matching the query 1`] =
>
<Action
action={
- Object {
- "changelog": Array [],
+ {
+ "changelog": [],
"description": "Foo Desc",
"hasResponseExample": false,
"internal": false,
@@ -36,26 +36,26 @@ exports[`should also render actions with a description matching the query 1`] =
}
}
domain={
- Object {
- "actions": Array [
- Object {
- "changelog": Array [],
+ {
+ "actions": [
+ {
+ "changelog": [],
"description": "Foo Desc",
"hasResponseExample": false,
"internal": false,
"key": "foo",
"post": false,
},
- Object {
- "changelog": Array [],
+ {
+ "changelog": [],
"description": "Bar desc",
"hasResponseExample": false,
"internal": false,
"key": "bar",
"post": false,
},
- Object {
- "changelog": Array [],
+ {
+ "changelog": [],
"description": "foobar",
"hasResponseExample": false,
"internal": false,
@@ -75,8 +75,8 @@ exports[`should also render actions with a description matching the query 1`] =
/>
<Action
action={
- Object {
- "changelog": Array [],
+ {
+ "changelog": [],
"description": "foobar",
"hasResponseExample": false,
"internal": false,
@@ -85,26 +85,26 @@ exports[`should also render actions with a description matching the query 1`] =
}
}
domain={
- Object {
- "actions": Array [
- Object {
- "changelog": Array [],
+ {
+ "actions": [
+ {
+ "changelog": [],
"description": "Foo Desc",
"hasResponseExample": false,
"internal": false,
"key": "foo",
"post": false,
},
- Object {
- "changelog": Array [],
+ {
+ "changelog": [],
"description": "Bar desc",
"hasResponseExample": false,
"internal": false,
"key": "bar",
"post": false,
},
- Object {
- "changelog": Array [],
+ {
+ "changelog": [],
"description": "foobar",
"hasResponseExample": false,
"internal": false,
@@ -142,7 +142,7 @@ exports[`should not render deprecated actions 1`] = `
<div
className="web-api-domain-description markdown"
dangerouslySetInnerHTML={
- Object {
+ {
"__html": "API Desc",
}
}
@@ -169,7 +169,7 @@ exports[`should not render internal actions 1`] = `
<div
className="web-api-domain-description markdown"
dangerouslySetInnerHTML={
- Object {
+ {
"__html": "API Desc",
}
}
@@ -196,7 +196,7 @@ exports[`should render deprecated actions 1`] = `
<div
className="web-api-domain-description markdown"
dangerouslySetInnerHTML={
- Object {
+ {
"__html": "API Desc",
}
}
@@ -206,8 +206,8 @@ exports[`should render deprecated actions 1`] = `
>
<Action
action={
- Object {
- "changelog": Array [],
+ {
+ "changelog": [],
"deprecatedSince": "5.0",
"description": "Foo Desc",
"hasResponseExample": false,
@@ -217,10 +217,10 @@ exports[`should render deprecated actions 1`] = `
}
}
domain={
- Object {
- "actions": Array [
- Object {
- "changelog": Array [],
+ {
+ "actions": [
+ {
+ "changelog": [],
"deprecatedSince": "5.0",
"description": "Foo Desc",
"hasResponseExample": false,
@@ -259,7 +259,7 @@ exports[`should render internal actions 1`] = `
<div
className="web-api-domain-description markdown"
dangerouslySetInnerHTML={
- Object {
+ {
"__html": "API Desc",
}
}
@@ -269,8 +269,8 @@ exports[`should render internal actions 1`] = `
>
<Action
action={
- Object {
- "changelog": Array [],
+ {
+ "changelog": [],
"description": "Foo Desc",
"hasResponseExample": false,
"internal": true,
@@ -279,10 +279,10 @@ exports[`should render internal actions 1`] = `
}
}
domain={
- Object {
- "actions": Array [
- Object {
- "changelog": Array [],
+ {
+ "actions": [
+ {
+ "changelog": [],
"description": "Foo Desc",
"hasResponseExample": false,
"internal": true,
@@ -320,7 +320,7 @@ exports[`should render only actions matching the query 1`] = `
<div
className="web-api-domain-description markdown"
dangerouslySetInnerHTML={
- Object {
+ {
"__html": "API Desc",
}
}
@@ -330,8 +330,8 @@ exports[`should render only actions matching the query 1`] = `
>
<Action
action={
- Object {
- "changelog": Array [],
+ {
+ "changelog": [],
"description": "Foo Desc",
"hasResponseExample": false,
"internal": false,
@@ -340,18 +340,18 @@ exports[`should render only actions matching the query 1`] = `
}
}
domain={
- Object {
- "actions": Array [
- Object {
- "changelog": Array [],
+ {
+ "actions": [
+ {
+ "changelog": [],
"description": "Foo Desc",
"hasResponseExample": false,
"internal": false,
"key": "foo",
"post": false,
},
- Object {
- "changelog": Array [],
+ {
+ "changelog": [],
"description": "Bar desc",
"hasResponseExample": false,
"internal": false,
diff --git a/server/sonar-web/src/main/js/apps/web-api/components/__tests__/__snapshots__/Menu-test.tsx.snap b/server/sonar-web/src/main/js/apps/web-api/components/__tests__/__snapshots__/Menu-test.tsx.snap
index 784c7812d74..e4ea7337fd5 100644
--- a/server/sonar-web/src/main/js/apps/web-api/components/__tests__/__snapshots__/Menu-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/web-api/components/__tests__/__snapshots__/Menu-test.tsx.snap
@@ -11,7 +11,7 @@ exports[`should also render domains with an actions description matching the que
className="list-group-item"
key="bar"
to={
- Object {
+ {
"pathname": "/web_api/bar",
"search": "?query=Bar",
}
@@ -27,7 +27,7 @@ exports[`should also render domains with an actions description matching the que
className="list-group-item"
key="baz"
to={
- Object {
+ {
"pathname": "/web_api/baz",
"search": "?query=Bar",
}
@@ -54,7 +54,7 @@ exports[`should not render deprecated domains 1`] = `
className="list-group-item"
key="foo"
to={
- Object {
+ {
"pathname": "/web_api/foo",
"search": "?",
}
@@ -81,7 +81,7 @@ exports[`should not render internal domains 1`] = `
className="list-group-item"
key="foo"
to={
- Object {
+ {
"pathname": "/web_api/foo",
"search": "?",
}
@@ -108,7 +108,7 @@ exports[`should render deprecated domains 1`] = `
className="list-group-item"
key="foo"
to={
- Object {
+ {
"pathname": "/web_api/foo",
"search": "?deprecated=true",
}
@@ -124,7 +124,7 @@ exports[`should render deprecated domains 1`] = `
className="list-group-item"
key="bar"
to={
- Object {
+ {
"pathname": "/web_api/bar",
"search": "?deprecated=true",
}
@@ -154,7 +154,7 @@ exports[`should render internal domains 1`] = `
className="list-group-item"
key="foo"
to={
- Object {
+ {
"pathname": "/web_api/foo",
"search": "?internal=true",
}
@@ -170,7 +170,7 @@ exports[`should render internal domains 1`] = `
className="list-group-item"
key="bar"
to={
- Object {
+ {
"pathname": "/web_api/bar",
"search": "?internal=true",
}
@@ -198,7 +198,7 @@ exports[`should render only domains with an action matching the query 1`] = `
className="list-group-item"
key="foo"
to={
- Object {
+ {
"pathname": "/web_api/foo",
"search": "?query=Foo",
}
diff --git a/server/sonar-web/src/main/js/apps/web-api/components/__tests__/__snapshots__/Params-test.tsx.snap b/server/sonar-web/src/main/js/apps/web-api/components/__tests__/__snapshots__/Params-test.tsx.snap
index fa368985497..c38b355494b 100644
--- a/server/sonar-web/src/main/js/apps/web-api/components/__tests__/__snapshots__/Params-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/web-api/components/__tests__/__snapshots__/Params-test.tsx.snap
@@ -22,7 +22,7 @@ exports[`should render deprecated and internal parameters 1`] = `
<td
className="markdown"
style={
- Object {
+ {
"width": 180,
}
}
@@ -47,7 +47,7 @@ exports[`should render deprecated and internal parameters 1`] = `
<div
className="markdown"
dangerouslySetInnerHTML={
- Object {
+ {
"__html": "Foo desc",
}
}
@@ -55,7 +55,7 @@ exports[`should render deprecated and internal parameters 1`] = `
</td>
<td
style={
- Object {
+ {
"width": 250,
}
}
@@ -67,7 +67,7 @@ exports[`should render deprecated and internal parameters 1`] = `
<td
className="markdown"
style={
- Object {
+ {
"width": 180,
}
}
@@ -97,7 +97,7 @@ exports[`should render deprecated and internal parameters 1`] = `
<div
className="markdown"
dangerouslySetInnerHTML={
- Object {
+ {
"__html": "Foo desc",
}
}
@@ -105,7 +105,7 @@ exports[`should render deprecated and internal parameters 1`] = `
</td>
<td
style={
- Object {
+ {
"width": 250,
}
}
@@ -128,7 +128,7 @@ exports[`should render deprecated key 1`] = `
<td
className="markdown"
style={
- Object {
+ {
"width": 180,
}
}
@@ -166,7 +166,7 @@ exports[`should render deprecated key 1`] = `
<div
className="markdown"
dangerouslySetInnerHTML={
- Object {
+ {
"__html": "Foo desc",
}
}
@@ -174,7 +174,7 @@ exports[`should render deprecated key 1`] = `
</td>
<td
style={
- Object {
+ {
"width": 250,
}
}
@@ -197,7 +197,7 @@ exports[`should render different value constraints 1`] = `
<td
className="markdown"
style={
- Object {
+ {
"width": 180,
}
}
@@ -215,7 +215,7 @@ exports[`should render different value constraints 1`] = `
<div
className="markdown"
dangerouslySetInnerHTML={
- Object {
+ {
"__html": "Foo desc",
}
}
@@ -223,7 +223,7 @@ exports[`should render different value constraints 1`] = `
</td>
<td
style={
- Object {
+ {
"width": 250,
}
}
diff --git a/server/sonar-web/src/main/js/apps/web-api/components/__tests__/__snapshots__/ResponseExample-test.tsx.snap b/server/sonar-web/src/main/js/apps/web-api/components/__tests__/__snapshots__/ResponseExample-test.tsx.snap
index fd3c8003bda..c50e6648ea8 100644
--- a/server/sonar-web/src/main/js/apps/web-api/components/__tests__/__snapshots__/ResponseExample-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/web-api/components/__tests__/__snapshots__/ResponseExample-test.tsx.snap
@@ -12,7 +12,7 @@ exports[`should render correctly after fetching an example 2`] = `
>
<pre
style={
- Object {
+ {
"whiteSpace": "pre-wrap",
}
}
diff --git a/server/sonar-web/src/main/js/apps/web-api/components/__tests__/__snapshots__/WebApiApp-test.tsx.snap b/server/sonar-web/src/main/js/apps/web-api/components/__tests__/__snapshots__/WebApiApp-test.tsx.snap
index 7fea4a5eca3..fd8a90da372 100644
--- a/server/sonar-web/src/main/js/apps/web-api/components/__tests__/__snapshots__/WebApiApp-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/web-api/components/__tests__/__snapshots__/WebApiApp-test.tsx.snap
@@ -26,8 +26,8 @@ exports[`should render correctly 1`] = `
>
<Domain
domain={
- Object {
- "actions": Array [],
+ {
+ "actions": [],
"deprecatedSince": undefined,
"description": "foo",
"internal": true,
@@ -37,7 +37,7 @@ exports[`should render correctly 1`] = `
}
key="foo/bar"
query={
- Object {
+ {
"deprecated": false,
"internal": false,
"search": "",
@@ -53,7 +53,7 @@ exports[`should render correctly 2`] = `
<div
className="layout-page-side"
style={
- Object {
+ {
"top": 0,
}
}
@@ -83,7 +83,7 @@ exports[`should render correctly 2`] = `
onToggleDeprecated={[Function]}
onToggleInternal={[Function]}
query={
- Object {
+ {
"deprecated": false,
"internal": false,
"search": "",
@@ -92,9 +92,9 @@ exports[`should render correctly 2`] = `
/>
<Menu
domains={
- Array [
- Object {
- "actions": Array [],
+ [
+ {
+ "actions": [],
"deprecatedSince": undefined,
"description": "foo",
"internal": true,
@@ -104,7 +104,7 @@ exports[`should render correctly 2`] = `
]
}
query={
- Object {
+ {
"deprecated": false,
"internal": false,
"search": "",
diff --git a/server/sonar-web/src/main/js/apps/webhooks/components/__tests__/__snapshots__/App-test.tsx.snap b/server/sonar-web/src/main/js/apps/webhooks/components/__tests__/__snapshots__/App-test.tsx.snap
index 84c84b0124d..7a0ea7fcc9f 100644
--- a/server/sonar-web/src/main/js/apps/webhooks/components/__tests__/__snapshots__/App-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/webhooks/components/__tests__/__snapshots__/App-test.tsx.snap
@@ -57,13 +57,13 @@ exports[`should fetch webhooks and display them 1`] = `
onDelete={[Function]}
onUpdate={[Function]}
webhooks={
- Array [
- Object {
+ [
+ {
"key": "1",
"name": "foo",
"url": "http://foo",
},
- Object {
+ {
"key": "2",
"name": "bar",
"url": "http://bar",
diff --git a/server/sonar-web/src/main/js/apps/webhooks/components/__tests__/__snapshots__/CreateWebhookForm-test.tsx.snap b/server/sonar-web/src/main/js/apps/webhooks/components/__tests__/__snapshots__/CreateWebhookForm-test.tsx.snap
index bdd599171af..e66235b6d61 100644
--- a/server/sonar-web/src/main/js/apps/webhooks/components/__tests__/__snapshots__/CreateWebhookForm-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/webhooks/components/__tests__/__snapshots__/CreateWebhookForm-test.tsx.snap
@@ -5,7 +5,7 @@ exports[`should render correctly when creating a new webhook 1`] = `
confirmButtonText="create"
header="webhooks.create"
initialValues={
- Object {
+ {
"name": "",
"secret": "",
"url": "",
@@ -25,7 +25,7 @@ exports[`should render correctly when updating a webhook with a secret 1`] = `
confirmButtonText="update_verb"
header="webhooks.update"
initialValues={
- Object {
+ {
"name": "bar",
"secret": "sonar",
"url": "http://foo.bar",
@@ -45,7 +45,7 @@ exports[`should render correctly when updating a webhook without secret 1`] = `
confirmButtonText="update_verb"
header="webhooks.update"
initialValues={
- Object {
+ {
"name": "foo",
"secret": "",
"url": "http://foo.bar",
diff --git a/server/sonar-web/src/main/js/apps/webhooks/components/__tests__/__snapshots__/DeliveriesForm-test.tsx.snap b/server/sonar-web/src/main/js/apps/webhooks/components/__tests__/__snapshots__/DeliveriesForm-test.tsx.snap
index f7d271fcc09..698452d3e42 100644
--- a/server/sonar-web/src/main/js/apps/webhooks/components/__tests__/__snapshots__/DeliveriesForm-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/webhooks/components/__tests__/__snapshots__/DeliveriesForm-test.tsx.snap
@@ -53,7 +53,7 @@ exports[`should render correctly 2`] = `
>
<DeliveryAccordion
delivery={
- Object {
+ {
"at": "12.02.2018",
"durationMs": 20,
"httpStatus": 200,
@@ -65,7 +65,7 @@ exports[`should render correctly 2`] = `
/>
<DeliveryAccordion
delivery={
- Object {
+ {
"at": "11.02.2018",
"durationMs": 122,
"httpStatus": 500,
diff --git a/server/sonar-web/src/main/js/apps/webhooks/components/__tests__/__snapshots__/LatestDeliveryForm-test.tsx.snap b/server/sonar-web/src/main/js/apps/webhooks/components/__tests__/__snapshots__/LatestDeliveryForm-test.tsx.snap
index ef329112c67..cb5ef39eb6c 100644
--- a/server/sonar-web/src/main/js/apps/webhooks/components/__tests__/__snapshots__/LatestDeliveryForm-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/webhooks/components/__tests__/__snapshots__/LatestDeliveryForm-test.tsx.snap
@@ -15,7 +15,7 @@ exports[`should render correctly 1`] = `
<DeliveryItem
className="modal-body modal-container"
delivery={
- Object {
+ {
"at": "12.02.2018",
"durationMs": 20,
"httpStatus": 200,
@@ -53,7 +53,7 @@ exports[`should render correctly 2`] = `
<DeliveryItem
className="modal-body modal-container"
delivery={
- Object {
+ {
"at": "12.02.2018",
"durationMs": 20,
"httpStatus": 200,
@@ -62,7 +62,7 @@ exports[`should render correctly 2`] = `
}
}
loading={false}
- payload="{ \\"success\\": true }"
+ payload="{ "success": true }"
/>
<footer
className="modal-foot"
diff --git a/server/sonar-web/src/main/js/apps/webhooks/components/__tests__/__snapshots__/PageHeader-test.tsx.snap b/server/sonar-web/src/main/js/apps/webhooks/components/__tests__/__snapshots__/PageHeader-test.tsx.snap
index d6cdf4408c1..14d8687ab1e 100644
--- a/server/sonar-web/src/main/js/apps/webhooks/components/__tests__/__snapshots__/PageHeader-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/webhooks/components/__tests__/__snapshots__/PageHeader-test.tsx.snap
@@ -20,7 +20,7 @@ exports[`should render correctly 1`] = `
defaultMessage="webhooks.description"
id="webhooks.description"
values={
- Object {
+ {
"url": <withAppStateContext(DocLink)
to="/project-administration/webhooks/"
>
diff --git a/server/sonar-web/src/main/js/apps/webhooks/components/__tests__/__snapshots__/WebhookItem-test.tsx.snap b/server/sonar-web/src/main/js/apps/webhooks/components/__tests__/__snapshots__/WebhookItem-test.tsx.snap
index f418ca06cc4..cc748f5df22 100644
--- a/server/sonar-web/src/main/js/apps/webhooks/components/__tests__/__snapshots__/WebhookItem-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/webhooks/components/__tests__/__snapshots__/WebhookItem-test.tsx.snap
@@ -14,7 +14,7 @@ exports[`should render correctly 1`] = `
<td>
<WebhookItemLatestDelivery
webhook={
- Object {
+ {
"key": "1",
"name": "my webhook",
"url": "http://webhook.target",
@@ -29,7 +29,7 @@ exports[`should render correctly 1`] = `
onDelete={[MockFunction]}
onUpdate={[MockFunction]}
webhook={
- Object {
+ {
"key": "1",
"name": "my webhook",
"url": "http://webhook.target",
diff --git a/server/sonar-web/src/main/js/apps/webhooks/components/__tests__/__snapshots__/WebhooksList-test.tsx.snap b/server/sonar-web/src/main/js/apps/webhooks/components/__tests__/__snapshots__/WebhooksList-test.tsx.snap
index 0ba904a3226..cf08f013601 100644
--- a/server/sonar-web/src/main/js/apps/webhooks/components/__tests__/__snapshots__/WebhooksList-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/webhooks/components/__tests__/__snapshots__/WebhooksList-test.tsx.snap
@@ -33,7 +33,7 @@ exports[`should correctly render the webhooks 1`] = `
onDelete={[MockFunction]}
onUpdate={[MockFunction]}
webhook={
- Object {
+ {
"key": "2",
"name": "jenkins webhook",
"url": "http://jenkins.target",
@@ -45,7 +45,7 @@ exports[`should correctly render the webhooks 1`] = `
onDelete={[MockFunction]}
onUpdate={[MockFunction]}
webhook={
- Object {
+ {
"key": "1",
"name": "my webhook",
"url": "http://webhook.target",