aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js
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
parent13bebcd11575c43ad5075e9e8e066343f5ef4158 (diff)
downloadsonarqube-b5db17b1341d9798ccc8e491b093228b53564719.tar.gz
sonarqube-b5db17b1341d9798ccc8e491b093228b53564719.zip
[NO JIRA] Upgrade jest
Diffstat (limited to 'server/sonar-web/src/main/js')
-rw-r--r--server/sonar-web/src/main/js/app/components/__tests__/__snapshots__/AdminContainer-test.tsx.snap24
-rw-r--r--server/sonar-web/src/main/js/app/components/__tests__/__snapshots__/MigrationContainer-test.tsx.snap2
-rw-r--r--server/sonar-web/src/main/js/app/components/__tests__/__snapshots__/ResetPassword-test.tsx.snap8
-rw-r--r--server/sonar-web/src/main/js/app/components/app-state/__tests__/__snapshots__/AppStateContextProvider-test.tsx.snap6
-rw-r--r--server/sonar-web/src/main/js/app/components/extensions/__tests__/__snapshots__/Extension-test.tsx.snap44
-rw-r--r--server/sonar-web/src/main/js/app/components/indexation/__tests__/__snapshots__/IndexationContextProvider-test.tsx.snap6
-rw-r--r--server/sonar-web/src/main/js/app/components/indexation/__tests__/__snapshots__/IndexationNotificationRenderer-test.tsx.snap16
-rw-r--r--server/sonar-web/src/main/js/app/components/indexation/__tests__/__snapshots__/PageUnavailableDueToIndexation-test.tsx.snap2
-rw-r--r--server/sonar-web/src/main/js/app/components/nav/component/__tests__/__snapshots__/ComponentNavBgTaskNotif-test.tsx.snap4
-rw-r--r--server/sonar-web/src/main/js/app/components/nav/component/__tests__/__snapshots__/ComponentNavProjectBindingErrorNotif-test.tsx.snap6
-rw-r--r--server/sonar-web/src/main/js/app/components/nav/component/__tests__/__snapshots__/ComponentNavWarnings-test.tsx.snap8
-rw-r--r--server/sonar-web/src/main/js/app/components/nav/component/__tests__/__snapshots__/Header-test.tsx.snap50
-rw-r--r--server/sonar-web/src/main/js/app/components/nav/component/__tests__/__snapshots__/HeaderMeta-test.tsx.snap44
-rw-r--r--server/sonar-web/src/main/js/app/components/nav/component/branch-like/__tests__/__snapshots__/BranchLikeNavigation-test.tsx.snap62
-rw-r--r--server/sonar-web/src/main/js/app/components/nav/component/branch-like/__tests__/__snapshots__/CurrentBranchLike-test.tsx.snap38
-rw-r--r--server/sonar-web/src/main/js/app/components/nav/component/branch-like/__tests__/__snapshots__/CurrentBranchLikeMergeInformation-test.tsx.snap2
-rw-r--r--server/sonar-web/src/main/js/app/components/nav/component/branch-like/__tests__/__snapshots__/Menu-test.tsx.snap132
-rw-r--r--server/sonar-web/src/main/js/app/components/nav/component/branch-like/__tests__/__snapshots__/MenuItem-test.tsx.snap32
-rw-r--r--server/sonar-web/src/main/js/app/components/nav/component/branch-like/__tests__/__snapshots__/MenuItemList-test.tsx.snap140
-rw-r--r--server/sonar-web/src/main/js/app/components/nav/component/projectInformation/__tests__/__snapshots__/InfoDrawer-test.tsx.snap4
-rw-r--r--server/sonar-web/src/main/js/app/components/nav/component/projectInformation/__tests__/__snapshots__/ProjectInformation-test.tsx.snap114
-rw-r--r--server/sonar-web/src/main/js/app/components/nav/component/projectInformation/__tests__/__snapshots__/ProjectInformationRenderer-test.tsx.snap354
-rw-r--r--server/sonar-web/src/main/js/app/components/nav/component/projectInformation/badges/__tests__/__snapshots__/BadgeParams-test.tsx.snap18
-rw-r--r--server/sonar-web/src/main/js/app/components/nav/component/projectInformation/badges/__tests__/__snapshots__/ProjectBadges-test.tsx.snap2
-rw-r--r--server/sonar-web/src/main/js/app/components/nav/component/projectInformation/meta/__tests__/__snapshots__/MetaLink-test.tsx.snap2
-rw-r--r--server/sonar-web/src/main/js/app/components/nav/component/projectInformation/meta/__tests__/__snapshots__/MetaQualityProfiles-test.tsx.snap4
-rw-r--r--server/sonar-web/src/main/js/app/components/nav/component/projectInformation/meta/__tests__/__snapshots__/MetaTags-test.tsx.snap6
-rw-r--r--server/sonar-web/src/main/js/app/components/nav/component/projectInformation/notifications/__tests__/__snapshots__/ProjectNotifications-test.tsx.snap8
-rw-r--r--server/sonar-web/src/main/js/app/components/nav/global/__tests__/__snapshots__/GlobalNav-test.tsx.snap16
-rw-r--r--server/sonar-web/src/main/js/app/components/nav/settings/__tests__/__snapshots__/PendingPluginsActionNotif-test.tsx.snap4
-rw-r--r--server/sonar-web/src/main/js/app/components/nav/settings/__tests__/__snapshots__/SettingsNav-test.tsx.snap12
-rw-r--r--server/sonar-web/src/main/js/app/components/nav/settings/__tests__/__snapshots__/SystemRestartNotif-test.tsx.snap2
-rw-r--r--server/sonar-web/src/main/js/app/components/search/__tests__/__snapshots__/SearchResult-test.tsx.snap12
-rw-r--r--server/sonar-web/src/main/js/app/components/search/__tests__/__snapshots__/SearchShowMore-test.tsx.snap2
-rw-r--r--server/sonar-web/src/main/js/app/components/update-notification/__tests__/__snapshots__/UpdateNotification-test.tsx.snap4
-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
-rw-r--r--server/sonar-web/src/main/js/components/SourceViewer/__tests__/__snapshots__/SourceViewer-test.tsx.snap64
-rw-r--r--server/sonar-web/src/main/js/components/SourceViewer/__tests__/__snapshots__/SourceViewerHeader-test.tsx.snap14
-rw-r--r--server/sonar-web/src/main/js/components/SourceViewer/components/__tests__/__snapshots__/Line-test.tsx.snap16
-rw-r--r--server/sonar-web/src/main/js/components/SourceViewer/components/__tests__/__snapshots__/LineIssueList-test.tsx.snap16
-rw-r--r--server/sonar-web/src/main/js/components/SourceViewer/components/__tests__/__snapshots__/MeasuresOverlay-test.tsx.snap230
-rw-r--r--server/sonar-web/src/main/js/components/SourceViewer/helpers/__tests__/__snapshots__/loadIssues-test.ts.snap20
-rw-r--r--server/sonar-web/src/main/js/components/a11y/__tests__/__snapshots__/A11ySkipLinks-test.tsx.snap2
-rw-r--r--server/sonar-web/src/main/js/components/a11y/__tests__/__snapshots__/A11ySkipTarget-test.tsx.snap10
-rw-r--r--server/sonar-web/src/main/js/components/activity-graph/__tests__/__snapshots__/utils-test.ts.snap34
-rw-r--r--server/sonar-web/src/main/js/components/charts/__tests__/__snapshots__/BubbleChart-test.tsx.snap12
-rw-r--r--server/sonar-web/src/main/js/components/charts/__tests__/__snapshots__/ColorGradientLegend-test.tsx.snap16
-rw-r--r--server/sonar-web/src/main/js/components/charts/__tests__/__snapshots__/DonutChart-test.tsx.snap18
-rw-r--r--server/sonar-web/src/main/js/components/charts/__tests__/__snapshots__/LanguageDistribution-test.tsx.snap10
-rw-r--r--server/sonar-web/src/main/js/components/common/__tests__/__snapshots__/ActivityLink-test.tsx.snap8
-rw-r--r--server/sonar-web/src/main/js/components/common/__tests__/__snapshots__/AnalysisWarningsModal-test.tsx.snap14
-rw-r--r--server/sonar-web/src/main/js/components/common/__tests__/__snapshots__/CodeSnippet-test.tsx.snap2
-rw-r--r--server/sonar-web/src/main/js/components/common/__tests__/__snapshots__/MeasuresLink-test.tsx.snap6
-rw-r--r--server/sonar-web/src/main/js/components/common/__tests__/__snapshots__/VisibilitySelector-test.tsx.snap16
-rw-r--r--server/sonar-web/src/main/js/components/controls/__tests__/__snapshots__/BoxedTabs-test.tsx.snap78
-rw-r--r--server/sonar-web/src/main/js/components/controls/__tests__/__snapshots__/DateInput-test.tsx.snap74
-rw-r--r--server/sonar-web/src/main/js/components/controls/__tests__/__snapshots__/IdentityProviderLink-test.tsx.snap2
-rw-r--r--server/sonar-web/src/main/js/components/controls/__tests__/__snapshots__/RadioCard-test.tsx.snap18
-rw-r--r--server/sonar-web/src/main/js/components/controls/__tests__/__snapshots__/SearchBox-test.tsx.snap2
-rw-r--r--server/sonar-web/src/main/js/components/controls/__tests__/__snapshots__/Select-test.tsx.snap22
-rw-r--r--server/sonar-web/src/main/js/components/controls/__tests__/__snapshots__/SelectList-test.tsx.snap112
-rw-r--r--server/sonar-web/src/main/js/components/controls/__tests__/__snapshots__/ValidationForm-test.tsx.snap2
-rw-r--r--server/sonar-web/src/main/js/components/controls/__tests__/__snapshots__/ValidationModal-test.tsx.snap16
-rw-r--r--server/sonar-web/src/main/js/components/controls/__tests__/__snapshots__/buttons-test.tsx.snap2
-rw-r--r--server/sonar-web/src/main/js/components/facet/__tests__/__snapshots__/ListStyleFacet-test.tsx.snap16
-rw-r--r--server/sonar-web/src/main/js/components/hoc/__tests__/__snapshots__/withNotifications-test.tsx.snap14
-rw-r--r--server/sonar-web/src/main/js/components/icons/__tests__/__snapshots__/BranchLikeIcon-test.tsx.snap4
-rw-r--r--server/sonar-web/src/main/js/components/icons/__tests__/__snapshots__/Icon-test.tsx.snap2
-rw-r--r--server/sonar-web/src/main/js/components/issue/__tests__/__snapshots__/IssueView-test.tsx.snap66
-rw-r--r--server/sonar-web/src/main/js/components/issue/__tests__/__snapshots__/issue-test.tsx.snap18
-rw-r--r--server/sonar-web/src/main/js/components/issue/components/__tests__/__snapshots__/IssueActionsBar-test.tsx.snap266
-rw-r--r--server/sonar-web/src/main/js/components/issue/components/__tests__/__snapshots__/IssueAssign-test.tsx.snap4
-rw-r--r--server/sonar-web/src/main/js/components/issue/components/__tests__/__snapshots__/IssueChangelog-test.tsx.snap8
-rw-r--r--server/sonar-web/src/main/js/components/issue/components/__tests__/__snapshots__/IssueCommentLine-test.tsx.snap14
-rw-r--r--server/sonar-web/src/main/js/components/issue/components/__tests__/__snapshots__/IssueSeverity-test.tsx.snap8
-rw-r--r--server/sonar-web/src/main/js/components/issue/components/__tests__/__snapshots__/IssueTitleBar-test.tsx.snap144
-rw-r--r--server/sonar-web/src/main/js/components/issue/popups/__tests__/__snapshots__/ChangelogPopup-test.tsx.snap10
-rw-r--r--server/sonar-web/src/main/js/components/issue/popups/__tests__/__snapshots__/SetAssigneePopup-test.tsx.snap6
-rw-r--r--server/sonar-web/src/main/js/components/issue/popups/__tests__/__snapshots__/SimilarIssuesPopup-test.tsx.snap2
-rw-r--r--server/sonar-web/src/main/js/components/shared/__tests__/__snapshots__/DrilldownLink-test.tsx.snap4
-rw-r--r--server/sonar-web/src/main/js/components/tags/__tests__/__snapshots__/TagsSelector-test.tsx.snap8
-rw-r--r--server/sonar-web/src/main/js/components/tutorials/bitbucket-pipelines/__tests__/__snapshots__/AnalysisCommand-test.tsx.snap136
-rw-r--r--server/sonar-web/src/main/js/components/tutorials/bitbucket-pipelines/__tests__/__snapshots__/BitbucketPipelinesTutorial-test.tsx.snap24
-rw-r--r--server/sonar-web/src/main/js/components/tutorials/bitbucket-pipelines/__tests__/__snapshots__/PreambuleYaml-test.tsx.snap30
-rw-r--r--server/sonar-web/src/main/js/components/tutorials/bitbucket-pipelines/__tests__/__snapshots__/RepositoryVariables-test.tsx.snap34
-rw-r--r--server/sonar-web/src/main/js/components/tutorials/components/__tests__/__snapshots__/AllSet-test.tsx.snap6
-rw-r--r--server/sonar-web/src/main/js/components/tutorials/components/__tests__/__snapshots__/CompilationInfo-test.tsx.snap4
-rw-r--r--server/sonar-web/src/main/js/components/tutorials/components/__tests__/__snapshots__/CreateYmlFile-test.tsx.snap2
-rw-r--r--server/sonar-web/src/main/js/components/tutorials/components/__tests__/__snapshots__/RenderOptions-test.tsx.snap18
-rw-r--r--server/sonar-web/src/main/js/components/tutorials/components/__tests__/__snapshots__/SentenceWithFilename-test.tsx.snap2
-rw-r--r--server/sonar-web/src/main/js/components/tutorials/components/__tests__/__snapshots__/SentenceWithHighlights-test.tsx.snap2
-rw-r--r--server/sonar-web/src/main/js/components/tutorials/components/__tests__/__snapshots__/TokenStepGenerator-test.tsx.snap2
-rw-r--r--server/sonar-web/src/main/js/components/tutorials/components/__tests__/__snapshots__/YamlFileStep-test.tsx.snap6
-rw-r--r--server/sonar-web/src/main/js/components/tutorials/github-action/__tests__/__snapshots__/AnalysisCommand-test.tsx.snap60
-rw-r--r--server/sonar-web/src/main/js/components/tutorials/github-action/__tests__/__snapshots__/GitHubActionTutorial-test.tsx.snap24
-rw-r--r--server/sonar-web/src/main/js/components/tutorials/github-action/__tests__/__snapshots__/SecretStep-test.tsx.snap72
-rw-r--r--server/sonar-web/src/main/js/components/tutorials/github-action/commands/__tests__/__snapshots__/CFamily-test.tsx.snap74
-rw-r--r--server/sonar-web/src/main/js/components/tutorials/github-action/commands/__tests__/__snapshots__/DotNet-test.tsx.snap24
-rw-r--r--server/sonar-web/src/main/js/components/tutorials/github-action/commands/__tests__/__snapshots__/Gradle-test.tsx.snap12
-rw-r--r--server/sonar-web/src/main/js/components/tutorials/github-action/commands/__tests__/__snapshots__/Others-test.tsx.snap24
-rw-r--r--server/sonar-web/src/main/js/components/tutorials/gitlabci/__tests__/__snapshots__/EnvironmentVariablesStep-test.tsx.snap30
-rw-r--r--server/sonar-web/src/main/js/components/tutorials/gitlabci/__tests__/__snapshots__/GitLabCITutorial-test.tsx.snap32
-rw-r--r--server/sonar-web/src/main/js/components/tutorials/gitlabci/__tests__/__snapshots__/ProjectKeyStep-test.tsx.snap28
-rw-r--r--server/sonar-web/src/main/js/components/tutorials/gitlabci/__tests__/__snapshots__/YmlFileStep-test.tsx.snap20
-rw-r--r--server/sonar-web/src/main/js/components/tutorials/gitlabci/commands/__tests__/__snapshots__/PipeCommand-test.tsx.snap80
-rw-r--r--server/sonar-web/src/main/js/components/tutorials/jenkins/__tests__/__snapshots__/JenkinsTutorial-test.tsx.snap30
-rw-r--r--server/sonar-web/src/main/js/components/tutorials/jenkins/__tests__/__snapshots__/JenkinsfileStep-test.tsx.snap58
-rw-r--r--server/sonar-web/src/main/js/components/tutorials/jenkins/__tests__/__snapshots__/MultiBranchPipelineStep-test.tsx.snap84
-rw-r--r--server/sonar-web/src/main/js/components/tutorials/jenkins/__tests__/__snapshots__/PipelineStep-test.tsx.snap26
-rw-r--r--server/sonar-web/src/main/js/components/tutorials/jenkins/__tests__/__snapshots__/PreRequisitesStep-test.tsx.snap12
-rw-r--r--server/sonar-web/src/main/js/components/tutorials/jenkins/__tests__/__snapshots__/SelectAlmStep-test.tsx.snap20
-rw-r--r--server/sonar-web/src/main/js/components/tutorials/jenkins/__tests__/__snapshots__/WebhookStep-test.tsx.snap22
-rw-r--r--server/sonar-web/src/main/js/components/tutorials/jenkins/__tests__/__snapshots__/WebhookStepBitbucket-test.tsx.snap36
-rw-r--r--server/sonar-web/src/main/js/components/tutorials/jenkins/__tests__/__snapshots__/WebhookStepGitLab-test.tsx.snap12
-rw-r--r--server/sonar-web/src/main/js/components/tutorials/jenkins/__tests__/__snapshots__/WebhookStepGithub-test.tsx.snap18
-rw-r--r--server/sonar-web/src/main/js/components/tutorials/jenkins/buildtool-steps/__tests__/__snapshots__/CFamilly-test.tsx.snap78
-rw-r--r--server/sonar-web/src/main/js/components/tutorials/jenkins/buildtool-steps/__tests__/__snapshots__/CreateJenkinsfileBulletPoint-test.tsx.snap6
-rw-r--r--server/sonar-web/src/main/js/components/tutorials/jenkins/buildtool-steps/__tests__/__snapshots__/DotNet-test.tsx.snap2
-rw-r--r--server/sonar-web/src/main/js/components/tutorials/jenkins/buildtool-steps/__tests__/__snapshots__/DotNetCore-test.tsx.snap12
-rw-r--r--server/sonar-web/src/main/js/components/tutorials/jenkins/buildtool-steps/__tests__/__snapshots__/DotNetFramework-test.tsx.snap6
-rw-r--r--server/sonar-web/src/main/js/components/tutorials/jenkins/buildtool-steps/__tests__/__snapshots__/DotNetPrereqsMSBuild-test.tsx.snap8
-rw-r--r--server/sonar-web/src/main/js/components/tutorials/jenkins/buildtool-steps/__tests__/__snapshots__/DotNetPrereqsScanner-test.tsx.snap10
-rw-r--r--server/sonar-web/src/main/js/components/tutorials/jenkins/buildtool-steps/__tests__/__snapshots__/Gradle-test.tsx.snap6
-rw-r--r--server/sonar-web/src/main/js/components/tutorials/jenkins/buildtool-steps/__tests__/__snapshots__/Maven-test.tsx.snap2
-rw-r--r--server/sonar-web/src/main/js/components/tutorials/jenkins/buildtool-steps/__tests__/__snapshots__/Other-test.tsx.snap14
-rw-r--r--server/sonar-web/src/main/js/components/tutorials/other/__tests__/__snapshots__/BuildToolForm-test.tsx.snap48
-rw-r--r--server/sonar-web/src/main/js/components/tutorials/other/__tests__/__snapshots__/DoneNextSteps-test.tsx.snap4
-rw-r--r--server/sonar-web/src/main/js/components/tutorials/other/__tests__/__snapshots__/OtherTutorial-test.tsx.snap22
-rw-r--r--server/sonar-web/src/main/js/components/tutorials/other/__tests__/__snapshots__/TokenStep-test.tsx.snap60
-rw-r--r--server/sonar-web/src/main/js/components/tutorials/other/commands/__tests__/__snapshots__/AnalysisCommand-test.tsx.snap60
-rw-r--r--server/sonar-web/src/main/js/components/tutorials/other/commands/__tests__/__snapshots__/CLangGCCCommand-test.tsx.snap12
-rw-r--r--server/sonar-web/src/main/js/components/tutorials/other/commands/__tests__/__snapshots__/DotNet-test.tsx.snap14
-rw-r--r--server/sonar-web/src/main/js/components/tutorials/other/commands/__tests__/__snapshots__/DotNetExecute-test.tsx.snap14
-rw-r--r--server/sonar-web/src/main/js/components/tutorials/other/commands/__tests__/__snapshots__/DotNetFramework-test.tsx.snap20
-rw-r--r--server/sonar-web/src/main/js/components/tutorials/other/commands/__tests__/__snapshots__/DotnetCore-test.tsx.snap18
-rw-r--r--server/sonar-web/src/main/js/components/tutorials/other/commands/__tests__/__snapshots__/DownloadBuildWrapper-test.tsx.snap16
-rw-r--r--server/sonar-web/src/main/js/components/tutorials/other/commands/__tests__/__snapshots__/DownloadScanner-test.tsx.snap24
-rw-r--r--server/sonar-web/src/main/js/components/tutorials/other/commands/__tests__/__snapshots__/ExecBuildWrapper-test.tsx.snap6
-rw-r--r--server/sonar-web/src/main/js/components/tutorials/other/commands/__tests__/__snapshots__/ExecScanner-test.tsx.snap88
-rw-r--r--server/sonar-web/src/main/js/components/tutorials/other/commands/__tests__/__snapshots__/JavaGradle-test.tsx.snap20
-rw-r--r--server/sonar-web/src/main/js/components/tutorials/other/commands/__tests__/__snapshots__/JavaMaven-test.tsx.snap16
-rw-r--r--server/sonar-web/src/main/js/components/tutorials/other/commands/__tests__/__snapshots__/Other-test.tsx.snap12
-rw-r--r--server/sonar-web/src/main/js/components/ui/__tests__/__snapshots__/Alert-test.tsx.snap14
-rw-r--r--server/sonar-web/src/main/js/components/ui/__tests__/__snapshots__/CoverageRating-test.tsx.snap6
-rw-r--r--server/sonar-web/src/main/js/components/ui/__tests__/__snapshots__/GenericAvatar-test.tsx.snap4
-rw-r--r--server/sonar-web/src/main/js/components/ui/__tests__/__snapshots__/MandatoryFieldsExplanation-test.tsx.snap4
-rw-r--r--server/sonar-web/src/main/js/components/ui/__tests__/__snapshots__/NavBar-test.tsx.snap8
-rw-r--r--server/sonar-web/src/main/js/components/ui/__tests__/__snapshots__/NewsBox-test.tsx.snap2
-rw-r--r--server/sonar-web/src/main/js/components/ui/__tests__/__snapshots__/popups-test.tsx.snap10
-rw-r--r--server/sonar-web/src/main/js/components/ui/update-center/__tests__/__snapshots__/MetaData-test.tsx.snap12
-rw-r--r--server/sonar-web/src/main/js/components/ui/update-center/__tests__/__snapshots__/MetaDataVersions-test.tsx.snap2
-rw-r--r--server/sonar-web/src/main/js/components/upgrade/__tests__/__snapshots__/SystemUpgradeForm-test.tsx.snap120
-rw-r--r--server/sonar-web/src/main/js/components/upgrade/__tests__/__snapshots__/SystemUpgradeItem-test.tsx.snap52
-rw-r--r--server/sonar-web/src/main/js/components/workspace/__tests__/__snapshots__/Workspace-test.tsx.snap38
-rw-r--r--server/sonar-web/src/main/js/components/workspace/__tests__/__snapshots__/WorkspaceComponentViewer-test.tsx.snap4
-rw-r--r--server/sonar-web/src/main/js/components/workspace/__tests__/__snapshots__/WorkspaceNav-test.tsx.snap14
-rw-r--r--server/sonar-web/src/main/js/components/workspace/__tests__/__snapshots__/WorkspaceNavComponent-test.tsx.snap2
-rw-r--r--server/sonar-web/src/main/js/components/workspace/__tests__/__snapshots__/WorkspaceNavItem-test.tsx.snap2
-rw-r--r--server/sonar-web/src/main/js/components/workspace/__tests__/__snapshots__/WorkspaceNavRule-test.tsx.snap2
-rw-r--r--server/sonar-web/src/main/js/components/workspace/__tests__/__snapshots__/WorkspaceRuleDetails-test.tsx.snap8
-rw-r--r--server/sonar-web/src/main/js/components/workspace/__tests__/__snapshots__/WorkspaceRuleViewer-test.tsx.snap4
-rw-r--r--server/sonar-web/src/main/js/helpers/__tests__/__snapshots__/extensions-test.ts.snap4
-rw-r--r--server/sonar-web/src/main/js/helpers/__tests__/__snapshots__/query-test.ts.snap2
-rw-r--r--server/sonar-web/src/main/js/types/__tests__/__snapshots__/component-test.ts.snap10
433 files changed, 9555 insertions, 9555 deletions
diff --git a/server/sonar-web/src/main/js/app/components/__tests__/__snapshots__/AdminContainer-test.tsx.snap b/server/sonar-web/src/main/js/app/components/__tests__/__snapshots__/AdminContainer-test.tsx.snap
index 3e6df64fa42..5b721b10020 100644
--- a/server/sonar-web/src/main/js/app/components/__tests__/__snapshots__/AdminContainer-test.tsx.snap
+++ b/server/sonar-web/src/main/js/app/components/__tests__/__snapshots__/AdminContainer-test.tsx.snap
@@ -10,27 +10,27 @@ exports[`should render correctly 1`] = `
titleTemplate="%s - layout.settings"
/>
<WithLocation
- extensions={Array []}
+ extensions={[]}
fetchPendingPlugins={[Function]}
fetchSystemStatus={[Function]}
pendingPlugins={
- Object {
- "installing": Array [],
- "removing": Array [],
- "updating": Array [],
+ {
+ "installing": [],
+ "removing": [],
+ "updating": [],
}
}
systemStatus="UP"
/>
<ContextProvider
value={
- Object {
+ {
"fetchPendingPlugins": [Function],
"fetchSystemStatus": [Function],
- "pendingPlugins": Object {
- "installing": Array [],
- "removing": Array [],
- "updating": Array [],
+ "pendingPlugins": {
+ "installing": [],
+ "removing": [],
+ "updating": [],
},
"systemStatus": "UP",
}
@@ -38,8 +38,8 @@ exports[`should render correctly 1`] = `
>
<Outlet
context={
- Object {
- "adminPages": Array [],
+ {
+ "adminPages": [],
}
}
/>
diff --git a/server/sonar-web/src/main/js/app/components/__tests__/__snapshots__/MigrationContainer-test.tsx.snap b/server/sonar-web/src/main/js/app/components/__tests__/__snapshots__/MigrationContainer-test.tsx.snap
index 4a4b89052ae..304a45ecbda 100644
--- a/server/sonar-web/src/main/js/app/components/__tests__/__snapshots__/MigrationContainer-test.tsx.snap
+++ b/server/sonar-web/src/main/js/app/components/__tests__/__snapshots__/MigrationContainer-test.tsx.snap
@@ -3,7 +3,7 @@
exports[`should render correctly if system is starting 1`] = `
<Navigate
to={
- Object {
+ {
"pathname": "/maintenance",
"search": "return_to=%2Fprojects%3Fquery%3Dtoto%23hash",
}
diff --git a/server/sonar-web/src/main/js/app/components/__tests__/__snapshots__/ResetPassword-test.tsx.snap b/server/sonar-web/src/main/js/app/components/__tests__/__snapshots__/ResetPassword-test.tsx.snap
index b8f17c6c10a..8a9ce7d4f1b 100644
--- a/server/sonar-web/src/main/js/app/components/__tests__/__snapshots__/ResetPassword-test.tsx.snap
+++ b/server/sonar-web/src/main/js/app/components/__tests__/__snapshots__/ResetPassword-test.tsx.snap
@@ -28,15 +28,15 @@ exports[`should render correctly 1`] = `
<ResetPasswordForm
onPasswordChange={[Function]}
user={
- Object {
- "dismissedNotices": Object {
+ {
+ "dismissedNotices": {
"educationPrinciples": false,
},
- "groups": Array [],
+ "groups": [],
"isLoggedIn": true,
"login": "luke",
"name": "Skywalker",
- "scmAccounts": Array [],
+ "scmAccounts": [],
}
}
/>
diff --git a/server/sonar-web/src/main/js/app/components/app-state/__tests__/__snapshots__/AppStateContextProvider-test.tsx.snap b/server/sonar-web/src/main/js/app/components/app-state/__tests__/__snapshots__/AppStateContextProvider-test.tsx.snap
index 1e81e16bd33..dbdc02fa1c4 100644
--- a/server/sonar-web/src/main/js/app/components/app-state/__tests__/__snapshots__/AppStateContextProvider-test.tsx.snap
+++ b/server/sonar-web/src/main/js/app/components/app-state/__tests__/__snapshots__/AppStateContextProvider-test.tsx.snap
@@ -3,13 +3,13 @@
exports[`should set value correctly 1`] = `
<AppStateContextProvider
appState={
- Object {
+ {
"edition": "community",
"productionDatabase": true,
- "qualifiers": Array [
+ "qualifiers": [
"TRK",
],
- "settings": Object {
+ "settings": {
"sonar.lf.logoUrl": "whatevs/",
},
"version": "1.0",
diff --git a/server/sonar-web/src/main/js/app/components/extensions/__tests__/__snapshots__/Extension-test.tsx.snap b/server/sonar-web/src/main/js/app/components/extensions/__tests__/__snapshots__/Extension-test.tsx.snap
index 83c71e6d312..2aece96de23 100644
--- a/server/sonar-web/src/main/js/app/components/extensions/__tests__/__snapshots__/Extension-test.tsx.snap
+++ b/server/sonar-web/src/main/js/app/components/extensions/__tests__/__snapshots__/Extension-test.tsx.snap
@@ -3,43 +3,43 @@
exports[`should render React extensions correctly 1`] = `
<Extension
appState={
- Object {
+ {
"edition": "community",
"productionDatabase": true,
- "qualifiers": Array [
+ "qualifiers": [
"TRK",
],
- "settings": Object {},
+ "settings": {},
"version": "1.0",
}
}
currentUser={
- Object {
- "dismissedNotices": Object {
+ {
+ "dismissedNotices": {
"educationPrinciples": false,
},
"isLoggedIn": false,
}
}
extension={
- Object {
+ {
"key": "foo",
"name": "Foo",
}
}
- intl={Object {}}
+ intl={{}}
location={
- Object {
+ {
"hash": "",
"key": "key",
"pathname": "/path",
- "query": Object {},
+ "query": {},
"search": "",
- "state": Object {},
+ "state": {},
}
}
router={
- Object {
+ {
"createHref": [MockFunction],
"createPath": [MockFunction],
"go": [MockFunction],
@@ -65,43 +65,43 @@ exports[`should render React extensions correctly 1`] = `
exports[`should render React extensions correctly 2`] = `
<Extension
appState={
- Object {
+ {
"edition": "community",
"productionDatabase": true,
- "qualifiers": Array [
+ "qualifiers": [
"TRK",
],
- "settings": Object {},
+ "settings": {},
"version": "1.0",
}
}
currentUser={
- Object {
- "dismissedNotices": Object {
+ {
+ "dismissedNotices": {
"educationPrinciples": false,
},
"isLoggedIn": false,
}
}
extension={
- Object {
+ {
"key": "foo",
"name": "Foo",
}
}
- intl={Object {}}
+ intl={{}}
location={
- Object {
+ {
"hash": "",
"key": "key",
"pathname": "/path",
- "query": Object {},
+ "query": {},
"search": "",
- "state": Object {},
+ "state": {},
}
}
router={
- Object {
+ {
"createHref": [MockFunction],
"createPath": [MockFunction],
"go": [MockFunction],
diff --git a/server/sonar-web/src/main/js/app/components/indexation/__tests__/__snapshots__/IndexationContextProvider-test.tsx.snap b/server/sonar-web/src/main/js/app/components/indexation/__tests__/__snapshots__/IndexationContextProvider-test.tsx.snap
index a966efb2160..b2fda45425a 100644
--- a/server/sonar-web/src/main/js/app/components/indexation/__tests__/__snapshots__/IndexationContextProvider-test.tsx.snap
+++ b/server/sonar-web/src/main/js/app/components/indexation/__tests__/__snapshots__/IndexationContextProvider-test.tsx.snap
@@ -3,14 +3,14 @@
exports[`should render correctly and start polling if issue sync is needed 1`] = `
<IndexationContextProvider
appState={
- Object {
+ {
"edition": "community",
"needIssueSync": true,
"productionDatabase": true,
- "qualifiers": Array [
+ "qualifiers": [
"TRK",
],
- "settings": Object {},
+ "settings": {},
"version": "1.0",
}
}
diff --git a/server/sonar-web/src/main/js/app/components/indexation/__tests__/__snapshots__/IndexationNotificationRenderer-test.tsx.snap b/server/sonar-web/src/main/js/app/components/indexation/__tests__/__snapshots__/IndexationNotificationRenderer-test.tsx.snap
index 2872d6529b9..ffa9743fd65 100644
--- a/server/sonar-web/src/main/js/app/components/indexation/__tests__/__snapshots__/IndexationNotificationRenderer-test.tsx.snap
+++ b/server/sonar-web/src/main/js/app/components/indexation/__tests__/__snapshots__/IndexationNotificationRenderer-test.tsx.snap
@@ -63,7 +63,7 @@ exports[`should render correctly for type="CompletedWithFailure" & isSystemAdmin
defaultMessage="indexation.completed_with_error"
id="indexation.completed_with_error"
values={
- Object {
+ {
"link": "indexation.completed_with_error.link",
}
}
@@ -93,10 +93,10 @@ exports[`should render correctly for type="CompletedWithFailure" & isSystemAdmin
defaultMessage="indexation.completed_with_error"
id="indexation.completed_with_error"
values={
- Object {
+ {
"link": <ForwardRef(Link)
to={
- Object {
+ {
"pathname": "/admin/background_tasks",
"search": "?taskType=ISSUE_SYNC&status=FAILED",
}
@@ -175,10 +175,10 @@ exports[`should render correctly for type="InProgress" & isSystemAdmin=true 1`]
defaultMessage="indexation.admin_link"
id="indexation.admin_link"
values={
- Object {
+ {
"link": <ForwardRef(Link)
to={
- Object {
+ {
"pathname": "/admin/background_tasks",
"search": "?taskType=ISSUE_SYNC",
}
@@ -222,7 +222,7 @@ exports[`should render correctly for type="InProgressWithFailure" & isSystemAdmi
defaultMessage="indexation.progression_with_error.25"
id="indexation.progression_with_error"
values={
- Object {
+ {
"link": "indexation.progression_with_error.link",
}
}
@@ -260,10 +260,10 @@ exports[`should render correctly for type="InProgressWithFailure" & isSystemAdmi
defaultMessage="indexation.progression_with_error.25"
id="indexation.progression_with_error"
values={
- Object {
+ {
"link": <ForwardRef(Link)
to={
- Object {
+ {
"pathname": "/admin/background_tasks",
"search": "?taskType=ISSUE_SYNC&status=FAILED",
}
diff --git a/server/sonar-web/src/main/js/app/components/indexation/__tests__/__snapshots__/PageUnavailableDueToIndexation-test.tsx.snap b/server/sonar-web/src/main/js/app/components/indexation/__tests__/__snapshots__/PageUnavailableDueToIndexation-test.tsx.snap
index be114de0437..e3422fb9aa4 100644
--- a/server/sonar-web/src/main/js/app/components/indexation/__tests__/__snapshots__/PageUnavailableDueToIndexation-test.tsx.snap
+++ b/server/sonar-web/src/main/js/app/components/indexation/__tests__/__snapshots__/PageUnavailableDueToIndexation-test.tsx.snap
@@ -14,7 +14,7 @@ exports[`should render correctly 1`] = `
defaultMessage="indexation.page_unavailable.title.issues"
id="indexation.page_unavailable.title.issues"
values={
- Object {
+ {
"componentName": <em>
test-portfolio
</em>,
diff --git a/server/sonar-web/src/main/js/app/components/nav/component/__tests__/__snapshots__/ComponentNavBgTaskNotif-test.tsx.snap b/server/sonar-web/src/main/js/app/components/nav/component/__tests__/__snapshots__/ComponentNavBgTaskNotif-test.tsx.snap
index 03f114eee5b..1b40f5351be 100644
--- a/server/sonar-web/src/main/js/app/components/nav/component/__tests__/__snapshots__/ComponentNavBgTaskNotif-test.tsx.snap
+++ b/server/sonar-web/src/main/js/app/components/nav/component/__tests__/__snapshots__/ComponentNavBgTaskNotif-test.tsx.snap
@@ -10,7 +10,7 @@ exports[`renders correctly: default 1`] = `
defaultMessage="component_navigation.status.failed_X"
id="component_navigation.status.failed_X"
values={
- Object {
+ {
"branch": undefined,
"stacktrace": undefined,
"type": "background_task.type.REPORT",
@@ -24,7 +24,7 @@ exports[`renders correctly: default 1`] = `
exports[`renders correctly: license issue 1`] = `
<withAppStateContext(ComponentNavLicenseNotif)
currentTask={
- Object {
+ {
"analysisId": "x123",
"componentKey": "foo",
"componentName": "Foo",
diff --git a/server/sonar-web/src/main/js/app/components/nav/component/__tests__/__snapshots__/ComponentNavProjectBindingErrorNotif-test.tsx.snap b/server/sonar-web/src/main/js/app/components/nav/component/__tests__/__snapshots__/ComponentNavProjectBindingErrorNotif-test.tsx.snap
index f7fa9433b9d..e2012ed304e 100644
--- a/server/sonar-web/src/main/js/app/components/nav/component/__tests__/__snapshots__/ComponentNavProjectBindingErrorNotif-test.tsx.snap
+++ b/server/sonar-web/src/main/js/app/components/nav/component/__tests__/__snapshots__/ComponentNavProjectBindingErrorNotif-test.tsx.snap
@@ -9,7 +9,7 @@ exports[`should render correctly: non-project admin 1`] = `
defaultMessage="component_navigation.pr_deco.error_detected_X"
id="component_navigation.pr_deco.error_detected_X"
values={
- Object {
+ {
"action": "component_navigation.pr_deco.action.contact_project_admin",
}
}
@@ -26,10 +26,10 @@ exports[`should render correctly: project admin 1`] = `
defaultMessage="component_navigation.pr_deco.error_detected_X"
id="component_navigation.pr_deco.error_detected_X"
values={
- Object {
+ {
"action": <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/app/components/nav/component/__tests__/__snapshots__/ComponentNavWarnings-test.tsx.snap b/server/sonar-web/src/main/js/app/components/nav/component/__tests__/__snapshots__/ComponentNavWarnings-test.tsx.snap
index 77a6cb35ba6..a09a740facb 100644
--- a/server/sonar-web/src/main/js/app/components/nav/component/__tests__/__snapshots__/ComponentNavWarnings-test.tsx.snap
+++ b/server/sonar-web/src/main/js/app/components/nav/component/__tests__/__snapshots__/ComponentNavWarnings-test.tsx.snap
@@ -11,7 +11,7 @@ exports[`should render 1`] = `
defaultMessage="component_navigation.last_analysis_had_warnings"
id="component_navigation.last_analysis_had_warnings"
values={
- Object {
+ {
"branchType": "branches.branch",
"warnings": <a
href="#"
@@ -21,7 +21,7 @@ exports[`should render 1`] = `
defaultMessage="component_navigation.x_warnings"
id="component_navigation.x_warnings"
values={
- Object {
+ {
"warningsCount": 1,
}
}
@@ -36,8 +36,8 @@ exports[`should render 1`] = `
onClose={[Function]}
onWarningDismiss={[MockFunction]}
warnings={
- Array [
- Object {
+ [
+ {
"dismissable": false,
"key": "foo",
"message": "warning 1",
diff --git a/server/sonar-web/src/main/js/app/components/nav/component/__tests__/__snapshots__/Header-test.tsx.snap b/server/sonar-web/src/main/js/app/components/nav/component/__tests__/__snapshots__/Header-test.tsx.snap
index d6d6c538a0b..635a9b815ff 100644
--- a/server/sonar-web/src/main/js/app/components/nav/component/__tests__/__snapshots__/Header-test.tsx.snap
+++ b/server/sonar-web/src/main/js/app/components/nav/component/__tests__/__snapshots__/Header-test.tsx.snap
@@ -13,29 +13,29 @@ exports[`should render correctly 1`] = `
>
<Breadcrumb
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": [],
}
}
currentBranchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": false,
@@ -51,26 +51,26 @@ exports[`should render correctly 1`] = `
/>
<withAvailableFeaturesContext(Component)
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",
@@ -78,13 +78,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",
@@ -92,19 +92,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",
@@ -116,29 +116,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": [],
}
}
currentBranchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": false,
@@ -148,7 +148,7 @@ exports[`should render correctly 1`] = `
/>
<Memo(CurrentBranchLikeMergeInformation)
currentBranchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": false,
diff --git a/server/sonar-web/src/main/js/app/components/nav/component/__tests__/__snapshots__/HeaderMeta-test.tsx.snap b/server/sonar-web/src/main/js/app/components/nav/component/__tests__/__snapshots__/HeaderMeta-test.tsx.snap
index 98ebacc1ab8..2977276f8b6 100644
--- a/server/sonar-web/src/main/js/app/components/nav/component/__tests__/__snapshots__/HeaderMeta-test.tsx.snap
+++ b/server/sonar-web/src/main/js/app/components/nav/component/__tests__/__snapshots__/HeaderMeta-test.tsx.snap
@@ -13,13 +13,13 @@ exports[`should render correctly for a branch 1`] = `
isBranch={true}
onWarningDismiss={[MockFunction]}
warnings={
- Array [
- Object {
+ [
+ {
"dismissable": false,
"key": "foo",
"message": "ERROR_1",
},
- Object {
+ {
"dismissable": false,
"key": "foo",
"message": "ERROR_2",
@@ -42,7 +42,7 @@ exports[`should render correctly for a branch 1`] = `
<withCurrentUserContext(HomePageSelect)
className="spacer-left"
currentPage={
- Object {
+ {
"branch": "branch-6.7",
"component": "my-project",
"type": "PROJECT",
@@ -66,13 +66,13 @@ exports[`should render correctly for a main project branch 1`] = `
isBranch={true}
onWarningDismiss={[MockFunction]}
warnings={
- Array [
- Object {
+ [
+ {
"dismissable": false,
"key": "foo",
"message": "ERROR_1",
},
- Object {
+ {
"dismissable": false,
"key": "foo",
"message": "ERROR_2",
@@ -95,7 +95,7 @@ exports[`should render correctly for a main project branch 1`] = `
<withCurrentUserContext(HomePageSelect)
className="spacer-left"
currentPage={
- Object {
+ {
"branch": undefined,
"component": "my-project",
"type": "PROJECT",
@@ -119,13 +119,13 @@ exports[`should render correctly for a portfolio 1`] = `
isBranch={true}
onWarningDismiss={[MockFunction]}
warnings={
- Array [
- Object {
+ [
+ {
"dismissable": false,
"key": "foo",
"message": "ERROR_1",
},
- Object {
+ {
"dismissable": false,
"key": "foo",
"message": "ERROR_2",
@@ -137,7 +137,7 @@ exports[`should render correctly for a portfolio 1`] = `
<withCurrentUserContext(HomePageSelect)
className="spacer-left"
currentPage={
- Object {
+ {
"component": "foo",
"type": "PORTFOLIO",
}
@@ -160,13 +160,13 @@ exports[`should render correctly for a pull request 1`] = `
isBranch={false}
onWarningDismiss={[MockFunction]}
warnings={
- Array [
- Object {
+ [
+ {
"dismissable": false,
"key": "foo",
"message": "ERROR_1",
},
- Object {
+ {
"dismissable": false,
"key": "foo",
"message": "ERROR_2",
@@ -195,7 +195,7 @@ exports[`should render correctly for a pull request 1`] = `
</ForwardRef(Link)>
<withBranchStatus(BranchStatus)
branchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"base": "master",
"branch": "feature/foo/bar",
@@ -206,26 +206,26 @@ exports[`should render correctly for a pull request 1`] = `
}
}
component={
- Object {
+ {
"analysisDate": "2017-01-02T00:00:00.000Z",
- "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",
}
}
diff --git a/server/sonar-web/src/main/js/app/components/nav/component/branch-like/__tests__/__snapshots__/BranchLikeNavigation-test.tsx.snap b/server/sonar-web/src/main/js/app/components/nav/component/branch-like/__tests__/__snapshots__/BranchLikeNavigation-test.tsx.snap
index d70c3604f56..ba319b91b1d 100644
--- a/server/sonar-web/src/main/js/app/components/nav/component/branch-like/__tests__/__snapshots__/BranchLikeNavigation-test.tsx.snap
+++ b/server/sonar-web/src/main/js/app/components/nav/component/branch-like/__tests__/__snapshots__/BranchLikeNavigation-test.tsx.snap
@@ -7,29 +7,29 @@ exports[`should render correctly 1`] = `
<Memo(CurrentBranchLike)
branchesEnabled={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": [],
}
}
currentBranchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": false,
@@ -51,26 +51,26 @@ exports[`should render the menu trigger if branches are enabled 1`] = `
overlay={
<withRouter(Menu)
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",
@@ -78,13 +78,13 @@ exports[`should render the menu trigger if branches are enabled 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",
@@ -92,19 +92,19 @@ exports[`should render the menu trigger if branches are enabled 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",
@@ -116,29 +116,29 @@ exports[`should render the menu trigger if branches are enabled 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": [],
}
}
currentBranchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": false,
@@ -158,29 +158,29 @@ exports[`should render the menu trigger if branches are enabled 1`] = `
<Memo(CurrentBranchLike)
branchesEnabled={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": [],
}
}
currentBranchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": false,
diff --git a/server/sonar-web/src/main/js/app/components/nav/component/branch-like/__tests__/__snapshots__/CurrentBranchLike-test.tsx.snap b/server/sonar-web/src/main/js/app/components/nav/component/branch-like/__tests__/__snapshots__/CurrentBranchLike-test.tsx.snap
index 9e23ba97977..cd1a4b69ed6 100644
--- a/server/sonar-web/src/main/js/app/components/nav/component/branch-like/__tests__/__snapshots__/CurrentBranchLike-test.tsx.snap
+++ b/server/sonar-web/src/main/js/app/components/nav/component/branch-like/__tests__/__snapshots__/CurrentBranchLike-test.tsx.snap
@@ -6,7 +6,7 @@ exports[`applications should render correctly when there are many branchlikes 1`
>
<BranchLikeIcon
branchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": true,
@@ -31,7 +31,7 @@ exports[`applications should render correctly when there is only one branch and
>
<BranchLikeIcon
branchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": true,
@@ -55,7 +55,7 @@ exports[`applications should render correctly when there is only one branch and
>
<BranchLikeIcon
branchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": true,
@@ -81,7 +81,7 @@ exports[`applications should render correctly when there is only one branch and
/>
<ForwardRef(Link)
to={
- Object {
+ {
"pathname": "/project/admin/extension/developer-server/application-console",
"search": "?id=my-project",
}
@@ -106,7 +106,7 @@ exports[`projects should render correctly when branches support is disabled: alm
>
<BranchLikeIcon
branchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": true,
@@ -125,8 +125,8 @@ exports[`projects should render correctly when branches support is disabled: alm
content="branch_like_navigation.no_branch_support.content_x.mr.alm.gitlab"
data-test="branches-support-disabled"
links={
- Array [
- Object {
+ [
+ {
"doc": false,
"href": "https://redirect.sonarsource.com/editions/developer.html",
"label": "learn_more",
@@ -149,7 +149,7 @@ exports[`projects should render correctly when branches support is disabled: alm
>
<BranchLikeIcon
branchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": true,
@@ -168,8 +168,8 @@ exports[`projects should render correctly when branches support is disabled: alm
content="branch_like_navigation.no_branch_support.content_x.pr.alm.github"
data-test="branches-support-disabled"
links={
- Array [
- Object {
+ [
+ {
"doc": false,
"href": "https://redirect.sonarsource.com/editions/developer.html",
"label": "learn_more",
@@ -192,7 +192,7 @@ exports[`projects should render correctly when branches support is disabled: def
>
<BranchLikeIcon
branchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": true,
@@ -211,8 +211,8 @@ exports[`projects should render correctly when branches support is disabled: def
content="branch_like_navigation.no_branch_support.content"
data-test="branches-support-disabled"
links={
- Array [
- Object {
+ [
+ {
"doc": false,
"href": "https://redirect.sonarsource.com/editions/developer.html",
"label": "learn_more",
@@ -235,7 +235,7 @@ exports[`projects should render correctly when there are many branchlikes 1`] =
>
<BranchLikeIcon
branchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": true,
@@ -260,7 +260,7 @@ exports[`projects should render correctly when there is only one branchlike 1`]
>
<BranchLikeIcon
branchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": true,
@@ -279,16 +279,16 @@ exports[`projects should render correctly when there is only one branchlike 1`]
content="branch_like_navigation.only_one_branch.content"
data-test="only-one-branch-like"
links={
- Array [
- Object {
+ [
+ {
"href": "/analyzing-source-code/branches/branch-analysis/",
"label": "branch_like_navigation.only_one_branch.documentation",
},
- Object {
+ {
"href": "/analyzing-source-code/pull-request-analysis",
"label": "branch_like_navigation.only_one_branch.pr_analysis",
},
- Object {
+ {
"doc": false,
"href": "/tutorials?id=my-project",
"inPlace": true,
diff --git a/server/sonar-web/src/main/js/app/components/nav/component/branch-like/__tests__/__snapshots__/CurrentBranchLikeMergeInformation-test.tsx.snap b/server/sonar-web/src/main/js/app/components/nav/component/branch-like/__tests__/__snapshots__/CurrentBranchLikeMergeInformation-test.tsx.snap
index bd901ffd0ef..5e4d7cdfaae 100644
--- a/server/sonar-web/src/main/js/app/components/nav/component/branch-like/__tests__/__snapshots__/CurrentBranchLikeMergeInformation-test.tsx.snap
+++ b/server/sonar-web/src/main/js/app/components/nav/component/branch-like/__tests__/__snapshots__/CurrentBranchLikeMergeInformation-test.tsx.snap
@@ -8,7 +8,7 @@ exports[`should render correctly 1`] = `
defaultMessage="branch_like_navigation.for_merge_into_x_from_y"
id="branch_like_navigation.for_merge_into_x_from_y"
values={
- Object {
+ {
"branch": <strong>
feature/foo/bar
</strong>,
diff --git a/server/sonar-web/src/main/js/app/components/nav/component/branch-like/__tests__/__snapshots__/Menu-test.tsx.snap b/server/sonar-web/src/main/js/app/components/nav/component/branch-like/__tests__/__snapshots__/Menu-test.tsx.snap
index ed6cc27a2a0..9afa94a156d 100644
--- a/server/sonar-web/src/main/js/app/components/nav/component/branch-like/__tests__/__snapshots__/Menu-test.tsx.snap
+++ b/server/sonar-web/src/main/js/app/components/nav/component/branch-like/__tests__/__snapshots__/Menu-test.tsx.snap
@@ -21,63 +21,63 @@ exports[`should render correctly 1`] = `
>
<Memo(MenuItemList)
branchLikeTree={
- Object {
- "branchTree": Array [
- Object {
- "branch": Object {
+ {
+ "branchTree": [
+ {
+ "branch": {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": false,
"name": "branch-1",
},
- "pullRequests": Array [],
+ "pullRequests": [],
},
- Object {
- "branch": Object {
+ {
+ "branch": {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": false,
"name": "branch-11",
},
- "pullRequests": Array [],
+ "pullRequests": [],
},
- Object {
- "branch": Object {
+ {
+ "branch": {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": false,
"name": "branch-12",
},
- "pullRequests": Array [],
+ "pullRequests": [],
},
- Object {
- "branch": Object {
+ {
+ "branch": {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": false,
"name": "branch-2",
},
- "pullRequests": Array [],
+ "pullRequests": [],
},
- Object {
- "branch": Object {
+ {
+ "branch": {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": false,
"name": "branch-3",
},
- "pullRequests": Array [],
+ "pullRequests": [],
},
],
- "mainBranchTree": Object {
- "branch": Object {
+ "mainBranchTree": {
+ "branch": {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": true,
"name": "master",
},
- "pullRequests": Array [
- Object {
+ "pullRequests": [
+ {
"analysisDate": "2018-01-01",
"base": "master",
"branch": "feature/foo/bar",
@@ -85,7 +85,7 @@ exports[`should render correctly 1`] = `
"target": "master",
"title": "PR-2",
},
- Object {
+ {
"analysisDate": "2018-01-01",
"base": "master",
"branch": "feature/foo/bar",
@@ -95,8 +95,8 @@ exports[`should render correctly 1`] = `
},
],
},
- "orphanPullRequests": Array [
- Object {
+ "orphanPullRequests": [
+ {
"analysisDate": "2018-01-01",
"base": "master",
"branch": "feature/foo/bar",
@@ -106,35 +106,35 @@ exports[`should render correctly 1`] = `
"title": "PR-2",
},
],
- "parentlessPullRequests": Array [],
+ "parentlessPullRequests": [],
}
}
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": [],
}
}
hasResults={true}
onSelect={[Function]}
selectedBranchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": true,
@@ -149,7 +149,7 @@ exports[`should render correctly 1`] = `
<ForwardRef(Link)
onClick={[Function]}
to={
- Object {
+ {
"pathname": "/project/branches",
"search": "?id=my-project",
}
@@ -182,63 +182,63 @@ exports[`should render correctly with no current branch like 1`] = `
>
<Memo(MenuItemList)
branchLikeTree={
- Object {
- "branchTree": Array [
- Object {
- "branch": Object {
+ {
+ "branchTree": [
+ {
+ "branch": {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": false,
"name": "branch-1",
},
- "pullRequests": Array [],
+ "pullRequests": [],
},
- Object {
- "branch": Object {
+ {
+ "branch": {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": false,
"name": "branch-11",
},
- "pullRequests": Array [],
+ "pullRequests": [],
},
- Object {
- "branch": Object {
+ {
+ "branch": {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": false,
"name": "branch-12",
},
- "pullRequests": Array [],
+ "pullRequests": [],
},
- Object {
- "branch": Object {
+ {
+ "branch": {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": false,
"name": "branch-2",
},
- "pullRequests": Array [],
+ "pullRequests": [],
},
- Object {
- "branch": Object {
+ {
+ "branch": {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": false,
"name": "branch-3",
},
- "pullRequests": Array [],
+ "pullRequests": [],
},
],
- "mainBranchTree": Object {
- "branch": Object {
+ "mainBranchTree": {
+ "branch": {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": true,
"name": "master",
},
- "pullRequests": Array [
- Object {
+ "pullRequests": [
+ {
"analysisDate": "2018-01-01",
"base": "master",
"branch": "feature/foo/bar",
@@ -246,7 +246,7 @@ exports[`should render correctly with no current branch like 1`] = `
"target": "master",
"title": "PR-2",
},
- Object {
+ {
"analysisDate": "2018-01-01",
"base": "master",
"branch": "feature/foo/bar",
@@ -256,8 +256,8 @@ exports[`should render correctly with no current branch like 1`] = `
},
],
},
- "orphanPullRequests": Array [
- Object {
+ "orphanPullRequests": [
+ {
"analysisDate": "2018-01-01",
"base": "master",
"branch": "feature/foo/bar",
@@ -267,35 +267,35 @@ exports[`should render correctly with no current branch like 1`] = `
"title": "PR-2",
},
],
- "parentlessPullRequests": Array [],
+ "parentlessPullRequests": [],
}
}
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": [],
}
}
hasResults={true}
onSelect={[Function]}
selectedBranchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": false,
@@ -310,7 +310,7 @@ exports[`should render correctly with no current branch like 1`] = `
<ForwardRef(Link)
onClick={[Function]}
to={
- Object {
+ {
"pathname": "/project/branches",
"search": "?id=my-project",
}
diff --git a/server/sonar-web/src/main/js/app/components/nav/component/branch-like/__tests__/__snapshots__/MenuItem-test.tsx.snap b/server/sonar-web/src/main/js/app/components/nav/component/branch-like/__tests__/__snapshots__/MenuItem-test.tsx.snap
index e9df1e0578f..57f5a7527b9 100644
--- a/server/sonar-web/src/main/js/app/components/nav/component/branch-like/__tests__/__snapshots__/MenuItem-test.tsx.snap
+++ b/server/sonar-web/src/main/js/app/components/nav/component/branch-like/__tests__/__snapshots__/MenuItem-test.tsx.snap
@@ -14,7 +14,7 @@ exports[`should render a main branch correctly 1`] = `
>
<BranchLikeIcon
branchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": true,
@@ -38,7 +38,7 @@ exports[`should render a main branch correctly 1`] = `
>
<withBranchStatus(BranchStatus)
branchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": true,
@@ -46,25 +46,25 @@ exports[`should render a main branch 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": [],
}
}
/>
@@ -87,7 +87,7 @@ exports[`should render a non-main branch, indented and selected item correctly 1
>
<BranchLikeIcon
branchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"base": "master",
"branch": "feature/foo/bar",
@@ -108,7 +108,7 @@ exports[`should render a non-main branch, indented and selected item correctly 1
>
<withBranchStatus(BranchStatus)
branchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"base": "master",
"branch": "feature/foo/bar",
@@ -118,25 +118,25 @@ exports[`should render a non-main branch, indented and selected item 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": [],
}
}
/>
diff --git a/server/sonar-web/src/main/js/app/components/nav/component/branch-like/__tests__/__snapshots__/MenuItemList-test.tsx.snap b/server/sonar-web/src/main/js/app/components/nav/component/branch-like/__tests__/__snapshots__/MenuItemList-test.tsx.snap
index 363ffb08062..408f21b26a3 100644
--- a/server/sonar-web/src/main/js/app/components/nav/component/branch-like/__tests__/__snapshots__/MenuItemList-test.tsx.snap
+++ b/server/sonar-web/src/main/js/app/components/nav/component/branch-like/__tests__/__snapshots__/MenuItemList-test.tsx.snap
@@ -15,7 +15,7 @@ exports[`should render correctly 1`] = `
</li>
<Memo(MenuItem)
branchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": true,
@@ -23,25 +23,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"
@@ -60,7 +60,7 @@ exports[`should render correctly 1`] = `
</li>
<Memo(MenuItem)
branchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"base": "master",
"branch": "feature/foo/bar",
@@ -70,25 +70,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": [],
}
}
indent={true}
@@ -99,7 +99,7 @@ exports[`should render correctly 1`] = `
/>
<Memo(MenuItem)
branchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"base": "master",
"branch": "feature/foo/bar",
@@ -109,25 +109,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": [],
}
}
indent={true}
@@ -139,7 +139,7 @@ exports[`should render correctly 1`] = `
<hr />
<Memo(MenuItem)
branchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": false,
@@ -147,25 +147,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"
@@ -176,7 +176,7 @@ exports[`should render correctly 1`] = `
<hr />
<Memo(MenuItem)
branchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": false,
@@ -184,25 +184,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"
@@ -213,7 +213,7 @@ exports[`should render correctly 1`] = `
<hr />
<Memo(MenuItem)
branchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": false,
@@ -221,25 +221,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"
@@ -250,7 +250,7 @@ exports[`should render correctly 1`] = `
<hr />
<Memo(MenuItem)
branchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": false,
@@ -258,25 +258,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"
@@ -287,7 +287,7 @@ exports[`should render correctly 1`] = `
<hr />
<Memo(MenuItem)
branchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": false,
@@ -295,25 +295,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"
@@ -329,7 +329,7 @@ exports[`should render correctly 1`] = `
</li>
<Memo(MenuItem)
branchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"base": "not-in-the-list",
"branch": "feature/foo/bar",
@@ -339,25 +339,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-1001"
@@ -376,7 +376,7 @@ exports[`should render correctly 1`] = `
</li>
<Memo(MenuItem)
branchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"base": "master",
"branch": "feature/foo/bar",
@@ -387,25 +387,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"
diff --git a/server/sonar-web/src/main/js/app/components/nav/component/projectInformation/__tests__/__snapshots__/InfoDrawer-test.tsx.snap b/server/sonar-web/src/main/js/app/components/nav/component/projectInformation/__tests__/__snapshots__/InfoDrawer-test.tsx.snap
index 5adc0a37523..3628f4e3f5e 100644
--- a/server/sonar-web/src/main/js/app/components/nav/component/projectInformation/__tests__/__snapshots__/InfoDrawer-test.tsx.snap
+++ b/server/sonar-web/src/main/js/app/components/nav/component/projectInformation/__tests__/__snapshots__/InfoDrawer-test.tsx.snap
@@ -4,7 +4,7 @@ exports[`should render correctly: default 1`] = `
<div
className="info-drawer info-drawer-pane"
style={
- Object {
+ {
"top": 120,
}
}
@@ -15,7 +15,7 @@ exports[`should render correctly: displayed 1`] = `
<div
className="info-drawer info-drawer-pane open"
style={
- Object {
+ {
"top": 120,
}
}
diff --git a/server/sonar-web/src/main/js/app/components/nav/component/projectInformation/__tests__/__snapshots__/ProjectInformation-test.tsx.snap b/server/sonar-web/src/main/js/app/components/nav/component/projectInformation/__tests__/__snapshots__/ProjectInformation-test.tsx.snap
index e413632b097..42048bd4cb8 100644
--- a/server/sonar-web/src/main/js/app/components/nav/component/projectInformation/__tests__/__snapshots__/ProjectInformation-test.tsx.snap
+++ b/server/sonar-web/src/main/js/app/components/nav/component/projectInformation/__tests__/__snapshots__/ProjectInformation-test.tsx.snap
@@ -6,25 +6,25 @@ exports[`should render correctly: default 1`] = `
canConfigureNotifications={false}
canUseBadges={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": [],
}
}
onComponentChange={[MockFunction]}
@@ -36,25 +36,25 @@ exports[`should render correctly: default 1`] = `
>
<ProjectBadges
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": [],
}
}
/>
@@ -68,25 +68,25 @@ exports[`should render correctly: logged in user 1`] = `
canConfigureNotifications={true}
canUseBadges={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": [],
}
}
onComponentChange={[MockFunction]}
@@ -98,25 +98,25 @@ exports[`should render correctly: logged in user 1`] = `
>
<ProjectBadges
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": [],
}
}
/>
@@ -127,25 +127,25 @@ exports[`should render correctly: logged in user 1`] = `
>
<withNotifications(ProjectNotifications)
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": [],
}
}
/>
@@ -159,33 +159,33 @@ exports[`should render correctly: measures loaded 1`] = `
canConfigureNotifications={false}
canUseBadges={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,
"metric": "bugs",
- "period": Object {
+ "period": {
"bestValue": true,
"index": 1,
"value": "1.0",
@@ -203,25 +203,25 @@ exports[`should render correctly: measures loaded 1`] = `
>
<ProjectBadges
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": [],
}
}
/>
@@ -235,25 +235,25 @@ exports[`should render correctly: private 1`] = `
canConfigureNotifications={false}
canUseBadges={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": [],
"visibility": "private",
}
}
@@ -266,25 +266,25 @@ exports[`should render correctly: private 1`] = `
>
<ProjectBadges
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": [],
"visibility": "private",
}
}
diff --git a/server/sonar-web/src/main/js/app/components/nav/component/projectInformation/__tests__/__snapshots__/ProjectInformationRenderer-test.tsx.snap b/server/sonar-web/src/main/js/app/components/nav/component/projectInformation/__tests__/__snapshots__/ProjectInformationRenderer-test.tsx.snap
index 14a8202a9b0..789251f82cd 100644
--- a/server/sonar-web/src/main/js/app/components/nav/component/projectInformation/__tests__/__snapshots__/ProjectInformationRenderer-test.tsx.snap
+++ b/server/sonar-web/src/main/js/app/components/nav/component/projectInformation/__tests__/__snapshots__/ProjectInformationRenderer-test.tsx.snap
@@ -27,14 +27,14 @@ exports[`should handle missing quality profiles and quality gates 1`] = `
</div>
<MetaTags
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "TRK",
"qualityGate": undefined,
"qualityProfiles": undefined,
- "tags": Array [],
+ "tags": [],
}
}
onComponentChange={[MockFunction]}
@@ -45,29 +45,29 @@ exports[`should handle missing quality profiles and quality gates 1`] = `
>
<MetaSize
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "TRK",
"qualityGate": undefined,
"qualityProfiles": undefined,
- "tags": Array [],
+ "tags": [],
}
}
- measures={Array []}
+ measures={[]}
/>
</div>
<MetaLinks
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "my-project",
"name": "MyProject",
"qualifier": "TRK",
"qualityGate": undefined,
"qualityProfiles": undefined,
- "tags": Array [],
+ "tags": [],
}
}
/>
@@ -139,25 +139,25 @@ exports[`should render a private project correctly 1`] = `
</div>
<MetaTags
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": [],
"visibility": "private",
}
}
@@ -169,29 +169,29 @@ exports[`should render a private project correctly 1`] = `
>
<MetaSize
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": [],
"visibility": "private",
}
}
- measures={Array []}
+ measures={[]}
/>
</div>
<div
@@ -199,7 +199,7 @@ exports[`should render a private project correctly 1`] = `
>
<MetaQualityGate
qualityGate={
- Object {
+ {
"isDefault": true,
"key": "30",
"name": "Sonar way",
@@ -209,8 +209,8 @@ exports[`should render a private project correctly 1`] = `
<withLanguagesContext(MetaQualityProfiles)
headerClassName="big-spacer-top"
profiles={
- Array [
- Object {
+ [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
@@ -222,25 +222,25 @@ exports[`should render a private project correctly 1`] = `
</div>
<MetaLinks
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": [],
"visibility": "private",
}
}
@@ -309,25 +309,25 @@ exports[`should render an app correctly: default 1`] = `
</div>
<MetaTags
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": [],
}
}
onComponentChange={[MockFunction]}
@@ -338,28 +338,28 @@ exports[`should render an app correctly: default 1`] = `
>
<MetaSize
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 []}
+ measures={[]}
/>
</div>
<div
@@ -421,25 +421,25 @@ exports[`should render app correctly when regulatoryReport feature is not enable
</div>
<MetaTags
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": [],
"visibility": "public",
}
}
@@ -451,29 +451,29 @@ exports[`should render app correctly when regulatoryReport feature is not enable
>
<MetaSize
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": [],
"visibility": "public",
}
}
- measures={Array []}
+ measures={[]}
/>
</div>
<div
@@ -481,7 +481,7 @@ exports[`should render app correctly when regulatoryReport feature is not enable
>
<MetaQualityGate
qualityGate={
- Object {
+ {
"isDefault": true,
"key": "30",
"name": "Sonar way",
@@ -491,8 +491,8 @@ exports[`should render app correctly when regulatoryReport feature is not enable
<withLanguagesContext(MetaQualityProfiles)
headerClassName="big-spacer-top"
profiles={
- Array [
- Object {
+ [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
@@ -504,25 +504,25 @@ exports[`should render app correctly when regulatoryReport feature is not enable
</div>
<MetaLinks
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": [],
"visibility": "public",
}
}
@@ -586,25 +586,25 @@ exports[`should render correctly: default 1`] = `
</div>
<MetaTags
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": [],
"visibility": "public",
}
}
@@ -616,29 +616,29 @@ exports[`should render correctly: default 1`] = `
>
<MetaSize
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": [],
"visibility": "public",
}
}
- measures={Array []}
+ measures={[]}
/>
</div>
<div
@@ -646,7 +646,7 @@ exports[`should render correctly: default 1`] = `
>
<MetaQualityGate
qualityGate={
- Object {
+ {
"isDefault": true,
"key": "30",
"name": "Sonar way",
@@ -656,8 +656,8 @@ exports[`should render correctly: default 1`] = `
<withLanguagesContext(MetaQualityProfiles)
headerClassName="big-spacer-top"
profiles={
- Array [
- Object {
+ [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
@@ -669,25 +669,25 @@ exports[`should render correctly: default 1`] = `
</div>
<MetaLinks
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": [],
"visibility": "public",
}
}
@@ -760,25 +760,25 @@ exports[`should render correctly: no badges 1`] = `
</div>
<MetaTags
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": [],
"visibility": "public",
}
}
@@ -790,29 +790,29 @@ exports[`should render correctly: no badges 1`] = `
>
<MetaSize
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": [],
"visibility": "public",
}
}
- measures={Array []}
+ measures={[]}
/>
</div>
<div
@@ -820,7 +820,7 @@ exports[`should render correctly: no badges 1`] = `
>
<MetaQualityGate
qualityGate={
- Object {
+ {
"isDefault": true,
"key": "30",
"name": "Sonar way",
@@ -830,8 +830,8 @@ exports[`should render correctly: no badges 1`] = `
<withLanguagesContext(MetaQualityProfiles)
headerClassName="big-spacer-top"
profiles={
- Array [
- Object {
+ [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
@@ -843,25 +843,25 @@ exports[`should render correctly: no badges 1`] = `
</div>
<MetaLinks
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": [],
"visibility": "public",
}
}
@@ -927,25 +927,25 @@ exports[`should render correctly: no badges, no notifications 1`] = `
</div>
<MetaTags
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": [],
"visibility": "public",
}
}
@@ -957,29 +957,29 @@ exports[`should render correctly: no badges, no notifications 1`] = `
>
<MetaSize
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": [],
"visibility": "public",
}
}
- measures={Array []}
+ measures={[]}
/>
</div>
<div
@@ -987,7 +987,7 @@ exports[`should render correctly: no badges, no notifications 1`] = `
>
<MetaQualityGate
qualityGate={
- Object {
+ {
"isDefault": true,
"key": "30",
"name": "Sonar way",
@@ -997,8 +997,8 @@ exports[`should render correctly: no badges, no notifications 1`] = `
<withLanguagesContext(MetaQualityProfiles)
headerClassName="big-spacer-top"
profiles={
- Array [
- Object {
+ [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
@@ -1010,25 +1010,25 @@ exports[`should render correctly: no badges, no notifications 1`] = `
</div>
<MetaLinks
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": [],
"visibility": "public",
}
}
@@ -1087,25 +1087,25 @@ exports[`should render correctly: with notifications 1`] = `
</div>
<MetaTags
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": [],
"visibility": "public",
}
}
@@ -1117,29 +1117,29 @@ exports[`should render correctly: with notifications 1`] = `
>
<MetaSize
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": [],
"visibility": "public",
}
}
- measures={Array []}
+ measures={[]}
/>
</div>
<div
@@ -1147,7 +1147,7 @@ exports[`should render correctly: with notifications 1`] = `
>
<MetaQualityGate
qualityGate={
- Object {
+ {
"isDefault": true,
"key": "30",
"name": "Sonar way",
@@ -1157,8 +1157,8 @@ exports[`should render correctly: with notifications 1`] = `
<withLanguagesContext(MetaQualityProfiles)
headerClassName="big-spacer-top"
profiles={
- Array [
- Object {
+ [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
@@ -1170,25 +1170,25 @@ exports[`should render correctly: with notifications 1`] = `
</div>
<MetaLinks
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": [],
"visibility": "public",
}
}
@@ -1255,26 +1255,26 @@ exports[`should render with description 1`] = `
</p>
<MetaTags
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"description": "Lorem ipsum",
"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": [],
}
}
onComponentChange={[MockFunction]}
@@ -1285,29 +1285,29 @@ exports[`should render with description 1`] = `
>
<MetaSize
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"description": "Lorem ipsum",
"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 []}
+ measures={[]}
/>
</div>
<div
@@ -1315,7 +1315,7 @@ exports[`should render with description 1`] = `
>
<MetaQualityGate
qualityGate={
- Object {
+ {
"isDefault": true,
"key": "30",
"name": "Sonar way",
@@ -1325,8 +1325,8 @@ exports[`should render with description 1`] = `
<withLanguagesContext(MetaQualityProfiles)
headerClassName="big-spacer-top"
profiles={
- Array [
- Object {
+ [
+ {
"deleted": false,
"key": "my-qp",
"language": "ts",
@@ -1338,26 +1338,26 @@ exports[`should render with description 1`] = `
</div>
<MetaLinks
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"description": "Lorem ipsum",
"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/app/components/nav/component/projectInformation/badges/__tests__/__snapshots__/BadgeParams-test.tsx.snap b/server/sonar-web/src/main/js/app/components/nav/component/projectInformation/badges/__tests__/__snapshots__/BadgeParams-test.tsx.snap
index d781ec5fd07..fcaba89bce7 100644
--- a/server/sonar-web/src/main/js/app/components/nav/component/projectInformation/badges/__tests__/__snapshots__/BadgeParams-test.tsx.snap
+++ b/server/sonar-web/src/main/js/app/components/nav/component/projectInformation/badges/__tests__/__snapshots__/BadgeParams-test.tsx.snap
@@ -14,7 +14,7 @@ exports[`should display measure badge params 1`] = `
isSearchable={false}
name="badge-metric"
onChange={[Function]}
- options={Array []}
+ options={[]}
/>
<label
className="spacer-right spacer-top"
@@ -26,7 +26,7 @@ exports[`should display measure badge params 1`] = `
<Select
className="input-medium"
defaultValue={
- Object {
+ {
"label": "overview.badges.options.formats.md",
"value": "md",
}
@@ -35,12 +35,12 @@ exports[`should display measure badge params 1`] = `
name="badge-format"
onChange={[Function]}
options={
- Array [
- Object {
+ [
+ {
"label": "overview.badges.options.formats.md",
"value": "md",
},
- Object {
+ {
"label": "overview.badges.options.formats.url",
"value": "url",
},
@@ -62,7 +62,7 @@ exports[`should display quality gate badge params 1`] = `
<Select
className="input-medium"
defaultValue={
- Object {
+ {
"label": "overview.badges.options.formats.md",
"value": "md",
}
@@ -71,12 +71,12 @@ exports[`should display quality gate badge params 1`] = `
name="badge-format"
onChange={[Function]}
options={
- Array [
- Object {
+ [
+ {
"label": "overview.badges.options.formats.md",
"value": "md",
},
- Object {
+ {
"label": "overview.badges.options.formats.url",
"value": "url",
},
diff --git a/server/sonar-web/src/main/js/app/components/nav/component/projectInformation/badges/__tests__/__snapshots__/ProjectBadges-test.tsx.snap b/server/sonar-web/src/main/js/app/components/nav/component/projectInformation/badges/__tests__/__snapshots__/ProjectBadges-test.tsx.snap
index 97f6de76f2e..402bd1f74f3 100644
--- a/server/sonar-web/src/main/js/app/components/nav/component/projectInformation/badges/__tests__/__snapshots__/ProjectBadges-test.tsx.snap
+++ b/server/sonar-web/src/main/js/app/components/nav/component/projectInformation/badges/__tests__/__snapshots__/ProjectBadges-test.tsx.snap
@@ -39,7 +39,7 @@ exports[`should display correctly 1`] = `
<withMetricsContext(BadgeParams)
className="big-spacer-bottom display-flex-column"
options={
- Object {
+ {
"metric": "alert_status",
}
}
diff --git a/server/sonar-web/src/main/js/app/components/nav/component/projectInformation/meta/__tests__/__snapshots__/MetaLink-test.tsx.snap b/server/sonar-web/src/main/js/app/components/nav/component/projectInformation/meta/__tests__/__snapshots__/MetaLink-test.tsx.snap
index 222cc78c4a4..8047eda1371 100644
--- a/server/sonar-web/src/main/js/app/components/nav/component/projectInformation/meta/__tests__/__snapshots__/MetaLink-test.tsx.snap
+++ b/server/sonar-web/src/main/js/app/components/nav/component/projectInformation/meta/__tests__/__snapshots__/MetaLink-test.tsx.snap
@@ -41,7 +41,7 @@ exports[`should match snapshot: dangerous link, expanded 1`] = `
onClick={[Function]}
readOnly={true}
type="text"
- value="javascript:alert(\\"hi\\")"
+ value="javascript:alert("hi")"
/>
<ClearButton
className="little-spacer-left"
diff --git a/server/sonar-web/src/main/js/app/components/nav/component/projectInformation/meta/__tests__/__snapshots__/MetaQualityProfiles-test.tsx.snap b/server/sonar-web/src/main/js/app/components/nav/component/projectInformation/meta/__tests__/__snapshots__/MetaQualityProfiles-test.tsx.snap
index 04941dc74b7..7ebb9e6cb29 100644
--- a/server/sonar-web/src/main/js/app/components/nav/component/projectInformation/meta/__tests__/__snapshots__/MetaQualityProfiles-test.tsx.snap
+++ b/server/sonar-web/src/main/js/app/components/nav/component/projectInformation/meta/__tests__/__snapshots__/MetaQualityProfiles-test.tsx.snap
@@ -44,7 +44,7 @@ exports[`should render correctly 1`] = `
</span>
<ForwardRef(Link)
to={
- Object {
+ {
"pathname": "/profiles/show",
"search": "?name=name&language=css",
}
@@ -110,7 +110,7 @@ exports[`should render correctly 2`] = `
</span>
<ForwardRef(Link)
to={
- Object {
+ {
"pathname": "/profiles/show",
"search": "?name=name&language=css",
}
diff --git a/server/sonar-web/src/main/js/app/components/nav/component/projectInformation/meta/__tests__/__snapshots__/MetaTags-test.tsx.snap b/server/sonar-web/src/main/js/app/components/nav/component/projectInformation/meta/__tests__/__snapshots__/MetaTags-test.tsx.snap
index 72b8274396d..b13505db622 100644
--- a/server/sonar-web/src/main/js/app/components/nav/component/projectInformation/meta/__tests__/__snapshots__/MetaTags-test.tsx.snap
+++ b/server/sonar-web/src/main/js/app/components/nav/component/projectInformation/meta/__tests__/__snapshots__/MetaTags-test.tsx.snap
@@ -10,7 +10,7 @@ exports[`should render with tags and admin rights 1`] = `
overlay={
<MetaTagsSelector
selectedTags={
- Array [
+ [
"foo",
"bar",
]
@@ -27,7 +27,7 @@ exports[`should render with tags and admin rights 1`] = `
<TagsList
allowUpdate={true}
tags={
- Array [
+ [
"foo",
"bar",
]
@@ -46,7 +46,7 @@ exports[`should render without tags and admin rights 1`] = `
allowUpdate={false}
className="note"
tags={
- Array [
+ [
"no_tags",
]
}
diff --git a/server/sonar-web/src/main/js/app/components/nav/component/projectInformation/notifications/__tests__/__snapshots__/ProjectNotifications-test.tsx.snap b/server/sonar-web/src/main/js/app/components/nav/component/projectInformation/notifications/__tests__/__snapshots__/ProjectNotifications-test.tsx.snap
index 3a02b975e48..b36d5d8ddf6 100644
--- a/server/sonar-web/src/main/js/app/components/nav/component/projectInformation/notifications/__tests__/__snapshots__/ProjectNotifications-test.tsx.snap
+++ b/server/sonar-web/src/main/js/app/components/nav/component/projectInformation/notifications/__tests__/__snapshots__/ProjectNotifications-test.tsx.snap
@@ -45,15 +45,15 @@ exports[`should render correctly 1`] = `
</thead>
<NotificationsList
channels={
- Array [
+ [
"channel1",
"channel2",
]
}
checkboxId={[Function]}
notifications={
- Array [
- Object {
+ [
+ {
"channel": "channel1",
"project": "foo",
"projectName": "Foo",
@@ -65,7 +65,7 @@ exports[`should render correctly 1`] = `
onRemove={[Function]}
project={true}
types={
- Array [
+ [
"CeReportTaskFailure",
]
}
diff --git a/server/sonar-web/src/main/js/app/components/nav/global/__tests__/__snapshots__/GlobalNav-test.tsx.snap b/server/sonar-web/src/main/js/app/components/nav/global/__tests__/__snapshots__/GlobalNav-test.tsx.snap
index e0baf5bebbd..0a1ec124c79 100644
--- a/server/sonar-web/src/main/js/app/components/nav/global/__tests__/__snapshots__/GlobalNav-test.tsx.snap
+++ b/server/sonar-web/src/main/js/app/components/nav/global/__tests__/__snapshots__/GlobalNav-test.tsx.snap
@@ -9,13 +9,13 @@ exports[`should render correctly: anonymous users 1`] = `
<withAppStateContext(GlobalNavBranding) />
<withAppStateContext(GlobalNavMenu)
currentUser={
- Object {
- "dismissedNotices": Object {},
+ {
+ "dismissedNotices": {},
"isLoggedIn": false,
}
}
location={
- Object {
+ {
"pathname": "",
}
}
@@ -27,8 +27,8 @@ exports[`should render correctly: anonymous users 1`] = `
<withRouter(Search) />
<withRouter(GlobalNavUser)
currentUser={
- Object {
- "dismissedNotices": Object {},
+ {
+ "dismissedNotices": {},
"isLoggedIn": false,
}
}
@@ -46,12 +46,12 @@ exports[`should render correctly: logged in users 1`] = `
<withAppStateContext(GlobalNavBranding) />
<withAppStateContext(GlobalNavMenu)
currentUser={
- Object {
+ {
"isLoggedIn": true,
}
}
location={
- Object {
+ {
"pathname": "",
}
}
@@ -63,7 +63,7 @@ exports[`should render correctly: logged in users 1`] = `
<withRouter(Search) />
<withRouter(GlobalNavUser)
currentUser={
- Object {
+ {
"isLoggedIn": true,
}
}
diff --git a/server/sonar-web/src/main/js/app/components/nav/settings/__tests__/__snapshots__/PendingPluginsActionNotif-test.tsx.snap b/server/sonar-web/src/main/js/app/components/nav/settings/__tests__/__snapshots__/PendingPluginsActionNotif-test.tsx.snap
index 506b473ce46..5c98124e87b 100644
--- a/server/sonar-web/src/main/js/app/components/nav/settings/__tests__/__snapshots__/PendingPluginsActionNotif-test.tsx.snap
+++ b/server/sonar-web/src/main/js/app/components/nav/settings/__tests__/__snapshots__/PendingPluginsActionNotif-test.tsx.snap
@@ -23,7 +23,7 @@ exports[`should display pending actions 1`] = `
defaultMessage="marketplace.install_x_plugins"
id="marketplace.install_x_plugins"
values={
- Object {
+ {
"nb": <strong>
2
</strong>,
@@ -39,7 +39,7 @@ exports[`should display pending actions 1`] = `
defaultMessage="marketplace.uninstall_x_plugins"
id="marketplace.uninstall_x_plugins"
values={
- Object {
+ {
"nb": <strong>
1
</strong>,
diff --git a/server/sonar-web/src/main/js/app/components/nav/settings/__tests__/__snapshots__/SettingsNav-test.tsx.snap b/server/sonar-web/src/main/js/app/components/nav/settings/__tests__/__snapshots__/SettingsNav-test.tsx.snap
index 383948b261d..f09713ebd58 100644
--- a/server/sonar-web/src/main/js/app/components/nav/settings/__tests__/__snapshots__/SettingsNav-test.tsx.snap
+++ b/server/sonar-web/src/main/js/app/components/nav/settings/__tests__/__snapshots__/SettingsNav-test.tsx.snap
@@ -4,17 +4,17 @@ exports[`should display a pending plugin notif 1`] = `
<PendingPluginsActionNotif
fetchSystemStatus={[MockFunction]}
pending={
- Object {
- "installing": Array [
- Object {
+ {
+ "installing": [
+ {
"implementationBuild": "1",
"key": "foo",
"name": "Foo",
"version": "1.0",
},
],
- "removing": Array [],
- "updating": Array [],
+ "removing": [],
+ "updating": [],
}
}
refreshPending={[MockFunction]}
@@ -323,7 +323,7 @@ exports[`should work with extensions 1`] = `
`;
exports[`should work with extensions 2`] = `
-Array [
+[
<Dropdown
overlay={
<ul
diff --git a/server/sonar-web/src/main/js/app/components/nav/settings/__tests__/__snapshots__/SystemRestartNotif-test.tsx.snap b/server/sonar-web/src/main/js/app/components/nav/settings/__tests__/__snapshots__/SystemRestartNotif-test.tsx.snap
index a8678bc9396..0c0644356e9 100644
--- a/server/sonar-web/src/main/js/app/components/nav/settings/__tests__/__snapshots__/SystemRestartNotif-test.tsx.snap
+++ b/server/sonar-web/src/main/js/app/components/nav/settings/__tests__/__snapshots__/SystemRestartNotif-test.tsx.snap
@@ -9,7 +9,7 @@ exports[`should render correctly 1`] = `
defaultMessage="system.instance_restarting"
id="system.instance_restarting"
values={
- Object {
+ {
"instance": undefined,
"link": <ForwardRef(Link)
to="/admin/background_tasks"
diff --git a/server/sonar-web/src/main/js/app/components/search/__tests__/__snapshots__/SearchResult-test.tsx.snap b/server/sonar-web/src/main/js/app/components/search/__tests__/__snapshots__/SearchResult-test.tsx.snap
index 0ab574771a1..18f2646901e 100644
--- a/server/sonar-web/src/main/js/app/components/search/__tests__/__snapshots__/SearchResult-test.tsx.snap
+++ b/server/sonar-web/src/main/js/app/components/search/__tests__/__snapshots__/SearchResult-test.tsx.snap
@@ -9,7 +9,7 @@ exports[`renders favorite 1`] = `
onClick={[MockFunction]}
onFocus={[Function]}
to={
- Object {
+ {
"pathname": "/dashboard",
"search": "?id=foo",
}
@@ -59,7 +59,7 @@ exports[`renders match 1`] = `
onClick={[MockFunction]}
onFocus={[Function]}
to={
- Object {
+ {
"pathname": "/dashboard",
"search": "?id=foo",
}
@@ -83,7 +83,7 @@ exports[`renders match 1`] = `
<span
className="navbar-search-item-match"
dangerouslySetInnerHTML={
- Object {
+ {
"__html": "f<mark>o</mark>o",
}
}
@@ -108,7 +108,7 @@ exports[`renders recently browsed 1`] = `
onClick={[MockFunction]}
onFocus={[Function]}
to={
- Object {
+ {
"pathname": "/dashboard",
"search": "?id=foo",
}
@@ -157,7 +157,7 @@ exports[`renders selected 1`] = `
onClick={[MockFunction]}
onFocus={[Function]}
to={
- Object {
+ {
"pathname": "/dashboard",
"search": "?id=foo",
}
@@ -204,7 +204,7 @@ exports[`renders selected 2`] = `
onClick={[MockFunction]}
onFocus={[Function]}
to={
- Object {
+ {
"pathname": "/dashboard",
"search": "?id=foo",
}
diff --git a/server/sonar-web/src/main/js/app/components/search/__tests__/__snapshots__/SearchShowMore-test.tsx.snap b/server/sonar-web/src/main/js/app/components/search/__tests__/__snapshots__/SearchShowMore-test.tsx.snap
index 7f96f8ff478..85382613b9f 100644
--- a/server/sonar-web/src/main/js/app/components/search/__tests__/__snapshots__/SearchShowMore-test.tsx.snap
+++ b/server/sonar-web/src/main/js/app/components/search/__tests__/__snapshots__/SearchShowMore-test.tsx.snap
@@ -23,7 +23,7 @@ exports[`should render 1`] = `
defaultMessage="search.show_more.hint"
id="search.show_more.hint"
values={
- Object {
+ {
"key": <span
className="shortcut-button shortcut-button-small"
>
diff --git a/server/sonar-web/src/main/js/app/components/update-notification/__tests__/__snapshots__/UpdateNotification-test.tsx.snap b/server/sonar-web/src/main/js/app/components/update-notification/__tests__/__snapshots__/UpdateNotification-test.tsx.snap
index a6d9f0767dd..64487bc4c38 100644
--- a/server/sonar-web/src/main/js/app/components/update-notification/__tests__/__snapshots__/UpdateNotification-test.tsx.snap
+++ b/server/sonar-web/src/main/js/app/components/update-notification/__tests__/__snapshots__/UpdateNotification-test.tsx.snap
@@ -10,8 +10,8 @@ exports[`should render correctly: default 1`] = `
<SystemUpgradeButton
latestLTS="8.9"
systemUpgrades={
- Array [
- Object {
+ [
+ {
"changeLogUrl": "changelogurl",
"description": "Version 5.6.7 description",
"downloadUrl": "downloadurl",
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",
diff --git a/server/sonar-web/src/main/js/components/SourceViewer/__tests__/__snapshots__/SourceViewer-test.tsx.snap b/server/sonar-web/src/main/js/components/SourceViewer/__tests__/__snapshots__/SourceViewer-test.tsx.snap
index 48d95c2940d..1469fa0fce8 100644
--- a/server/sonar-web/src/main/js/components/SourceViewer/__tests__/__snapshots__/SourceViewer-test.tsx.snap
+++ b/server/sonar-web/src/main/js/components/SourceViewer/__tests__/__snapshots__/SourceViewer-test.tsx.snap
@@ -3,20 +3,20 @@
exports[`should render correctly 1`] = `
<ContextProvider
value={
- Object {
- "branchLike": Object {
+ {
+ "branchLike": {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": true,
"name": "master",
},
- "file": Object {
+ "file": {
"canMarkAsFavorite": true,
"fav": false,
"key": "project:foo/bar.ts",
"leakPeriodDate": "2018-06-20T17:12:19+0200",
"longName": "foo/bar.ts",
- "measures": Object {
+ "measures": {
"coverage": "85.2",
"duplicationDensity": "1.0",
"issues": "12",
@@ -40,7 +40,7 @@ exports[`should render correctly 1`] = `
</ContextConsumer>
<SourceViewerCode
branchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": true,
@@ -51,21 +51,21 @@ exports[`should render correctly 1`] = `
displayIssueLocationsCount={true}
displayIssueLocationsLink={true}
displayLocationMarkers={true}
- duplicationsByLine={Object {}}
+ duplicationsByLine={{}}
hasSourcesAfter={false}
hasSourcesBefore={false}
- highlightedSymbols={Array []}
+ highlightedSymbols={[]}
issueLocationsByLine={
- Object {
- "25": Array [
- Object {
+ {
+ "25": [
+ {
"from": 0,
"line": 25,
"to": 999999,
},
],
- "26": Array [
- Object {
+ "26": [
+ {
"from": 0,
"line": 26,
"to": 15,
@@ -74,17 +74,17 @@ exports[`should render correctly 1`] = `
}
}
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",
@@ -93,33 +93,33 @@ 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",
},
]
}
issuesByLine={
- Object {
- "26": Array [
- Object {
- "actions": Array [],
+ {
+ "26": [
+ {
+ "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",
@@ -128,16 +128,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",
},
],
@@ -155,10 +155,10 @@ exports[`should render correctly 1`] = `
onIssuesClose={[Function]}
onIssuesOpen={[Function]}
onSymbolClick={[Function]}
- openIssuesByLine={Object {}}
+ openIssuesByLine={{}}
renderDuplicationPopup={[Function]}
- sources={Array []}
- symbolsByLine={Object {}}
+ sources={[]}
+ symbolsByLine={{}}
/>
</div>
</ContextProvider>
diff --git a/server/sonar-web/src/main/js/components/SourceViewer/__tests__/__snapshots__/SourceViewerHeader-test.tsx.snap b/server/sonar-web/src/main/js/components/SourceViewer/__tests__/__snapshots__/SourceViewerHeader-test.tsx.snap
index 7b0b435b8e6..abfac0ec143 100644
--- a/server/sonar-web/src/main/js/components/SourceViewer/__tests__/__snapshots__/SourceViewerHeader-test.tsx.snap
+++ b/server/sonar-web/src/main/js/components/SourceViewer/__tests__/__snapshots__/SourceViewerHeader-test.tsx.snap
@@ -74,7 +74,7 @@ exports[`should render correctly for a regular file 1`] = `
rel="noopener noreferrer"
target="_blank"
to={
- Object {
+ {
"pathname": "/code",
"search": "?id=project&selected=project%3Afoo%2Fbar.ts",
}
@@ -208,7 +208,7 @@ exports[`should render correctly for a unit test 1`] = `
rel="noopener noreferrer"
target="_blank"
to={
- Object {
+ {
"pathname": "/code",
"search": "?id=my-project&selected=my-project%3Afoo%2Fbar.ts",
}
@@ -365,7 +365,7 @@ exports[`should render correctly if issue details are passed 1`] = `
>
<ForwardRef(Link)
to={
- Object {
+ {
"hash": "",
"pathname": "/project/issues",
"search": "?files=foo%2Fbar.ts&resolved=false&types=BUG&id=project",
@@ -390,7 +390,7 @@ exports[`should render correctly if issue details are passed 1`] = `
>
<ForwardRef(Link)
to={
- Object {
+ {
"hash": "",
"pathname": "/project/issues",
"search": "?files=foo%2Fbar.ts&resolved=false&types=VULNERABILITY&id=project",
@@ -415,7 +415,7 @@ exports[`should render correctly if issue details are passed 1`] = `
>
<ForwardRef(Link)
to={
- Object {
+ {
"hash": "",
"pathname": "/project/issues",
"search": "?files=foo%2Fbar.ts&resolved=false&types=CODE_SMELL&id=project",
@@ -440,7 +440,7 @@ exports[`should render correctly if issue details are passed 1`] = `
>
<ForwardRef(Link)
to={
- Object {
+ {
"hash": "",
"pathname": "/security_hotspots",
"search": "?id=project&files=foo%2Fbar.ts",
@@ -473,7 +473,7 @@ exports[`should render correctly if issue details are passed 1`] = `
rel="noopener noreferrer"
target="_blank"
to={
- Object {
+ {
"pathname": "/code",
"search": "?id=project&selected=project%3Afoo%2Fbar.ts",
}
diff --git a/server/sonar-web/src/main/js/components/SourceViewer/components/__tests__/__snapshots__/Line-test.tsx.snap b/server/sonar-web/src/main/js/components/SourceViewer/components/__tests__/__snapshots__/Line-test.tsx.snap
index 5f0d5e26add..9ba0983bbf1 100644
--- a/server/sonar-web/src/main/js/components/SourceViewer/components/__tests__/__snapshots__/Line-test.tsx.snap
+++ b/server/sonar-web/src/main/js/components/SourceViewer/components/__tests__/__snapshots__/Line-test.tsx.snap
@@ -9,8 +9,8 @@ exports[`should render correctly for last, new, and highlighted lines 1`] = `
displayOptions={true}
firstLineNumber={1}
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,
@@ -24,8 +24,8 @@ exports[`should render correctly for last, new, and highlighted lines 1`] = `
/>
<Memo(LineSCM)
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,
@@ -42,10 +42,10 @@ exports[`should render correctly for last, new, and highlighted lines 1`] = `
/>
<LineCode
displayLocationMarkers={false}
- issueLocations={Array []}
+ issueLocations={[]}
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,
@@ -58,7 +58,7 @@ exports[`should render correctly for last, new, and highlighted lines 1`] = `
}
onLocationSelect={[MockFunction]}
onSymbolClick={[MockFunction]}
- secondaryIssueLocations={Array []}
+ secondaryIssueLocations={[]}
/>
</tr>
`;
diff --git a/server/sonar-web/src/main/js/components/SourceViewer/components/__tests__/__snapshots__/LineIssueList-test.tsx.snap b/server/sonar-web/src/main/js/components/SourceViewer/components/__tests__/__snapshots__/LineIssueList-test.tsx.snap
index 57a9ee6c5a3..231134d6051 100644
--- a/server/sonar-web/src/main/js/components/SourceViewer/components/__tests__/__snapshots__/LineIssueList-test.tsx.snap
+++ b/server/sonar-web/src/main/js/components/SourceViewer/components/__tests__/__snapshots__/LineIssueList-test.tsx.snap
@@ -6,7 +6,7 @@ exports[`should render issues 1`] = `
>
<Issue
branchLike={
- Object {
+ {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": false,
@@ -15,16 +15,16 @@ exports[`should render issues 1`] = `
}
displayWhyIsThisAnIssue={true}
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": "issue",
"line": 25,
"message": "Reduce the number of conditional operators (4) used in the expression",
@@ -33,16 +33,16 @@ exports[`should render issues 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/components/SourceViewer/components/__tests__/__snapshots__/MeasuresOverlay-test.tsx.snap b/server/sonar-web/src/main/js/components/SourceViewer/components/__tests__/__snapshots__/MeasuresOverlay-test.tsx.snap
index 3327c902762..e0330d87479 100644
--- a/server/sonar-web/src/main/js/components/SourceViewer/components/__tests__/__snapshots__/MeasuresOverlay-test.tsx.snap
+++ b/server/sonar-web/src/main/js/components/SourceViewer/components/__tests__/__snapshots__/MeasuresOverlay-test.tsx.snap
@@ -26,7 +26,7 @@ exports[`should render source file 1`] = `
/>
<ForwardRef(Link)
to={
- Object {
+ {
"pathname": "/dashboard",
"search": "?branch=feature&id=project-key",
}
@@ -60,8 +60,8 @@ exports[`should render source file 1`] = `
<MeasuresOverlayMeasure
key="lines"
measure={
- Object {
- "metric": Object {
+ {
+ "metric": {
"domain": "Size",
"key": "lines",
"type": "INT",
@@ -73,8 +73,8 @@ exports[`should render source file 1`] = `
<MeasuresOverlayMeasure
key="ncloc"
measure={
- Object {
- "metric": Object {
+ {
+ "metric": {
"domain": "Size",
"key": "ncloc",
"type": "INT",
@@ -86,8 +86,8 @@ exports[`should render source file 1`] = `
<MeasuresOverlayMeasure
key="comment_lines"
measure={
- Object {
- "metric": Object {
+ {
+ "metric": {
"domain": "Size",
"key": "comment_lines",
"type": "INT",
@@ -99,8 +99,8 @@ exports[`should render source file 1`] = `
<MeasuresOverlayMeasure
key="comment_lines_density"
measure={
- Object {
- "metric": Object {
+ {
+ "metric": {
"domain": "Size",
"key": "comment_lines_density",
"type": "PERCENT",
@@ -116,8 +116,8 @@ exports[`should render source file 1`] = `
<MeasuresOverlayMeasure
key="cognitive_complexity"
measure={
- Object {
- "metric": Object {
+ {
+ "metric": {
"domain": "Complexity",
"key": "cognitive_complexity",
"type": "INT",
@@ -129,8 +129,8 @@ exports[`should render source file 1`] = `
<MeasuresOverlayMeasure
key="complexity"
measure={
- Object {
- "metric": Object {
+ {
+ "metric": {
"domain": "Complexity",
"key": "complexity",
"type": "INT",
@@ -443,8 +443,8 @@ exports[`should render source file 1`] = `
<MeasuresOverlayMeasure
key="uncovered_lines"
measure={
- Object {
- "metric": Object {
+ {
+ "metric": {
"domain": "Coverage",
"key": "uncovered_lines",
"type": "INT",
@@ -456,8 +456,8 @@ exports[`should render source file 1`] = `
<MeasuresOverlayMeasure
key="lines_to_cover"
measure={
- Object {
- "metric": Object {
+ {
+ "metric": {
"domain": "Coverage",
"key": "lines_to_cover",
"type": "INT",
@@ -513,8 +513,8 @@ exports[`should render source file 1`] = `
<MeasuresOverlayMeasure
key="duplicated_blocks"
measure={
- Object {
- "metric": Object {
+ {
+ "metric": {
"domain": "Duplications",
"key": "duplicated_blocks",
"type": "INT",
@@ -526,8 +526,8 @@ exports[`should render source file 1`] = `
<MeasuresOverlayMeasure
key="duplicated_lines"
measure={
- Object {
- "metric": Object {
+ {
+ "metric": {
"domain": "Duplications",
"key": "duplicated_lines",
"type": "INT",
@@ -590,7 +590,7 @@ exports[`should render source file 2`] = `
/>
<ForwardRef(Link)
to={
- Object {
+ {
"pathname": "/dashboard",
"search": "?branch=feature&id=project-key",
}
@@ -624,8 +624,8 @@ exports[`should render source file 2`] = `
<MeasuresOverlayMeasure
key="lines"
measure={
- Object {
- "metric": Object {
+ {
+ "metric": {
"domain": "Size",
"key": "lines",
"type": "INT",
@@ -637,8 +637,8 @@ exports[`should render source file 2`] = `
<MeasuresOverlayMeasure
key="ncloc"
measure={
- Object {
- "metric": Object {
+ {
+ "metric": {
"domain": "Size",
"key": "ncloc",
"type": "INT",
@@ -650,8 +650,8 @@ exports[`should render source file 2`] = `
<MeasuresOverlayMeasure
key="comment_lines"
measure={
- Object {
- "metric": Object {
+ {
+ "metric": {
"domain": "Size",
"key": "comment_lines",
"type": "INT",
@@ -663,8 +663,8 @@ exports[`should render source file 2`] = `
<MeasuresOverlayMeasure
key="comment_lines_density"
measure={
- Object {
- "metric": Object {
+ {
+ "metric": {
"domain": "Size",
"key": "comment_lines_density",
"type": "PERCENT",
@@ -680,8 +680,8 @@ exports[`should render source file 2`] = `
<MeasuresOverlayMeasure
key="cognitive_complexity"
measure={
- Object {
- "metric": Object {
+ {
+ "metric": {
"domain": "Complexity",
"key": "cognitive_complexity",
"type": "INT",
@@ -693,8 +693,8 @@ exports[`should render source file 2`] = `
<MeasuresOverlayMeasure
key="complexity"
measure={
- Object {
- "metric": Object {
+ {
+ "metric": {
"domain": "Complexity",
"key": "complexity",
"type": "INT",
@@ -1007,8 +1007,8 @@ exports[`should render source file 2`] = `
<MeasuresOverlayMeasure
key="uncovered_lines"
measure={
- Object {
- "metric": Object {
+ {
+ "metric": {
"domain": "Coverage",
"key": "uncovered_lines",
"type": "INT",
@@ -1020,8 +1020,8 @@ exports[`should render source file 2`] = `
<MeasuresOverlayMeasure
key="lines_to_cover"
measure={
- Object {
- "metric": Object {
+ {
+ "metric": {
"domain": "Coverage",
"key": "lines_to_cover",
"type": "INT",
@@ -1077,8 +1077,8 @@ exports[`should render source file 2`] = `
<MeasuresOverlayMeasure
key="duplicated_blocks"
measure={
- Object {
- "metric": Object {
+ {
+ "metric": {
"domain": "Duplications",
"key": "duplicated_blocks",
"type": "INT",
@@ -1090,8 +1090,8 @@ exports[`should render source file 2`] = `
<MeasuresOverlayMeasure
key="duplicated_lines"
measure={
- Object {
- "metric": Object {
+ {
+ "metric": {
"domain": "Duplications",
"key": "duplicated_lines",
"type": "INT",
@@ -1132,8 +1132,8 @@ exports[`should render source file 2`] = `
<MeasuresOverlayMeasure
key="cognitive_complexity"
measure={
- Object {
- "metric": Object {
+ {
+ "metric": {
"domain": "Complexity",
"key": "cognitive_complexity",
"type": "INT",
@@ -1145,8 +1145,8 @@ exports[`should render source file 2`] = `
<MeasuresOverlayMeasure
key="complexity"
measure={
- Object {
- "metric": Object {
+ {
+ "metric": {
"domain": "Complexity",
"key": "complexity",
"type": "INT",
@@ -1176,8 +1176,8 @@ exports[`should render source file 2`] = `
<MeasuresOverlayMeasure
key="classes"
measure={
- Object {
- "metric": Object {
+ {
+ "metric": {
"domain": "Size",
"key": "classes",
"type": "INT",
@@ -1189,8 +1189,8 @@ exports[`should render source file 2`] = `
<MeasuresOverlayMeasure
key="comment_lines"
measure={
- Object {
- "metric": Object {
+ {
+ "metric": {
"domain": "Size",
"key": "comment_lines",
"type": "INT",
@@ -1202,8 +1202,8 @@ exports[`should render source file 2`] = `
<MeasuresOverlayMeasure
key="comment_lines_density"
measure={
- Object {
- "metric": Object {
+ {
+ "metric": {
"domain": "Size",
"key": "comment_lines_density",
"type": "PERCENT",
@@ -1215,8 +1215,8 @@ exports[`should render source file 2`] = `
<MeasuresOverlayMeasure
key="files"
measure={
- Object {
- "metric": Object {
+ {
+ "metric": {
"domain": "Size",
"key": "files",
"type": "INT",
@@ -1228,8 +1228,8 @@ exports[`should render source file 2`] = `
<MeasuresOverlayMeasure
key="functions"
measure={
- Object {
- "metric": Object {
+ {
+ "metric": {
"domain": "Size",
"key": "functions",
"type": "INT",
@@ -1241,8 +1241,8 @@ exports[`should render source file 2`] = `
<MeasuresOverlayMeasure
key="lines"
measure={
- Object {
- "metric": Object {
+ {
+ "metric": {
"domain": "Size",
"key": "lines",
"type": "INT",
@@ -1254,8 +1254,8 @@ exports[`should render source file 2`] = `
<MeasuresOverlayMeasure
key="ncloc"
measure={
- Object {
- "metric": Object {
+ {
+ "metric": {
"domain": "Size",
"key": "ncloc",
"type": "INT",
@@ -1267,8 +1267,8 @@ exports[`should render source file 2`] = `
<MeasuresOverlayMeasure
key="statements"
measure={
- Object {
- "metric": Object {
+ {
+ "metric": {
"domain": "Size",
"key": "statements",
"type": "INT",
@@ -1298,8 +1298,8 @@ exports[`should render source file 2`] = `
<MeasuresOverlayMeasure
key="coverage"
measure={
- Object {
- "metric": Object {
+ {
+ "metric": {
"domain": "Coverage",
"key": "coverage",
"type": "PERCENT",
@@ -1311,8 +1311,8 @@ exports[`should render source file 2`] = `
<MeasuresOverlayMeasure
key="line_coverage"
measure={
- Object {
- "metric": Object {
+ {
+ "metric": {
"domain": "Coverage",
"key": "line_coverage",
"type": "PERCENT",
@@ -1324,8 +1324,8 @@ exports[`should render source file 2`] = `
<MeasuresOverlayMeasure
key="lines_to_cover"
measure={
- Object {
- "metric": Object {
+ {
+ "metric": {
"domain": "Coverage",
"key": "lines_to_cover",
"type": "INT",
@@ -1337,8 +1337,8 @@ exports[`should render source file 2`] = `
<MeasuresOverlayMeasure
key="uncovered_lines"
measure={
- Object {
- "metric": Object {
+ {
+ "metric": {
"domain": "Coverage",
"key": "uncovered_lines",
"type": "INT",
@@ -1368,8 +1368,8 @@ exports[`should render source file 2`] = `
<MeasuresOverlayMeasure
key="bugs"
measure={
- Object {
- "metric": Object {
+ {
+ "metric": {
"domain": "Reliability",
"key": "bugs",
"type": "INT",
@@ -1381,8 +1381,8 @@ exports[`should render source file 2`] = `
<MeasuresOverlayMeasure
key="reliability_rating"
measure={
- Object {
- "metric": Object {
+ {
+ "metric": {
"domain": "Reliability",
"key": "reliability_rating",
"type": "RATING",
@@ -1416,8 +1416,8 @@ exports[`should render source file 2`] = `
<MeasuresOverlayMeasure
key="security_rating"
measure={
- Object {
- "metric": Object {
+ {
+ "metric": {
"domain": "Security",
"key": "security_rating",
"type": "RATING",
@@ -1429,8 +1429,8 @@ exports[`should render source file 2`] = `
<MeasuresOverlayMeasure
key="vulnerabilities"
measure={
- Object {
- "metric": Object {
+ {
+ "metric": {
"domain": "Security",
"key": "vulnerabilities",
"type": "INT",
@@ -1460,8 +1460,8 @@ exports[`should render source file 2`] = `
<MeasuresOverlayMeasure
key="skipped_tests"
measure={
- Object {
- "metric": Object {
+ {
+ "metric": {
"domain": "Tests",
"key": "skipped_tests",
"type": "INT",
@@ -1473,8 +1473,8 @@ exports[`should render source file 2`] = `
<MeasuresOverlayMeasure
key="test_errors"
measure={
- Object {
- "metric": Object {
+ {
+ "metric": {
"domain": "Tests",
"key": "test_errors",
"type": "INT",
@@ -1486,8 +1486,8 @@ exports[`should render source file 2`] = `
<MeasuresOverlayMeasure
key="test_failures"
measure={
- Object {
- "metric": Object {
+ {
+ "metric": {
"domain": "Tests",
"key": "test_failures",
"type": "INT",
@@ -1499,8 +1499,8 @@ exports[`should render source file 2`] = `
<MeasuresOverlayMeasure
key="test_success_density"
measure={
- Object {
- "metric": Object {
+ {
+ "metric": {
"domain": "Tests",
"key": "test_success_density",
"type": "PERCENT",
@@ -1530,8 +1530,8 @@ exports[`should render source file 2`] = `
<MeasuresOverlayMeasure
key="false_positive_issues"
measure={
- Object {
- "metric": Object {
+ {
+ "metric": {
"domain": "Issues",
"key": "false_positive_issues",
"type": "INT",
@@ -1543,8 +1543,8 @@ exports[`should render source file 2`] = `
<MeasuresOverlayMeasure
key="violations"
measure={
- Object {
- "metric": Object {
+ {
+ "metric": {
"domain": "Issues",
"key": "violations",
"type": "INT",
@@ -1556,8 +1556,8 @@ exports[`should render source file 2`] = `
<MeasuresOverlayMeasure
key="wont_fix_issues"
measure={
- Object {
- "metric": Object {
+ {
+ "metric": {
"domain": "Issues",
"key": "wont_fix_issues",
"type": "INT",
@@ -1587,8 +1587,8 @@ exports[`should render source file 2`] = `
<MeasuresOverlayMeasure
key="duplicated_blocks"
measure={
- Object {
- "metric": Object {
+ {
+ "metric": {
"domain": "Duplications",
"key": "duplicated_blocks",
"type": "INT",
@@ -1600,8 +1600,8 @@ exports[`should render source file 2`] = `
<MeasuresOverlayMeasure
key="duplicated_files"
measure={
- Object {
- "metric": Object {
+ {
+ "metric": {
"domain": "Duplications",
"key": "duplicated_files",
"type": "INT",
@@ -1613,8 +1613,8 @@ exports[`should render source file 2`] = `
<MeasuresOverlayMeasure
key="duplicated_lines"
measure={
- Object {
- "metric": Object {
+ {
+ "metric": {
"domain": "Duplications",
"key": "duplicated_lines",
"type": "INT",
@@ -1626,8 +1626,8 @@ exports[`should render source file 2`] = `
<MeasuresOverlayMeasure
key="duplicated_lines_density"
measure={
- Object {
- "metric": Object {
+ {
+ "metric": {
"domain": "Duplications",
"key": "duplicated_lines_density",
"type": "PERCENT",
@@ -1657,8 +1657,8 @@ exports[`should render source file 2`] = `
<MeasuresOverlayMeasure
key="code_smells"
measure={
- Object {
- "metric": Object {
+ {
+ "metric": {
"domain": "Maintainability",
"key": "code_smells",
"type": "INT",
@@ -1670,8 +1670,8 @@ exports[`should render source file 2`] = `
<MeasuresOverlayMeasure
key="sqale_debt_ratio"
measure={
- Object {
- "metric": Object {
+ {
+ "metric": {
"domain": "Maintainability",
"key": "sqale_debt_ratio",
"type": "PERCENT",
@@ -1683,8 +1683,8 @@ exports[`should render source file 2`] = `
<MeasuresOverlayMeasure
key="sqale_index"
measure={
- Object {
- "metric": Object {
+ {
+ "metric": {
"domain": "Maintainability",
"key": "sqale_index",
"type": "WORK_DUR",
@@ -1737,7 +1737,7 @@ exports[`should render test file 1`] = `
/>
<ForwardRef(Link)
to={
- Object {
+ {
"pathname": "/dashboard",
"search": "?branch=feature&id=project-key",
}
@@ -1771,8 +1771,8 @@ exports[`should render test file 1`] = `
<MeasuresOverlayMeasure
key="test_success_density"
measure={
- Object {
- "metric": Object {
+ {
+ "metric": {
"domain": "Tests",
"key": "test_success_density",
"type": "PERCENT",
@@ -1784,8 +1784,8 @@ exports[`should render test file 1`] = `
<MeasuresOverlayMeasure
key="test_failures"
measure={
- Object {
- "metric": Object {
+ {
+ "metric": {
"domain": "Tests",
"key": "test_failures",
"type": "INT",
@@ -1797,8 +1797,8 @@ exports[`should render test file 1`] = `
<MeasuresOverlayMeasure
key="test_errors"
measure={
- Object {
- "metric": Object {
+ {
+ "metric": {
"domain": "Tests",
"key": "test_errors",
"type": "INT",
@@ -1810,8 +1810,8 @@ exports[`should render test file 1`] = `
<MeasuresOverlayMeasure
key="skipped_tests"
measure={
- Object {
- "metric": Object {
+ {
+ "metric": {
"domain": "Tests",
"key": "skipped_tests",
"type": "INT",
diff --git a/server/sonar-web/src/main/js/components/SourceViewer/helpers/__tests__/__snapshots__/loadIssues-test.ts.snap b/server/sonar-web/src/main/js/components/SourceViewer/helpers/__tests__/__snapshots__/loadIssues-test.ts.snap
index 08768bed950..179bdb11d7f 100644
--- a/server/sonar-web/src/main/js/components/SourceViewer/helpers/__tests__/__snapshots__/loadIssues-test.ts.snap
+++ b/server/sonar-web/src/main/js/components/SourceViewer/helpers/__tests__/__snapshots__/loadIssues-test.ts.snap
@@ -1,9 +1,9 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`loadIssues should load issues 1`] = `
-Array [
- Object {
- "actions": Array [
+[
+ {
+ "actions": [
"set_tags",
"comment",
"assign",
@@ -14,7 +14,7 @@ Array [
"assigneeLogin": "luke",
"assigneeName": "Luke",
"author": "luke@sonarsource.com",
- "comments": Array [],
+ "comments": [],
"component": "foo.java",
"componentEnabled": true,
"componentKey": "foo.java",
@@ -23,8 +23,8 @@ Array [
"componentPath": "/foo.java",
"componentQualifier": "FIL",
"creationDate": "2016-08-15T15:25:38+0200",
- "flows": Array [],
- "flowsWithType": Array [],
+ "flows": [],
+ "flowsWithType": [],
"hash": "78417dcee7ba927b7e7c9161e29e02b8",
"key": "AWaqVGl3tut9VbnJvk6M",
"line": 62,
@@ -41,21 +41,21 @@ Array [
"ruleLangName": "Java",
"ruleName": "Handling files is security-sensitive",
"ruleStatus": "READY",
- "secondaryLocations": Array [],
+ "secondaryLocations": [],
"status": "OPEN",
- "tags": Array [
+ "tags": [
"cert",
"cwe",
"owasp-a1",
"owasp-a3",
],
- "textRange": Object {
+ "textRange": {
"endLine": 62,
"endOffset": 96,
"startLine": 62,
"startOffset": 93,
},
- "transitions": Array [],
+ "transitions": [],
"type": "SECURITY_HOTSPOT",
"updateDate": "2018-10-25T10:23:08+0200",
},
diff --git a/server/sonar-web/src/main/js/components/a11y/__tests__/__snapshots__/A11ySkipLinks-test.tsx.snap b/server/sonar-web/src/main/js/components/a11y/__tests__/__snapshots__/A11ySkipLinks-test.tsx.snap
index a8a148a13c6..2918cc6adf2 100644
--- a/server/sonar-web/src/main/js/components/a11y/__tests__/__snapshots__/A11ySkipLinks-test.tsx.snap
+++ b/server/sonar-web/src/main/js/components/a11y/__tests__/__snapshots__/A11ySkipLinks-test.tsx.snap
@@ -1,7 +1,7 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`should render correctly 1`] = `
-Array [
+[
<a
className="a11y-skip-link"
href="#a11y_target__link1"
diff --git a/server/sonar-web/src/main/js/components/a11y/__tests__/__snapshots__/A11ySkipTarget-test.tsx.snap b/server/sonar-web/src/main/js/components/a11y/__tests__/__snapshots__/A11ySkipTarget-test.tsx.snap
index 8fa473020e6..5b6fbdc757b 100644
--- a/server/sonar-web/src/main/js/components/a11y/__tests__/__snapshots__/A11ySkipTarget-test.tsx.snap
+++ b/server/sonar-web/src/main/js/components/a11y/__tests__/__snapshots__/A11ySkipTarget-test.tsx.snap
@@ -4,17 +4,17 @@ exports[`should render correctly, and (un)register the link when (un)mounted 1`]
<A11ySkipTargetInner
addA11ySkipLink={
[MockFunction] {
- "calls": Array [
- Array [
- Object {
+ "calls": [
+ [
+ {
"key": "main",
"label": "Skip to content",
"weight": undefined,
},
],
],
- "results": Array [
- Object {
+ "results": [
+ {
"type": "return",
"value": undefined,
},
diff --git a/server/sonar-web/src/main/js/components/activity-graph/__tests__/__snapshots__/utils-test.ts.snap b/server/sonar-web/src/main/js/components/activity-graph/__tests__/__snapshots__/utils-test.ts.snap
index 13e84bb9557..dbd75cd496b 100644
--- a/server/sonar-web/src/main/js/components/activity-graph/__tests__/__snapshots__/utils-test.ts.snap
+++ b/server/sonar-web/src/main/js/components/activity-graph/__tests__/__snapshots__/utils-test.ts.snap
@@ -1,8 +1,8 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`generateCoveredLinesMetric should correctly generate covered lines metric: empty data 1`] = `
-Object {
- "data": Array [],
+{
+ "data": [],
"name": "covered_lines",
"translatedName": "project_activity.custom_metric.covered_lines",
"type": "INT",
@@ -10,13 +10,13 @@ Object {
`;
exports[`generateCoveredLinesMetric should correctly generate covered lines metric: with data 1`] = `
-Object {
- "data": Array [
- Object {
+{
+ "data": [
+ {
"x": 2017-04-27T08:21:32.000Z,
"y": 88,
},
- Object {
+ {
"x": 2017-04-30T23:06:24.000Z,
"y": 50,
},
@@ -28,14 +28,14 @@ Object {
`;
exports[`generateSeries should correctly generate the series 1`] = `
-Array [
- Object {
- "data": Array [
- Object {
+[
+ {
+ "data": [
+ {
"x": 2017-04-27T08:21:32.000Z,
"y": 88,
},
- Object {
+ {
"x": 2017-04-30T23:06:24.000Z,
"y": 50,
},
@@ -44,13 +44,13 @@ Array [
"translatedName": "project_activity.custom_metric.covered_lines",
"type": "INT",
},
- Object {
- "data": Array [
- Object {
+ {
+ "data": [
+ {
"x": 2017-04-27T08:21:32.000Z,
"y": 100,
},
- Object {
+ {
"x": 2017-04-30T23:06:24.000Z,
"y": 100,
},
@@ -63,7 +63,7 @@ Array [
`;
exports[`getGraphTypes should correctly return the graph types 1`] = `
-Array [
+[
"issues",
"coverage",
"duplications",
@@ -72,7 +72,7 @@ Array [
`;
exports[`getGraphTypes should correctly return the graph types 2`] = `
-Array [
+[
"issues",
"coverage",
"duplications",
diff --git a/server/sonar-web/src/main/js/components/charts/__tests__/__snapshots__/BubbleChart-test.tsx.snap b/server/sonar-web/src/main/js/components/charts/__tests__/__snapshots__/BubbleChart-test.tsx.snap
index 649866524c4..d59030a480e 100644
--- a/server/sonar-web/src/main/js/components/charts/__tests__/__snapshots__/BubbleChart-test.tsx.snap
+++ b/server/sonar-web/src/main/js/components/charts/__tests__/__snapshots__/BubbleChart-test.tsx.snap
@@ -10,7 +10,7 @@ exports[`should display bubbles 1`] = `
className="bubble-chart-bubble"
r={45}
style={
- Object {
+ {
"fill": "blue",
"stroke": "blue",
}
@@ -31,7 +31,7 @@ exports[`should display bubbles 2`] = `
className="bubble-chart-bubble"
r={33.57142857142858}
style={
- Object {
+ {
"fill": "red",
"stroke": "red",
}
@@ -52,7 +52,7 @@ exports[`should render bubble links 1`] = `
className="bubble-chart-bubble"
r={45}
style={
- Object {
+ {
"fill": "blue",
"stroke": "blue",
}
@@ -73,7 +73,7 @@ exports[`should render bubble links 2`] = `
className="bubble-chart-bubble"
r={33.57142857142858}
style={
- Object {
+ {
"fill": "green",
"stroke": "green",
}
@@ -94,7 +94,7 @@ exports[`should render bubbles with click handlers 1`] = `
className="bubble-chart-bubble"
r={45}
style={
- Object {
+ {
"fill": "blue",
"stroke": "blue",
}
@@ -115,7 +115,7 @@ exports[`should render bubbles with click handlers 2`] = `
className="bubble-chart-bubble"
r={33.57142857142858}
style={
- Object {
+ {
"fill": "red",
"stroke": "red",
}
diff --git a/server/sonar-web/src/main/js/components/charts/__tests__/__snapshots__/ColorGradientLegend-test.tsx.snap b/server/sonar-web/src/main/js/components/charts/__tests__/__snapshots__/ColorGradientLegend-test.tsx.snap
index 98ca58c599b..f57804837fd 100644
--- a/server/sonar-web/src/main/js/components/charts/__tests__/__snapshots__/ColorGradientLegend-test.tsx.snap
+++ b/server/sonar-web/src/main/js/components/charts/__tests__/__snapshots__/ColorGradientLegend-test.tsx.snap
@@ -45,7 +45,7 @@ exports[`should render properly 1`] = `
>
<line
style={
- Object {
+ {
"stroke": "#b4b4b4",
"strokeWidth": 4,
}
@@ -57,7 +57,7 @@ exports[`should render properly 1`] = `
/>
<line
style={
- Object {
+ {
"stroke": "#888",
"strokeWidth": 4,
}
@@ -69,7 +69,7 @@ exports[`should render properly 1`] = `
/>
<line
style={
- Object {
+ {
"stroke": "#b4b4b4",
"strokeWidth": 4,
}
@@ -81,7 +81,7 @@ exports[`should render properly 1`] = `
/>
<line
style={
- Object {
+ {
"stroke": "#888",
"strokeWidth": 4,
}
@@ -93,7 +93,7 @@ exports[`should render properly 1`] = `
/>
<line
style={
- Object {
+ {
"stroke": "#b4b4b4",
"strokeWidth": 4,
}
@@ -105,7 +105,7 @@ exports[`should render properly 1`] = `
/>
<line
style={
- Object {
+ {
"stroke": "#888",
"strokeWidth": 4,
}
@@ -117,7 +117,7 @@ exports[`should render properly 1`] = `
/>
<line
style={
- Object {
+ {
"stroke": "#b4b4b4",
"strokeWidth": 4,
}
@@ -129,7 +129,7 @@ exports[`should render properly 1`] = `
/>
<line
style={
- Object {
+ {
"stroke": "#888",
"strokeWidth": 4,
}
diff --git a/server/sonar-web/src/main/js/components/charts/__tests__/__snapshots__/DonutChart-test.tsx.snap b/server/sonar-web/src/main/js/components/charts/__tests__/__snapshots__/DonutChart-test.tsx.snap
index f4da702a0d2..bcf8ff71c07 100644
--- a/server/sonar-web/src/main/js/components/charts/__tests__/__snapshots__/DonutChart-test.tsx.snap
+++ b/server/sonar-web/src/main/js/components/charts/__tests__/__snapshots__/DonutChart-test.tsx.snap
@@ -14,8 +14,8 @@ exports[`should render correctly 1`] = `
>
<Sector
data={
- Object {
- "data": Object {
+ {
+ "data": {
"fill": "#000000",
"value": 25,
},
@@ -33,8 +33,8 @@ exports[`should render correctly 1`] = `
/>
<Sector
data={
- Object {
- "data": Object {
+ {
+ "data": {
"fill": "#ffffff",
"value": 75,
},
@@ -59,7 +59,7 @@ exports[`should render correctly 2`] = `
<path
d="M6.123233995736766e-16,-10A10,10,0,0,1,10,2.220446049250313e-15L8,1.7763568394002505e-15A8,8,0,0,0,4.898587196589413e-16,-8Z"
style={
- Object {
+ {
"fill": "#000000",
}
}
@@ -80,8 +80,8 @@ exports[`should render correctly with padding and pad angle too 1`] = `
>
<Sector
data={
- Object {
- "data": Object {
+ {
+ "data": {
"fill": "#000000",
"value": 25,
},
@@ -99,8 +99,8 @@ exports[`should render correctly with padding and pad angle too 1`] = `
/>
<Sector
data={
- Object {
- "data": Object {
+ {
+ "data": {
"fill": "#ffffff",
"value": 75,
},
diff --git a/server/sonar-web/src/main/js/components/charts/__tests__/__snapshots__/LanguageDistribution-test.tsx.snap b/server/sonar-web/src/main/js/components/charts/__tests__/__snapshots__/LanguageDistribution-test.tsx.snap
index 68534caaace..5f729e9ef4b 100644
--- a/server/sonar-web/src/main/js/components/charts/__tests__/__snapshots__/LanguageDistribution-test.tsx.snap
+++ b/server/sonar-web/src/main/js/components/charts/__tests__/__snapshots__/LanguageDistribution-test.tsx.snap
@@ -3,7 +3,7 @@
exports[`renders 1`] = `
<Histogram
bars={
- Array [
+ [
1734,
845,
73,
@@ -12,7 +12,7 @@ exports[`renders 1`] = `
}
height={100}
padding={
- Array [
+ [
0,
60,
0,
@@ -21,7 +21,7 @@ exports[`renders 1`] = `
}
width={260}
yTicks={
- Array [
+ [
"Java",
"JavaScript",
"cpp",
@@ -29,7 +29,7 @@ exports[`renders 1`] = `
]
}
yTooltips={
- Array [
+ [
"1,734",
"",
"",
@@ -37,7 +37,7 @@ exports[`renders 1`] = `
]
}
yValues={
- Array [
+ [
"1.7short_number_suffix.k",
"845",
"73",
diff --git a/server/sonar-web/src/main/js/components/common/__tests__/__snapshots__/ActivityLink-test.tsx.snap b/server/sonar-web/src/main/js/components/common/__tests__/__snapshots__/ActivityLink-test.tsx.snap
index be6e137c027..2197632f0f0 100644
--- a/server/sonar-web/src/main/js/components/common/__tests__/__snapshots__/ActivityLink-test.tsx.snap
+++ b/server/sonar-web/src/main/js/components/common/__tests__/__snapshots__/ActivityLink-test.tsx.snap
@@ -4,7 +4,7 @@ exports[`renders correctly 1`] = `
<ForwardRef(Link)
className="activity-link"
to={
- Object {
+ {
"pathname": "/project/activity",
"search": "?id=foo",
}
@@ -24,7 +24,7 @@ exports[`renders correctly 2`] = `
<ForwardRef(Link)
className="activity-link"
to={
- Object {
+ {
"pathname": "/project/activity",
"search": "?id=foo&branch=branch-6.7",
}
@@ -44,7 +44,7 @@ exports[`renders correctly 3`] = `
<ForwardRef(Link)
className="activity-link"
to={
- Object {
+ {
"pathname": "/project/activity",
"search": "?id=foo&graph=coverage",
}
@@ -64,7 +64,7 @@ exports[`renders correctly 4`] = `
<ForwardRef(Link)
className="activity-link"
to={
- Object {
+ {
"pathname": "/project/activity",
"search": "?id=foo&graph=custom&custom_metrics=new_bugs%2Cbugs",
}
diff --git a/server/sonar-web/src/main/js/components/common/__tests__/__snapshots__/AnalysisWarningsModal-test.tsx.snap b/server/sonar-web/src/main/js/components/common/__tests__/__snapshots__/AnalysisWarningsModal-test.tsx.snap
index 7b9218712f4..2f0e5304c2f 100644
--- a/server/sonar-web/src/main/js/components/common/__tests__/__snapshots__/AnalysisWarningsModal-test.tsx.snap
+++ b/server/sonar-web/src/main/js/components/common/__tests__/__snapshots__/AnalysisWarningsModal-test.tsx.snap
@@ -30,7 +30,7 @@ exports[`should fetch task warnings if it has to 1`] = `
>
<span
dangerouslySetInnerHTML={
- Object {
+ {
"__html": "message foo",
}
}
@@ -49,7 +49,7 @@ exports[`should fetch task warnings if it has to 1`] = `
>
<span
dangerouslySetInnerHTML={
- Object {
+ {
"__html": "message-bar",
}
}
@@ -70,7 +70,7 @@ secondline
>
<span
dangerouslySetInnerHTML={
- Object {
+ {
"__html": "multiline message<br>secondline<br> third line",
}
}
@@ -122,7 +122,7 @@ exports[`should render correctly: default 1`] = `
>
<span
dangerouslySetInnerHTML={
- Object {
+ {
"__html": "warning 1",
}
}
@@ -141,7 +141,7 @@ exports[`should render correctly: default 1`] = `
>
<span
dangerouslySetInnerHTML={
- Object {
+ {
"__html": "warning 2",
}
}
@@ -193,7 +193,7 @@ exports[`should render correctly: do not show dismissable links for anonymous 1`
>
<span
dangerouslySetInnerHTML={
- Object {
+ {
"__html": "Lorem ipsum",
}
}
@@ -245,7 +245,7 @@ exports[`should render correctly: with dismissable warnings 1`] = `
>
<span
dangerouslySetInnerHTML={
- Object {
+ {
"__html": "Lorem ipsum",
}
}
diff --git a/server/sonar-web/src/main/js/components/common/__tests__/__snapshots__/CodeSnippet-test.tsx.snap b/server/sonar-web/src/main/js/components/common/__tests__/__snapshots__/CodeSnippet-test.tsx.snap
index f0a986e706d..86f625595c1 100644
--- a/server/sonar-web/src/main/js/components/common/__tests__/__snapshots__/CodeSnippet-test.tsx.snap
+++ b/server/sonar-web/src/main/js/components/common/__tests__/__snapshots__/CodeSnippet-test.tsx.snap
@@ -12,7 +12,7 @@ exports[`renders correctly: array snippet 1`] = `
bar
</pre>
<ClipboardButton
- copyValue="foo \\\\
+ copyValue="foo \\
bar"
/>
</div>
diff --git a/server/sonar-web/src/main/js/components/common/__tests__/__snapshots__/MeasuresLink-test.tsx.snap b/server/sonar-web/src/main/js/components/common/__tests__/__snapshots__/MeasuresLink-test.tsx.snap
index bf85f7d6c3f..80ac25cbe87 100644
--- a/server/sonar-web/src/main/js/components/common/__tests__/__snapshots__/MeasuresLink-test.tsx.snap
+++ b/server/sonar-web/src/main/js/components/common/__tests__/__snapshots__/MeasuresLink-test.tsx.snap
@@ -4,7 +4,7 @@ exports[`renders 1`] = `
<ForwardRef(Link)
className="measures-link"
to={
- Object {
+ {
"pathname": "/component_measures",
"search": "?id=foo&metric=security_rating",
}
@@ -24,7 +24,7 @@ exports[`renders 2`] = `
<ForwardRef(Link)
className="measures-link"
to={
- Object {
+ {
"pathname": "/component_measures",
"search": "?id=foo&metric=security_rating",
}
@@ -44,7 +44,7 @@ exports[`renders 3`] = `
<ForwardRef(Link)
className="measures-link"
to={
- Object {
+ {
"pathname": "/component_measures",
"search": "?id=foo&metric=security_rating",
}
diff --git a/server/sonar-web/src/main/js/components/common/__tests__/__snapshots__/VisibilitySelector-test.tsx.snap b/server/sonar-web/src/main/js/components/common/__tests__/__snapshots__/VisibilitySelector-test.tsx.snap
index 4ee16f1a218..d8b5509acbd 100644
--- a/server/sonar-web/src/main/js/components/common/__tests__/__snapshots__/VisibilitySelector-test.tsx.snap
+++ b/server/sonar-web/src/main/js/components/common/__tests__/__snapshots__/VisibilitySelector-test.tsx.snap
@@ -42,13 +42,13 @@ exports[`changes visibility 2`] = `
key="public"
onCheck={
[MockFunction] {
- "calls": Array [
- Array [
+ "calls": [
+ [
"private",
],
],
- "results": Array [
- Object {
+ "results": [
+ {
"type": "return",
"value": undefined,
},
@@ -68,13 +68,13 @@ exports[`changes visibility 2`] = `
key="private"
onCheck={
[MockFunction] {
- "calls": Array [
- Array [
+ "calls": [
+ [
"private",
],
],
- "results": Array [
- Object {
+ "results": [
+ {
"type": "return",
"value": undefined,
},
diff --git a/server/sonar-web/src/main/js/components/controls/__tests__/__snapshots__/BoxedTabs-test.tsx.snap b/server/sonar-web/src/main/js/components/controls/__tests__/__snapshots__/BoxedTabs-test.tsx.snap
index 9d8767780a2..c0396689423 100644
--- a/server/sonar-web/src/main/js/components/controls/__tests__/__snapshots__/BoxedTabs-test.tsx.snap
+++ b/server/sonar-web/src/main/js/components/controls/__tests__/__snapshots__/BoxedTabs-test.tsx.snap
@@ -77,16 +77,16 @@ exports[`should render correctly 1`] = `
onSelect={[MockFunction]}
selected="a"
tabs={
- Array [
- Object {
+ [
+ {
"key": "a",
"label": "labela",
},
- Object {
+ {
"key": "b",
"label": "labelb",
},
- Object {
+ {
"key": "c",
"label": <span>
Complex label
@@ -104,9 +104,9 @@ exports[`should render correctly 1`] = `
>
<Insertion
cache={
- Object {
+ {
"insert": [Function],
- "inserted": Object {
+ "inserted": {
"1kg7pv0": true,
"60rv5s": true,
"ko9asm": true,
@@ -115,7 +115,7 @@ exports[`should render correctly 1`] = `
},
"key": "css",
"nonce": undefined,
- "registered": Object {},
+ "registered": {},
"sheet": StyleSheet {
"_alreadyInsertedOrderInsensitiveRule": true,
"_insertTag": [Function],
@@ -184,7 +184,7 @@ exports[`should render correctly 1`] = `
"key": "css",
"nonce": undefined,
"prepend": undefined,
- "tags": Array [
+ "tags": [
<style
data-emotion="css"
data-s=""
@@ -247,7 +247,7 @@ exports[`should render correctly 1`] = `
}
isStringTag={true}
serialized={
- Object {
+ {
"map": undefined,
"name": "o2j9ze",
"next": undefined,
@@ -274,9 +274,9 @@ exports[`should render correctly 1`] = `
>
<Insertion
cache={
- Object {
+ {
"insert": [Function],
- "inserted": Object {
+ "inserted": {
"1kg7pv0": true,
"60rv5s": true,
"ko9asm": true,
@@ -285,7 +285,7 @@ exports[`should render correctly 1`] = `
},
"key": "css",
"nonce": undefined,
- "registered": Object {},
+ "registered": {},
"sheet": StyleSheet {
"_alreadyInsertedOrderInsensitiveRule": true,
"_insertTag": [Function],
@@ -354,7 +354,7 @@ exports[`should render correctly 1`] = `
"key": "css",
"nonce": undefined,
"prepend": undefined,
- "tags": Array [
+ "tags": [
<style
data-emotion="css"
data-s=""
@@ -417,7 +417,7 @@ exports[`should render correctly 1`] = `
}
isStringTag={true}
serialized={
- Object {
+ {
"map": undefined,
"name": "60rv5s",
"next": undefined,
@@ -458,9 +458,9 @@ exports[`should render correctly 1`] = `
>
<Insertion
cache={
- Object {
+ {
"insert": [Function],
- "inserted": Object {
+ "inserted": {
"1kg7pv0": true,
"60rv5s": true,
"ko9asm": true,
@@ -469,7 +469,7 @@ exports[`should render correctly 1`] = `
},
"key": "css",
"nonce": undefined,
- "registered": Object {},
+ "registered": {},
"sheet": StyleSheet {
"_alreadyInsertedOrderInsensitiveRule": true,
"_insertTag": [Function],
@@ -538,7 +538,7 @@ exports[`should render correctly 1`] = `
"key": "css",
"nonce": undefined,
"prepend": undefined,
- "tags": Array [
+ "tags": [
<style
data-emotion="css"
data-s=""
@@ -601,7 +601,7 @@ exports[`should render correctly 1`] = `
}
isStringTag={true}
serialized={
- Object {
+ {
"map": undefined,
"name": "ko9asm",
"next": undefined,
@@ -636,9 +636,9 @@ exports[`should render correctly 1`] = `
>
<Insertion
cache={
- Object {
+ {
"insert": [Function],
- "inserted": Object {
+ "inserted": {
"1kg7pv0": true,
"60rv5s": true,
"ko9asm": true,
@@ -647,7 +647,7 @@ exports[`should render correctly 1`] = `
},
"key": "css",
"nonce": undefined,
- "registered": Object {},
+ "registered": {},
"sheet": StyleSheet {
"_alreadyInsertedOrderInsensitiveRule": true,
"_insertTag": [Function],
@@ -716,7 +716,7 @@ exports[`should render correctly 1`] = `
"key": "css",
"nonce": undefined,
"prepend": undefined,
- "tags": Array [
+ "tags": [
<style
data-emotion="css"
data-s=""
@@ -779,7 +779,7 @@ exports[`should render correctly 1`] = `
}
isStringTag={true}
serialized={
- Object {
+ {
"map": undefined,
"name": "1kg7pv0",
"next": undefined,
@@ -824,9 +824,9 @@ exports[`should render correctly 1`] = `
>
<Insertion
cache={
- Object {
+ {
"insert": [Function],
- "inserted": Object {
+ "inserted": {
"1kg7pv0": true,
"60rv5s": true,
"ko9asm": true,
@@ -835,7 +835,7 @@ exports[`should render correctly 1`] = `
},
"key": "css",
"nonce": undefined,
- "registered": Object {},
+ "registered": {},
"sheet": StyleSheet {
"_alreadyInsertedOrderInsensitiveRule": true,
"_insertTag": [Function],
@@ -904,7 +904,7 @@ exports[`should render correctly 1`] = `
"key": "css",
"nonce": undefined,
"prepend": undefined,
- "tags": Array [
+ "tags": [
<style
data-emotion="css"
data-s=""
@@ -967,7 +967,7 @@ exports[`should render correctly 1`] = `
}
isStringTag={true}
serialized={
- Object {
+ {
"map": undefined,
"name": "v2seq5",
"next": undefined,
@@ -1002,9 +1002,9 @@ exports[`should render correctly 1`] = `
>
<Insertion
cache={
- Object {
+ {
"insert": [Function],
- "inserted": Object {
+ "inserted": {
"1kg7pv0": true,
"60rv5s": true,
"ko9asm": true,
@@ -1013,7 +1013,7 @@ exports[`should render correctly 1`] = `
},
"key": "css",
"nonce": undefined,
- "registered": Object {},
+ "registered": {},
"sheet": StyleSheet {
"_alreadyInsertedOrderInsensitiveRule": true,
"_insertTag": [Function],
@@ -1082,7 +1082,7 @@ exports[`should render correctly 1`] = `
"key": "css",
"nonce": undefined,
"prepend": undefined,
- "tags": Array [
+ "tags": [
<style
data-emotion="css"
data-s=""
@@ -1145,7 +1145,7 @@ exports[`should render correctly 1`] = `
}
isStringTag={true}
serialized={
- Object {
+ {
"map": undefined,
"name": "1kg7pv0",
"next": undefined,
@@ -1190,9 +1190,9 @@ exports[`should render correctly 1`] = `
>
<Insertion
cache={
- Object {
+ {
"insert": [Function],
- "inserted": Object {
+ "inserted": {
"1kg7pv0": true,
"60rv5s": true,
"ko9asm": true,
@@ -1201,7 +1201,7 @@ exports[`should render correctly 1`] = `
},
"key": "css",
"nonce": undefined,
- "registered": Object {},
+ "registered": {},
"sheet": StyleSheet {
"_alreadyInsertedOrderInsensitiveRule": true,
"_insertTag": [Function],
@@ -1270,7 +1270,7 @@ exports[`should render correctly 1`] = `
"key": "css",
"nonce": undefined,
"prepend": undefined,
- "tags": Array [
+ "tags": [
<style
data-emotion="css"
data-s=""
@@ -1333,7 +1333,7 @@ exports[`should render correctly 1`] = `
}
isStringTag={true}
serialized={
- Object {
+ {
"map": undefined,
"name": "v2seq5",
"next": undefined,
diff --git a/server/sonar-web/src/main/js/components/controls/__tests__/__snapshots__/DateInput-test.tsx.snap b/server/sonar-web/src/main/js/components/controls/__tests__/__snapshots__/DateInput-test.tsx.snap
index d9c9cd7fb56..6266fadbf33 100644
--- a/server/sonar-web/src/main/js/components/controls/__tests__/__snapshots__/DateInput-test.tsx.snap
+++ b/server/sonar-web/src/main/js/components/controls/__tests__/__snapshots__/DateInput-test.tsx.snap
@@ -61,7 +61,7 @@ exports[`should render 2`] = `
aria-label="reset_verb"
className="button-tiny date-input-control-reset"
iconProps={
- Object {
+ {
"size": 12,
}
}
@@ -103,7 +103,7 @@ exports[`should render 3`] = `
aria-label="reset_verb"
className="button-tiny date-input-control-reset"
iconProps={
- Object {
+ {
"size": 12,
}
}
@@ -129,59 +129,59 @@ exports[`should render 3`] = `
className="date-input-calender-month-select"
onChange={[Function]}
options={
- Array [
- Object {
+ [
+ {
"label": "Jan",
"value": 0,
},
- Object {
+ {
"label": "Feb",
"value": 1,
},
- Object {
+ {
"label": "Mar",
"value": 2,
},
- Object {
+ {
"label": "Apr",
"value": 3,
},
- Object {
+ {
"label": "May",
"value": 4,
},
- Object {
+ {
"label": "Jun",
"value": 5,
},
- Object {
+ {
"label": "Jul",
"value": 6,
},
- Object {
+ {
"label": "Aug",
"value": 7,
},
- Object {
+ {
"label": "Sep",
"value": 8,
},
- Object {
+ {
"label": "Oct",
"value": 9,
},
- Object {
+ {
"label": "Nov",
"value": 10,
},
- Object {
+ {
"label": "Dec",
"value": 11,
},
]
}
value={
- Object {
+ {
"label": "Jan",
"value": 0,
}
@@ -192,55 +192,55 @@ exports[`should render 3`] = `
className="date-input-calender-month-select spacer-left"
onChange={[Function]}
options={
- Array [
- Object {
+ [
+ {
"label": "2008",
"value": 2008,
},
- Object {
+ {
"label": "2009",
"value": 2009,
},
- Object {
+ {
"label": "2010",
"value": 2010,
},
- Object {
+ {
"label": "2011",
"value": 2011,
},
- Object {
+ {
"label": "2012",
"value": 2012,
},
- Object {
+ {
"label": "2013",
"value": 2013,
},
- Object {
+ {
"label": "2014",
"value": 2014,
},
- Object {
+ {
"label": "2015",
"value": 2015,
},
- Object {
+ {
"label": "2016",
"value": 2016,
},
- Object {
+ {
"label": "2017",
"value": 2017,
},
- Object {
+ {
"label": "2018",
"value": 2018,
},
]
}
value={
- Object {
+ {
"label": "2018",
"value": 2018,
}
@@ -258,7 +258,7 @@ exports[`should render 3`] = `
canChangeMonth={true}
captionElement={<NullComponent />}
classNames={
- Object {
+ {
"body": "DayPicker-Body",
"caption": "DayPicker-Caption",
"container": "DayPicker",
@@ -285,7 +285,7 @@ exports[`should render 3`] = `
}
}
disabledDays={
- Object {
+ {
"after": 2018-02-05T00:00:00.000Z,
"before": 2018-01-17T00:00:00.000Z,
}
@@ -294,15 +294,15 @@ exports[`should render 3`] = `
firstDayOfWeek={1}
fixedWeeks={false}
labels={
- Object {
+ {
"nextMonth": "Next Month",
"previousMonth": "Previous Month",
}
}
locale="en"
localeUtils={
- Object {
- "default": Object {
+ {
+ "default": {
"formatDay": [Function],
"formatMonthTitle": [Function],
"formatWeekdayLong": [Function],
@@ -328,7 +328,7 @@ exports[`should render 3`] = `
renderWeek={[Function]}
reverseMonths={false}
selectedDays={
- Array [
+ [
2018-01-17T00:00:00.000Z,
]
}
@@ -338,7 +338,7 @@ exports[`should render 3`] = `
tabIndex={0}
weekdayElement={<Weekday />}
weekdaysLong={
- Array [
+ [
"Sunday",
"Monday",
"Tuesday",
@@ -349,7 +349,7 @@ exports[`should render 3`] = `
]
}
weekdaysShort={
- Array [
+ [
"Sun",
"Mon",
"Tue",
diff --git a/server/sonar-web/src/main/js/components/controls/__tests__/__snapshots__/IdentityProviderLink-test.tsx.snap b/server/sonar-web/src/main/js/components/controls/__tests__/__snapshots__/IdentityProviderLink-test.tsx.snap
index d3a38a52376..c6a28b370f1 100644
--- a/server/sonar-web/src/main/js/components/controls/__tests__/__snapshots__/IdentityProviderLink-test.tsx.snap
+++ b/server/sonar-web/src/main/js/components/controls/__tests__/__snapshots__/IdentityProviderLink-test.tsx.snap
@@ -5,7 +5,7 @@ exports[`should render correctly 1`] = `
className="identity-provider-link"
href="/url/foo/bar"
style={
- Object {
+ {
"backgroundColor": "#000",
}
}
diff --git a/server/sonar-web/src/main/js/components/controls/__tests__/__snapshots__/RadioCard-test.tsx.snap b/server/sonar-web/src/main/js/components/controls/__tests__/__snapshots__/RadioCard-test.tsx.snap
index 26a5307243d..22d51f638d6 100644
--- a/server/sonar-web/src/main/js/components/controls/__tests__/__snapshots__/RadioCard-test.tsx.snap
+++ b/server/sonar-web/src/main/js/components/controls/__tests__/__snapshots__/RadioCard-test.tsx.snap
@@ -35,23 +35,23 @@ exports[`should be actionable 2`] = `
className="radio-card radio-card-actionable selected"
onClick={
[MockFunction] {
- "calls": Array [
- Array [
- Object {
- "currentTarget": Object {
+ "calls": [
+ [
+ {
+ "currentTarget": {
"blur": [Function],
},
"preventDefault": [Function],
"stopImmediatePropagation": [Function],
"stopPropagation": [Function],
- "target": Object {
+ "target": {
"blur": [Function],
},
},
],
],
- "results": Array [
- Object {
+ "results": [
+ {
"type": "return",
"value": undefined,
},
@@ -117,7 +117,7 @@ exports[`should render correctly 1`] = `
defaultMessage="Recommended for you"
id="Recommended for you"
values={
- Object {
+ {
"recommended": <strong>
recommended
</strong>,
@@ -161,7 +161,7 @@ exports[`should render correctly 2`] = `
defaultMessage="Recommended for you"
id="Recommended for you"
values={
- Object {
+ {
"recommended": <strong>
recommended
</strong>,
diff --git a/server/sonar-web/src/main/js/components/controls/__tests__/__snapshots__/SearchBox-test.tsx.snap b/server/sonar-web/src/main/js/components/controls/__tests__/__snapshots__/SearchBox-test.tsx.snap
index 4ed69eb6a29..c600dd5b2c4 100644
--- a/server/sonar-web/src/main/js/components/controls/__tests__/__snapshots__/SearchBox-test.tsx.snap
+++ b/server/sonar-web/src/main/js/components/controls/__tests__/__snapshots__/SearchBox-test.tsx.snap
@@ -27,7 +27,7 @@ exports[`renders 1`] = `
aria-label="clear"
className="button-tiny search-box-clear"
iconProps={
- Object {
+ {
"size": 12,
}
}
diff --git a/server/sonar-web/src/main/js/components/controls/__tests__/__snapshots__/Select-test.tsx.snap b/server/sonar-web/src/main/js/components/controls/__tests__/__snapshots__/Select-test.tsx.snap
index 5ae4b935b00..03af858a909 100644
--- a/server/sonar-web/src/main/js/components/controls/__tests__/__snapshots__/Select-test.tsx.snap
+++ b/server/sonar-web/src/main/js/components/controls/__tests__/__snapshots__/Select-test.tsx.snap
@@ -4,7 +4,7 @@ exports[`Select should render clearIndicator correctly 1`] = `
<ClearButton
className="button-tiny spacer-left spacer-right text-middle"
iconProps={
- Object {
+ {
"size": 12,
}
}
@@ -16,7 +16,7 @@ exports[`Select should render complex select component: other props 1`] = `
className="react-select"
classNamePrefix="react-select"
components={
- Object {
+ {
"ClearIndicator": [Function],
"DropdownIndicator": [Function],
"Input": [Function],
@@ -29,7 +29,7 @@ exports[`Select should render complex select component: other props 1`] = `
isClearable={true}
isLoading={true}
styles={
- Object {
+ {
"container": [Function],
"control": [Function],
"indicatorsContainer": [Function],
@@ -55,7 +55,7 @@ exports[`Select should render correctly: default 1`] = `
className="react-select"
classNamePrefix="react-select"
components={
- Object {
+ {
"ClearIndicator": [Function],
"DropdownIndicator": [Function],
"MultiValueRemove": [Function],
@@ -65,7 +65,7 @@ exports[`Select should render correctly: default 1`] = `
defaultMenuIsOpen={false}
defaultValue={null}
styles={
- Object {
+ {
"container": [Function],
"control": [Function],
"indicatorsContainer": [Function],
@@ -105,7 +105,7 @@ exports[`should render CreatableSelect correctly 1`] = `
allowCreateWhileLoading={false}
cacheOptions={false}
components={
- Object {
+ {
"ClearIndicator": [Function],
"DropdownIndicator": [Function],
"LoadingIndicator": [Function],
@@ -127,9 +127,9 @@ exports[`should render CreatableSelect correctly 1`] = `
onInputChange={[Function]}
onMenuClose={[Function]}
onMenuOpen={[Function]}
- options={Array []}
+ options={[]}
styles={
- Object {
+ {
"container": [Function],
"control": [Function],
"indicatorsContainer": [Function],
@@ -163,7 +163,7 @@ exports[`should render SearchSelect correctly 1`] = `
closeMenuOnScroll={false}
closeMenuOnSelect={true}
components={
- Object {
+ {
"ClearIndicator": [Function],
"DropdownIndicator": [Function],
"LoadingIndicator": [Function],
@@ -199,12 +199,12 @@ exports[`should render SearchSelect correctly 1`] = `
onMenuOpen={[Function]}
openMenuOnClick={true}
openMenuOnFocus={false}
- options={Array []}
+ options={[]}
pageSize={5}
placeholder="Select..."
screenReaderStatus={[Function]}
styles={
- Object {
+ {
"container": [Function],
"control": [Function],
"indicatorsContainer": [Function],
diff --git a/server/sonar-web/src/main/js/components/controls/__tests__/__snapshots__/SelectList-test.tsx.snap b/server/sonar-web/src/main/js/components/controls/__tests__/__snapshots__/SelectList-test.tsx.snap
index a2480c6b049..3aad3eb20d3 100644
--- a/server/sonar-web/src/main/js/components/controls/__tests__/__snapshots__/SelectList-test.tsx.snap
+++ b/server/sonar-web/src/main/js/components/controls/__tests__/__snapshots__/SelectList-test.tsx.snap
@@ -14,16 +14,16 @@ exports[`should cancel filter selection when search is active 1`] = `
disabled={false}
onCheck={[Function]}
options={
- Array [
- Object {
+ [
+ {
"label": "selected",
"value": "selected",
},
- Object {
+ {
"label": "unselected",
"value": "deselected",
},
- Object {
+ {
"label": "all",
"value": "all",
},
@@ -42,12 +42,12 @@ exports[`should cancel filter selection when search is active 1`] = `
</div>
<SelectListListContainer
disabledElements={
- Array [
+ [
"bar",
]
}
elements={
- Array [
+ [
"foo",
"bar",
"baz",
@@ -58,7 +58,7 @@ exports[`should cancel filter selection when search is active 1`] = `
onUnselect={[MockFunction]}
renderElement={[Function]}
selectedElements={
- Array [
+ [
"foo",
]
}
@@ -80,16 +80,16 @@ exports[`should cancel filter selection when search is active 2`] = `
disabled={true}
onCheck={[Function]}
options={
- Array [
- Object {
+ [
+ {
"label": "selected",
"value": "selected",
},
- Object {
+ {
"label": "unselected",
"value": "deselected",
},
- Object {
+ {
"label": "all",
"value": "all",
},
@@ -108,12 +108,12 @@ exports[`should cancel filter selection when search is active 2`] = `
</div>
<SelectListListContainer
disabledElements={
- Array [
+ [
"bar",
]
}
elements={
- Array [
+ [
"foo",
"bar",
"baz",
@@ -124,7 +124,7 @@ exports[`should cancel filter selection when search is active 2`] = `
onUnselect={[MockFunction]}
renderElement={[Function]}
selectedElements={
- Array [
+ [
"foo",
]
}
@@ -146,16 +146,16 @@ exports[`should cancel filter selection when search is active 3`] = `
disabled={false}
onCheck={[Function]}
options={
- Array [
- Object {
+ [
+ {
"label": "selected",
"value": "selected",
},
- Object {
+ {
"label": "unselected",
"value": "deselected",
},
- Object {
+ {
"label": "all",
"value": "all",
},
@@ -174,12 +174,12 @@ exports[`should cancel filter selection when search is active 3`] = `
</div>
<SelectListListContainer
disabledElements={
- Array [
+ [
"bar",
]
}
elements={
- Array [
+ [
"foo",
"bar",
"baz",
@@ -190,7 +190,7 @@ exports[`should cancel filter selection when search is active 3`] = `
onUnselect={[MockFunction]}
renderElement={[Function]}
selectedElements={
- Array [
+ [
"foo",
]
}
@@ -212,16 +212,16 @@ exports[`should display a loader when searching 1`] = `
disabled={false}
onCheck={[Function]}
options={
- Array [
- Object {
+ [
+ {
"label": "selected",
"value": "selected",
},
- Object {
+ {
"label": "unselected",
"value": "deselected",
},
- Object {
+ {
"label": "all",
"value": "all",
},
@@ -240,12 +240,12 @@ exports[`should display a loader when searching 1`] = `
</div>
<SelectListListContainer
disabledElements={
- Array [
+ [
"bar",
]
}
elements={
- Array [
+ [
"foo",
"bar",
"baz",
@@ -256,7 +256,7 @@ exports[`should display a loader when searching 1`] = `
onUnselect={[MockFunction]}
renderElement={[Function]}
selectedElements={
- Array [
+ [
"foo",
]
}
@@ -278,16 +278,16 @@ exports[`should display pagination element properly and call search method with
disabled={false}
onCheck={[Function]}
options={
- Array [
- Object {
+ [
+ {
"label": "selected",
"value": "selected",
},
- Object {
+ {
"label": "unselected",
"value": "deselected",
},
- Object {
+ {
"label": "all",
"value": "all",
},
@@ -306,12 +306,12 @@ exports[`should display pagination element properly and call search method with
</div>
<SelectListListContainer
disabledElements={
- Array [
+ [
"bar",
]
}
elements={
- Array [
+ [
"foo",
"bar",
"baz",
@@ -322,7 +322,7 @@ exports[`should display pagination element properly and call search method with
onUnselect={[MockFunction]}
renderElement={[Function]}
selectedElements={
- Array [
+ [
"foo",
]
}
@@ -350,16 +350,16 @@ exports[`should display pagination element properly and call search method with
disabled={false}
onCheck={[Function]}
options={
- Array [
- Object {
+ [
+ {
"label": "selected",
"value": "selected",
},
- Object {
+ {
"label": "unselected",
"value": "deselected",
},
- Object {
+ {
"label": "all",
"value": "all",
},
@@ -378,12 +378,12 @@ exports[`should display pagination element properly and call search method with
</div>
<SelectListListContainer
disabledElements={
- Array [
+ [
"bar",
]
}
elements={
- Array [
+ [
"foo",
"bar",
"baz",
@@ -394,7 +394,7 @@ exports[`should display pagination element properly and call search method with
onUnselect={[MockFunction]}
renderElement={[Function]}
selectedElements={
- Array [
+ [
"foo",
]
}
@@ -423,16 +423,16 @@ exports[`should display properly with advanced features 1`] = `
disabled={false}
onCheck={[Function]}
options={
- Array [
- Object {
+ [
+ {
"label": "selected",
"value": "selected",
},
- Object {
+ {
"label": "unselected",
"value": "deselected",
},
- Object {
+ {
"label": "all",
"value": "all",
},
@@ -452,12 +452,12 @@ exports[`should display properly with advanced features 1`] = `
<SelectListListContainer
allowBulkSelection={true}
disabledElements={
- Array [
+ [
"bar",
]
}
elements={
- Array [
+ [
"foo",
"bar",
"baz",
@@ -469,7 +469,7 @@ exports[`should display properly with advanced features 1`] = `
readOnly={true}
renderElement={[Function]}
selectedElements={
- Array [
+ [
"foo",
]
}
@@ -497,16 +497,16 @@ exports[`should display properly with basics features 1`] = `
disabled={false}
onCheck={[Function]}
options={
- Array [
- Object {
+ [
+ {
"label": "selected",
"value": "selected",
},
- Object {
+ {
"label": "unselected",
"value": "deselected",
},
- Object {
+ {
"label": "all",
"value": "all",
},
@@ -525,12 +525,12 @@ exports[`should display properly with basics features 1`] = `
</div>
<SelectListListContainer
disabledElements={
- Array [
+ [
"bar",
]
}
elements={
- Array [
+ [
"foo",
"bar",
"baz",
@@ -541,7 +541,7 @@ exports[`should display properly with basics features 1`] = `
onUnselect={[MockFunction]}
renderElement={[Function]}
selectedElements={
- Array [
+ [
"foo",
]
}
diff --git a/server/sonar-web/src/main/js/components/controls/__tests__/__snapshots__/ValidationForm-test.tsx.snap b/server/sonar-web/src/main/js/components/controls/__tests__/__snapshots__/ValidationForm-test.tsx.snap
index 85b41dfefae..2958fbb81f8 100644
--- a/server/sonar-web/src/main/js/components/controls/__tests__/__snapshots__/ValidationForm-test.tsx.snap
+++ b/server/sonar-web/src/main/js/components/controls/__tests__/__snapshots__/ValidationForm-test.tsx.snap
@@ -3,7 +3,7 @@
exports[`should render and submit 1`] = `
<Formik
initialValues={
- Object {
+ {
"foo": "bar",
}
}
diff --git a/server/sonar-web/src/main/js/components/controls/__tests__/__snapshots__/ValidationModal-test.tsx.snap b/server/sonar-web/src/main/js/components/controls/__tests__/__snapshots__/ValidationModal-test.tsx.snap
index 7a0159c1ffd..bf6335287a5 100644
--- a/server/sonar-web/src/main/js/components/controls/__tests__/__snapshots__/ValidationModal-test.tsx.snap
+++ b/server/sonar-web/src/main/js/components/controls/__tests__/__snapshots__/ValidationModal-test.tsx.snap
@@ -7,7 +7,7 @@ exports[`should render correctly 1`] = `
>
<ValidationForm
initialValues={
- Object {
+ {
"field": "foo",
}
}
@@ -22,9 +22,9 @@ exports[`should render correctly 1`] = `
exports[`should render correctly 2`] = `
<ContextProvider
value={
- Object {
+ {
"dirty": false,
- "errors": Object {},
+ "errors": {},
"getFieldHelpers": [Function],
"getFieldMeta": [Function],
"getFieldProps": [Function],
@@ -32,10 +32,10 @@ exports[`should render correctly 2`] = `
"handleChange": [Function],
"handleReset": [Function],
"handleSubmit": [Function],
- "initialErrors": Object {},
+ "initialErrors": {},
"initialStatus": undefined,
- "initialTouched": Object {},
- "initialValues": Object {
+ "initialTouched": {},
+ "initialValues": {
"field": "foo",
},
"isSubmitting": false,
@@ -55,14 +55,14 @@ exports[`should render correctly 2`] = `
"status": undefined,
"submitCount": 0,
"submitForm": [Function],
- "touched": Object {},
+ "touched": {},
"unregisterField": [Function],
"validateField": [Function],
"validateForm": [Function],
"validateOnBlur": true,
"validateOnChange": true,
"validateOnMount": true,
- "values": Object {
+ "values": {
"field": "foo",
},
}
diff --git a/server/sonar-web/src/main/js/components/controls/__tests__/__snapshots__/buttons-test.tsx.snap b/server/sonar-web/src/main/js/components/controls/__tests__/__snapshots__/buttons-test.tsx.snap
index 8d915b89387..ba0ff5c2f59 100644
--- a/server/sonar-web/src/main/js/components/controls/__tests__/__snapshots__/buttons-test.tsx.snap
+++ b/server/sonar-web/src/main/js/components/controls/__tests__/__snapshots__/buttons-test.tsx.snap
@@ -20,7 +20,7 @@ exports[`ButtonIcon should render correctly 1`] = `
className="button-icon"
stopPropagation={true}
style={
- Object {
+ {
"color": "#236a97",
}
}
diff --git a/server/sonar-web/src/main/js/components/facet/__tests__/__snapshots__/ListStyleFacet-test.tsx.snap b/server/sonar-web/src/main/js/components/facet/__tests__/__snapshots__/ListStyleFacet-test.tsx.snap
index 63f62b3484f..d2d9cf30567 100644
--- a/server/sonar-web/src/main/js/components/facet/__tests__/__snapshots__/ListStyleFacet-test.tsx.snap
+++ b/server/sonar-web/src/main/js/components/facet/__tests__/__snapshots__/ListStyleFacet-test.tsx.snap
@@ -12,7 +12,7 @@ exports[`should be disabled 1`] = `
name="facet header"
onClear={[Function]}
open={false}
- values={Array []}
+ values={[]}
/>
</FacetBox>
`;
@@ -29,7 +29,7 @@ exports[`should display all selected items 1`] = `
onClick={[Function]}
open={true}
values={
- Array [
+ [
"a",
"b",
"c",
@@ -110,7 +110,7 @@ exports[`should render 1`] = `
onClear={[Function]}
onClick={[Function]}
open={true}
- values={Array []}
+ values={[]}
/>
<SearchBox
autoFocus={false}
@@ -179,7 +179,7 @@ exports[`should search 1`] = `
onClear={[Function]}
onClick={[Function]}
open={true}
- values={Array []}
+ values={[]}
/>
<SearchBox
autoFocus={false}
@@ -239,7 +239,7 @@ exports[`should search 2`] = `
onClear={[Function]}
onClick={[Function]}
open={true}
- values={Array []}
+ values={[]}
/>
<SearchBox
autoFocus={false}
@@ -310,7 +310,7 @@ exports[`should search 3`] = `
onClear={[Function]}
onClick={[Function]}
open={true}
- values={Array []}
+ values={[]}
/>
<SearchBox
autoFocus={false}
@@ -379,7 +379,7 @@ exports[`should search 4`] = `
onClear={[Function]}
onClick={[Function]}
open={true}
- values={Array []}
+ values={[]}
/>
<SearchBox
autoFocus={false}
@@ -413,7 +413,7 @@ exports[`should search 5`] = `
onClear={[Function]}
onClick={[Function]}
open={true}
- values={Array []}
+ values={[]}
/>
<SearchBox
autoFocus={false}
diff --git a/server/sonar-web/src/main/js/components/hoc/__tests__/__snapshots__/withNotifications-test.tsx.snap b/server/sonar-web/src/main/js/components/hoc/__tests__/__snapshots__/withNotifications-test.tsx.snap
index 0307ad1d8ac..5da7720f265 100644
--- a/server/sonar-web/src/main/js/components/hoc/__tests__/__snapshots__/withNotifications-test.tsx.snap
+++ b/server/sonar-web/src/main/js/components/hoc/__tests__/__snapshots__/withNotifications-test.tsx.snap
@@ -4,33 +4,33 @@ exports[`should fetch notifications and render 1`] = `
<X
addNotification={[Function]}
channels={
- Array [
+ [
"channel1",
"channel2",
]
}
globalTypes={
- Array [
+ [
"type-global",
"type-common",
]
}
loading={false}
notifications={
- Array [
- Object {
+ [
+ {
"channel": "channel1",
"project": "foo",
"projectName": "Foo",
"type": "type-global",
},
- Object {
+ {
"channel": "channel1",
"project": "bar",
"projectName": "Bar",
"type": "type-common",
},
- Object {
+ {
"channel": "channel2",
"project": "qux",
"projectName": "Qux",
@@ -39,7 +39,7 @@ exports[`should fetch notifications and render 1`] = `
]
}
perProjectTypes={
- Array [
+ [
"type-common",
]
}
diff --git a/server/sonar-web/src/main/js/components/icons/__tests__/__snapshots__/BranchLikeIcon-test.tsx.snap b/server/sonar-web/src/main/js/components/icons/__tests__/__snapshots__/BranchLikeIcon-test.tsx.snap
index fa08036ef71..dfe0b95f619 100644
--- a/server/sonar-web/src/main/js/components/icons/__tests__/__snapshots__/BranchLikeIcon-test.tsx.snap
+++ b/server/sonar-web/src/main/js/components/icons/__tests__/__snapshots__/BranchLikeIcon-test.tsx.snap
@@ -1,5 +1,5 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
-exports[`should render branch icon correctly 1`] = `"<div><svg height=\\"16\\" style=\\"fill-rule: evenodd; clip-rule: evenodd; stroke-linejoin: round; stroke-miterlimit: 1.41421;\\" version=\\"1.1\\" viewBox=\\"0 0 16 16\\" width=\\"16\\" xmlns:xlink=\\"http://www.w3.org/1999/xlink\\" xml:space=\\"preserve\\"><path d=\\"M12.5 6.5c0-1.1-.9-2-2-2s-2 .9-2 2c0 .8.5 1.5 1.2 1.8-.3.6-.7 1.1-1.2 1.4-.9.5-1.9.5-2.5.4V4c.9-.2 1.5-1 1.5-1.9 0-1.1-.9-2-2-2s-2 .9-2 2C3.5 3 4.1 3.8 5 4v8c-.9.2-1.5 1-1.5 1.9 0 1.1.9 2 2 2s2-.9 2-2c0-.9-.6-1.7-1.5-1.9v-1c.2 0 .5.1.7.1.7 0 1.5-.1 2.2-.6.8-.5 1.4-1.2 1.7-2.1 1.1 0 1.9-.9 1.9-1.9zm-8-4.4c0-.6.4-1 1-1s1 .4 1 1-.4 1-1 1-1-.5-1-1zm2 11.9c0 .6-.4 1-1 1s-1-.4-1-1 .4-1 1-1 1 .4 1 1zm4-6.5c-.6 0-1-.4-1-1s.4-1 1-1 1 .4 1 1-.4 1-1 1z\\" style=\\"fill: #236a97;\\"></path></svg></div>"`;
+exports[`should render branch icon correctly 1`] = `"<div><svg height="16" style="fill-rule: evenodd; clip-rule: evenodd; stroke-linejoin: round; stroke-miterlimit: 1.41421;" version="1.1" viewBox="0 0 16 16" width="16" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve"><path d="M12.5 6.5c0-1.1-.9-2-2-2s-2 .9-2 2c0 .8.5 1.5 1.2 1.8-.3.6-.7 1.1-1.2 1.4-.9.5-1.9.5-2.5.4V4c.9-.2 1.5-1 1.5-1.9 0-1.1-.9-2-2-2s-2 .9-2 2C3.5 3 4.1 3.8 5 4v8c-.9.2-1.5 1-1.5 1.9 0 1.1.9 2 2 2s2-.9 2-2c0-.9-.6-1.7-1.5-1.9v-1c.2 0 .5.1.7.1.7 0 1.5-.1 2.2-.6.8-.5 1.4-1.2 1.7-2.1 1.1 0 1.9-.9 1.9-1.9zm-8-4.4c0-.6.4-1 1-1s1 .4 1 1-.4 1-1 1-1-.5-1-1zm2 11.9c0 .6-.4 1-1 1s-1-.4-1-1 .4-1 1-1 1 .4 1 1zm4-6.5c-.6 0-1-.4-1-1s.4-1 1-1 1 .4 1 1-.4 1-1 1z" style="fill: #236a97;"></path></svg></div>"`;
-exports[`should render pull request icon correctly 1`] = `"<div><svg height=\\"16\\" style=\\"fill-rule: evenodd; clip-rule: evenodd; stroke-linejoin: round; stroke-miterlimit: 1.41421;\\" version=\\"1.1\\" viewBox=\\"0 0 16 16\\" width=\\"16\\" xmlns:xlink=\\"http://www.w3.org/1999/xlink\\" xml:space=\\"preserve\\"><path d=\\"M13,11.9L13,5.5C13,5.4 13.232,1.996 7.9,2L9.1,0.8L8.5,0.1L5.9,2.6L8.5,5.1L9.2,4.4L7.905,3.008C12.256,2.99 12,5.4 12,5.5L12,11.9C11.1,12.1 10.5,12.9 10.5,13.8C10.5,14.9 11.4,15.8 12.5,15.8C13.6,15.8 14.5,14.9 14.5,13.8C14.5,12.9 13.9,12.2 13,11.9ZM4,11.9C4.9,12.2 5.5,12.9 5.5,13.8C5.5,14.9 4.6,15.8 3.5,15.8C2.4,15.8 1.5,14.9 1.5,13.8C1.5,12.9 2.1,12.1 3,11.9L3,4.1C2.1,3.9 1.5,3.1 1.5,2.2C1.5,1.1 2.4,0.2 3.5,0.2C4.6,0.2 5.5,1.1 5.5,2.2C5.5,3.1 4.9,3.9 4,4.1L4,11.9ZM12.5,14.9C11.9,14.9 11.5,14.5 11.5,13.9C11.5,13.3 11.9,12.9 12.5,12.9C13.1,12.9 13.5,13.3 13.5,13.9C13.5,14.5 13.1,14.9 12.5,14.9ZM3.5,14.9C2.9,14.9 2.5,14.5 2.5,13.9C2.5,13.3 2.9,12.9 3.5,12.9C4.1,12.9 4.5,13.3 4.5,13.9C4.5,14.5 4.1,14.9 3.5,14.9ZM2.5,2.2C2.5,1.6 2.9,1.2 3.5,1.2C4.1,1.2 4.5,1.6 4.5,2.2C4.5,2.8 4.1,3.2 3.5,3.2C2.9,3.2 2.5,2.8 2.5,2.2Z\\" style=\\"fill: #236a97;\\"></path></svg></div>"`;
+exports[`should render pull request icon correctly 1`] = `"<div><svg height="16" style="fill-rule: evenodd; clip-rule: evenodd; stroke-linejoin: round; stroke-miterlimit: 1.41421;" version="1.1" viewBox="0 0 16 16" width="16" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve"><path d="M13,11.9L13,5.5C13,5.4 13.232,1.996 7.9,2L9.1,0.8L8.5,0.1L5.9,2.6L8.5,5.1L9.2,4.4L7.905,3.008C12.256,2.99 12,5.4 12,5.5L12,11.9C11.1,12.1 10.5,12.9 10.5,13.8C10.5,14.9 11.4,15.8 12.5,15.8C13.6,15.8 14.5,14.9 14.5,13.8C14.5,12.9 13.9,12.2 13,11.9ZM4,11.9C4.9,12.2 5.5,12.9 5.5,13.8C5.5,14.9 4.6,15.8 3.5,15.8C2.4,15.8 1.5,14.9 1.5,13.8C1.5,12.9 2.1,12.1 3,11.9L3,4.1C2.1,3.9 1.5,3.1 1.5,2.2C1.5,1.1 2.4,0.2 3.5,0.2C4.6,0.2 5.5,1.1 5.5,2.2C5.5,3.1 4.9,3.9 4,4.1L4,11.9ZM12.5,14.9C11.9,14.9 11.5,14.5 11.5,13.9C11.5,13.3 11.9,12.9 12.5,12.9C13.1,12.9 13.5,13.3 13.5,13.9C13.5,14.5 13.1,14.9 12.5,14.9ZM3.5,14.9C2.9,14.9 2.5,14.5 2.5,13.9C2.5,13.3 2.9,12.9 3.5,12.9C4.1,12.9 4.5,13.3 4.5,13.9C4.5,14.5 4.1,14.9 3.5,14.9ZM2.5,2.2C2.5,1.6 2.9,1.2 3.5,1.2C4.1,1.2 4.5,1.6 4.5,2.2C4.5,2.8 4.1,3.2 3.5,3.2C2.9,3.2 2.5,2.8 2.5,2.2Z" style="fill: #236a97;"></path></svg></div>"`;
diff --git a/server/sonar-web/src/main/js/components/icons/__tests__/__snapshots__/Icon-test.tsx.snap b/server/sonar-web/src/main/js/components/icons/__tests__/__snapshots__/Icon-test.tsx.snap
index 8ff807bdf67..8ce95580571 100644
--- a/server/sonar-web/src/main/js/components/icons/__tests__/__snapshots__/Icon-test.tsx.snap
+++ b/server/sonar-web/src/main/js/components/icons/__tests__/__snapshots__/Icon-test.tsx.snap
@@ -1,3 +1,3 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
-exports[`should render correctly 1`] = `"<div><svg height=\\"16\\" style=\\"fill-rule: evenodd; clip-rule: evenodd; stroke-linejoin: round; stroke-miterlimit: 1.41421;\\" version=\\"1.1\\" viewBox=\\"0 0 16 16\\" width=\\"16\\" xmlns:xlink=\\"http://www.w3.org/1999/xlink\\" xml:space=\\"preserve\\"><path d=\\"test-path\\"></path></svg></div>"`;
+exports[`should render correctly 1`] = `"<div><svg height="16" style="fill-rule: evenodd; clip-rule: evenodd; stroke-linejoin: round; stroke-miterlimit: 1.41421;" version="1.1" viewBox="0 0 16 16" width="16" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve"><path d="test-path"></path></svg></div>"`;
diff --git a/server/sonar-web/src/main/js/components/issue/__tests__/__snapshots__/IssueView-test.tsx.snap b/server/sonar-web/src/main/js/components/issue/__tests__/__snapshots__/IssueView-test.tsx.snap
index a1962128727..ffeac450c75 100644
--- a/server/sonar-web/src/main/js/components/issue/__tests__/__snapshots__/IssueView-test.tsx.snap
+++ b/server/sonar-web/src/main/js/components/issue/__tests__/__snapshots__/IssueView-test.tsx.snap
@@ -9,16 +9,16 @@ exports[`should render hotspots correctly 1`] = `
>
<IssueTitleBar
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",
@@ -27,16 +27,16 @@ exports[`should render hotspots 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": "SECURITY_HOTSPOT",
}
}
@@ -45,16 +45,16 @@ exports[`should render hotspots correctly 1`] = `
<IssueActionsBar
className="padded-left"
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",
@@ -63,16 +63,16 @@ exports[`should render hotspots 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": "SECURITY_HOTSPOT",
}
}
@@ -92,10 +92,10 @@ exports[`should render issues correctly 1`] = `
>
<IssueTitleBar
issue={
- Object {
- "actions": Array [],
- "comments": Array [
- Object {
+ {
+ "actions": [],
+ "comments": [
+ {
"author": "admin",
"authorActive": true,
"authorAvatar": "admin-avatar",
@@ -114,8 +114,8 @@ exports[`should render issues correctly 1`] = `
"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",
@@ -124,16 +124,16 @@ exports[`should render issues 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",
}
}
@@ -142,10 +142,10 @@ exports[`should render issues correctly 1`] = `
<IssueActionsBar
className="padded-left"
issue={
- Object {
- "actions": Array [],
- "comments": Array [
- Object {
+ {
+ "actions": [],
+ "comments": [
+ {
"author": "admin",
"authorActive": true,
"authorAvatar": "admin-avatar",
@@ -164,8 +164,8 @@ exports[`should render issues correctly 1`] = `
"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",
@@ -174,16 +174,16 @@ exports[`should render issues 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",
}
}
@@ -196,7 +196,7 @@ exports[`should render issues correctly 1`] = `
>
<IssueCommentLine
comment={
- Object {
+ {
"author": "admin",
"authorActive": true,
"authorAvatar": "admin-avatar",
diff --git a/server/sonar-web/src/main/js/components/issue/__tests__/__snapshots__/issue-test.tsx.snap b/server/sonar-web/src/main/js/components/issue/__tests__/__snapshots__/issue-test.tsx.snap
index 73747956ec9..78a0638669c 100644
--- a/server/sonar-web/src/main/js/components/issue/__tests__/__snapshots__/issue-test.tsx.snap
+++ b/server/sonar-web/src/main/js/components/issue/__tests__/__snapshots__/issue-test.tsx.snap
@@ -5,10 +5,10 @@ exports[`should render issues correctly 1`] = `
displayLocationsCount={true}
displayLocationsLink={false}
issue={
- Object {
- "actions": Array [],
- "comments": Array [
- Object {
+ {
+ "actions": [],
+ "comments": [
+ {
"author": "admin",
"authorActive": true,
"authorAvatar": "admin-avatar",
@@ -27,8 +27,8 @@ exports[`should render issues correctly 1`] = `
"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",
@@ -37,16 +37,16 @@ exports[`should render issues 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/components/issue/components/__tests__/__snapshots__/IssueActionsBar-test.tsx.snap b/server/sonar-web/src/main/js/components/issue/components/__tests__/__snapshots__/IssueActionsBar-test.tsx.snap
index 5bb47ecddb6..431197f6a57 100644
--- a/server/sonar-web/src/main/js/components/issue/components/__tests__/__snapshots__/IssueActionsBar-test.tsx.snap
+++ b/server/sonar-web/src/main/js/components/issue/components/__tests__/__snapshots__/IssueActionsBar-test.tsx.snap
@@ -14,8 +14,8 @@ exports[`should render commentable correctly 1`] = `
canSetType={false}
isOpen={false}
issue={
- Object {
- "actions": Array [
+ {
+ "actions": [
"comment",
],
"component": "main.js",
@@ -24,8 +24,8 @@ exports[`should render commentable correctly 1`] = `
"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",
@@ -34,16 +34,16 @@ exports[`should render commentable 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",
}
}
@@ -58,8 +58,8 @@ exports[`should render commentable correctly 1`] = `
canSetSeverity={false}
isOpen={false}
issue={
- Object {
- "actions": Array [
+ {
+ "actions": [
"comment",
],
"component": "main.js",
@@ -68,8 +68,8 @@ exports[`should render commentable correctly 1`] = `
"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",
@@ -78,16 +78,16 @@ exports[`should render commentable 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",
}
}
@@ -102,8 +102,8 @@ exports[`should render commentable correctly 1`] = `
hasTransitions={false}
isOpen={false}
issue={
- Object {
- "actions": Array [
+ {
+ "actions": [
"comment",
],
"component": "main.js",
@@ -112,8 +112,8 @@ exports[`should render commentable correctly 1`] = `
"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",
@@ -122,16 +122,16 @@ exports[`should render commentable 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",
}
}
@@ -146,8 +146,8 @@ exports[`should render commentable correctly 1`] = `
canAssign={false}
isOpen={false}
issue={
- Object {
- "actions": Array [
+ {
+ "actions": [
"comment",
],
"component": "main.js",
@@ -156,8 +156,8 @@ exports[`should render commentable correctly 1`] = `
"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",
@@ -166,16 +166,16 @@ exports[`should render commentable 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",
}
}
@@ -202,8 +202,8 @@ exports[`should render commentable correctly 1`] = `
canSetTags={false}
isOpen={false}
issue={
- Object {
- "actions": Array [
+ {
+ "actions": [
"comment",
],
"component": "main.js",
@@ -212,8 +212,8 @@ exports[`should render commentable correctly 1`] = `
"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",
@@ -222,16 +222,16 @@ exports[`should render commentable 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",
}
}
@@ -257,8 +257,8 @@ exports[`should render effort correctly 1`] = `
canSetType={false}
isOpen={false}
issue={
- Object {
- "actions": Array [],
+ {
+ "actions": [],
"component": "main.js",
"componentEnabled": true,
"componentLongName": "main.js",
@@ -266,8 +266,8 @@ exports[`should render effort correctly 1`] = `
"componentUuid": "foo1234",
"creationDate": "2017-03-01T09:36:01+0100",
"effort": "great",
- "flows": Array [],
- "flowsWithType": Array [],
+ "flows": [],
+ "flowsWithType": [],
"key": "AVsae-CQS-9G3txfbFN2",
"line": 25,
"message": "Reduce the number of conditional operators (4) used in the expression",
@@ -276,16 +276,16 @@ exports[`should render effort 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",
}
}
@@ -300,8 +300,8 @@ exports[`should render effort correctly 1`] = `
canSetSeverity={false}
isOpen={false}
issue={
- Object {
- "actions": Array [],
+ {
+ "actions": [],
"component": "main.js",
"componentEnabled": true,
"componentLongName": "main.js",
@@ -309,8 +309,8 @@ exports[`should render effort correctly 1`] = `
"componentUuid": "foo1234",
"creationDate": "2017-03-01T09:36:01+0100",
"effort": "great",
- "flows": Array [],
- "flowsWithType": Array [],
+ "flows": [],
+ "flowsWithType": [],
"key": "AVsae-CQS-9G3txfbFN2",
"line": 25,
"message": "Reduce the number of conditional operators (4) used in the expression",
@@ -319,16 +319,16 @@ exports[`should render effort 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",
}
}
@@ -343,8 +343,8 @@ exports[`should render effort correctly 1`] = `
hasTransitions={false}
isOpen={false}
issue={
- Object {
- "actions": Array [],
+ {
+ "actions": [],
"component": "main.js",
"componentEnabled": true,
"componentLongName": "main.js",
@@ -352,8 +352,8 @@ exports[`should render effort correctly 1`] = `
"componentUuid": "foo1234",
"creationDate": "2017-03-01T09:36:01+0100",
"effort": "great",
- "flows": Array [],
- "flowsWithType": Array [],
+ "flows": [],
+ "flowsWithType": [],
"key": "AVsae-CQS-9G3txfbFN2",
"line": 25,
"message": "Reduce the number of conditional operators (4) used in the expression",
@@ -362,16 +362,16 @@ exports[`should render effort 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",
}
}
@@ -386,8 +386,8 @@ exports[`should render effort correctly 1`] = `
canAssign={false}
isOpen={false}
issue={
- Object {
- "actions": Array [],
+ {
+ "actions": [],
"component": "main.js",
"componentEnabled": true,
"componentLongName": "main.js",
@@ -395,8 +395,8 @@ exports[`should render effort correctly 1`] = `
"componentUuid": "foo1234",
"creationDate": "2017-03-01T09:36:01+0100",
"effort": "great",
- "flows": Array [],
- "flowsWithType": Array [],
+ "flows": [],
+ "flowsWithType": [],
"key": "AVsae-CQS-9G3txfbFN2",
"line": 25,
"message": "Reduce the number of conditional operators (4) used in the expression",
@@ -405,16 +405,16 @@ exports[`should render effort 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",
}
}
@@ -442,8 +442,8 @@ exports[`should render effort correctly 1`] = `
canSetTags={false}
isOpen={false}
issue={
- Object {
- "actions": Array [],
+ {
+ "actions": [],
"component": "main.js",
"componentEnabled": true,
"componentLongName": "main.js",
@@ -451,8 +451,8 @@ exports[`should render effort correctly 1`] = `
"componentUuid": "foo1234",
"creationDate": "2017-03-01T09:36:01+0100",
"effort": "great",
- "flows": Array [],
- "flowsWithType": Array [],
+ "flows": [],
+ "flowsWithType": [],
"key": "AVsae-CQS-9G3txfbFN2",
"line": 25,
"message": "Reduce the number of conditional operators (4) used in the expression",
@@ -461,16 +461,16 @@ exports[`should render effort 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",
}
}
@@ -496,16 +496,16 @@ exports[`should render issue correctly 1`] = `
canSetType={false}
isOpen={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",
@@ -514,16 +514,16 @@ exports[`should render issue 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",
}
}
@@ -538,16 +538,16 @@ exports[`should render issue correctly 1`] = `
canSetSeverity={false}
isOpen={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",
@@ -556,16 +556,16 @@ exports[`should render issue 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",
}
}
@@ -580,16 +580,16 @@ exports[`should render issue correctly 1`] = `
hasTransitions={false}
isOpen={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",
@@ -598,16 +598,16 @@ exports[`should render issue 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",
}
}
@@ -622,16 +622,16 @@ exports[`should render issue correctly 1`] = `
canAssign={false}
isOpen={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",
@@ -640,16 +640,16 @@ exports[`should render issue 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",
}
}
@@ -668,16 +668,16 @@ exports[`should render issue correctly 1`] = `
canSetTags={false}
isOpen={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",
@@ -686,16 +686,16 @@ exports[`should render issue 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",
}
}
@@ -721,16 +721,16 @@ exports[`should render security hotspot correctly 1`] = `
canSetType={false}
isOpen={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",
@@ -739,16 +739,16 @@ exports[`should render security hotspot 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": "SECURITY_HOTSPOT",
}
}
@@ -763,16 +763,16 @@ exports[`should render security hotspot correctly 1`] = `
hasTransitions={false}
isOpen={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",
@@ -781,16 +781,16 @@ exports[`should render security hotspot 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": "SECURITY_HOTSPOT",
}
}
@@ -805,16 +805,16 @@ exports[`should render security hotspot correctly 1`] = `
canAssign={false}
isOpen={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",
@@ -823,16 +823,16 @@ exports[`should render security hotspot 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": "SECURITY_HOTSPOT",
}
}
@@ -851,16 +851,16 @@ exports[`should render security hotspot correctly 1`] = `
canSetTags={false}
isOpen={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",
@@ -869,16 +869,16 @@ exports[`should render security hotspot 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": "SECURITY_HOTSPOT",
}
}
diff --git a/server/sonar-web/src/main/js/components/issue/components/__tests__/__snapshots__/IssueAssign-test.tsx.snap b/server/sonar-web/src/main/js/components/issue/components/__tests__/__snapshots__/IssueAssign-test.tsx.snap
index 98e115170a9..3eef94a990f 100644
--- a/server/sonar-web/src/main/js/components/issue/components/__tests__/__snapshots__/IssueAssign-test.tsx.snap
+++ b/server/sonar-web/src/main/js/components/issue/components/__tests__/__snapshots__/IssueAssign-test.tsx.snap
@@ -1,8 +1,8 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`should open the popup when the button is clicked 1`] = `
-Array [
- Array [
+[
+ [
"assign",
undefined,
],
diff --git a/server/sonar-web/src/main/js/components/issue/components/__tests__/__snapshots__/IssueChangelog-test.tsx.snap b/server/sonar-web/src/main/js/components/issue/components/__tests__/__snapshots__/IssueChangelog-test.tsx.snap
index dc6ab37ef51..3cb8bc76968 100644
--- a/server/sonar-web/src/main/js/components/issue/components/__tests__/__snapshots__/IssueChangelog-test.tsx.snap
+++ b/server/sonar-web/src/main/js/components/issue/components/__tests__/__snapshots__/IssueChangelog-test.tsx.snap
@@ -1,8 +1,8 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`should open the popup when the button is clicked 1`] = `
-Array [
- Array [
+[
+ [
"changelog",
undefined,
],
@@ -19,7 +19,7 @@ exports[`should open the popup when the button is clicked 2`] = `
overlay={
<ChangelogPopup
issue={
- Object {
+ {
"author": "john.david.dalton@gmail.com",
"creationDate": "2017-03-01T09:36:01+0100",
"key": "issuekey",
@@ -58,7 +58,7 @@ exports[`should render correctly 1`] = `
overlay={
<ChangelogPopup
issue={
- Object {
+ {
"author": "john.david.dalton@gmail.com",
"creationDate": "2017-03-01T09:36:01+0100",
"key": "issuekey",
diff --git a/server/sonar-web/src/main/js/components/issue/components/__tests__/__snapshots__/IssueCommentLine-test.tsx.snap b/server/sonar-web/src/main/js/components/issue/components/__tests__/__snapshots__/IssueCommentLine-test.tsx.snap
index a6864ce05b5..563f86aac29 100644
--- a/server/sonar-web/src/main/js/components/issue/components/__tests__/__snapshots__/IssueCommentLine-test.tsx.snap
+++ b/server/sonar-web/src/main/js/components/issue/components/__tests__/__snapshots__/IssueCommentLine-test.tsx.snap
@@ -1,13 +1,13 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`should open the right popups when the buttons are clicked 1`] = `
-Object {
+{
"openPopup": "edit",
}
`;
exports[`should open the right popups when the buttons are clicked 2`] = `
-Object {
+{
"openPopup": "delete",
}
`;
@@ -31,7 +31,7 @@ exports[`should open the right popups when the buttons are clicked 3`] = `
<div
className="issue-comment-text markdown"
dangerouslySetInnerHTML={
- Object {
+ {
"__html": "<b>test</b>",
}
}
@@ -61,7 +61,7 @@ exports[`should open the right popups when the buttons are clicked 3`] = `
overlay={
<CommentPopup
comment={
- Object {
+ {
"author": "john.doe",
"authorActive": true,
"authorAvatar": "gravatarhash",
@@ -129,7 +129,7 @@ exports[`should render correctly a comment that is not updatable 1`] = `
<div
className="issue-comment-text markdown"
dangerouslySetInnerHTML={
- Object {
+ {
"__html": "<b>test</b>",
}
}
@@ -171,7 +171,7 @@ exports[`should render correctly a comment that is updatable 1`] = `
<div
className="issue-comment-text markdown"
dangerouslySetInnerHTML={
- Object {
+ {
"__html": "<b>test</b>",
}
}
@@ -201,7 +201,7 @@ exports[`should render correctly a comment that is updatable 1`] = `
overlay={
<CommentPopup
comment={
- Object {
+ {
"author": "john.doe",
"authorActive": true,
"authorAvatar": "gravatarhash",
diff --git a/server/sonar-web/src/main/js/components/issue/components/__tests__/__snapshots__/IssueSeverity-test.tsx.snap b/server/sonar-web/src/main/js/components/issue/components/__tests__/__snapshots__/IssueSeverity-test.tsx.snap
index 5d530bc6794..c2d685b6b3c 100644
--- a/server/sonar-web/src/main/js/components/issue/components/__tests__/__snapshots__/IssueSeverity-test.tsx.snap
+++ b/server/sonar-web/src/main/js/components/issue/components/__tests__/__snapshots__/IssueSeverity-test.tsx.snap
@@ -1,8 +1,8 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`should open the popup when the button is clicked 1`] = `
-Array [
- Array [
+[
+ [
"set-severity",
undefined,
],
@@ -19,7 +19,7 @@ exports[`should open the popup when the button is clicked 2`] = `
overlay={
<SetSeverityPopup
issue={
- Object {
+ {
"severity": "BLOCKER",
}
}
@@ -55,7 +55,7 @@ exports[`should render with the action 1`] = `
overlay={
<SetSeverityPopup
issue={
- Object {
+ {
"severity": "BLOCKER",
}
}
diff --git a/server/sonar-web/src/main/js/components/issue/components/__tests__/__snapshots__/IssueTitleBar-test.tsx.snap b/server/sonar-web/src/main/js/components/issue/components/__tests__/__snapshots__/IssueTitleBar-test.tsx.snap
index 276b4627114..ecb2cf2fe3a 100644
--- a/server/sonar-web/src/main/js/components/issue/components/__tests__/__snapshots__/IssueTitleBar-test.tsx.snap
+++ b/server/sonar-web/src/main/js/components/issue/components/__tests__/__snapshots__/IssueTitleBar-test.tsx.snap
@@ -22,8 +22,8 @@ exports[`should render correctly: default 1`] = `
creationDate="2017-03-01T09:36:01+0100"
isOpen={false}
issue={
- Object {
- "actions": Array [],
+ {
+ "actions": [],
"component": "main.js",
"componentEnabled": true,
"componentLongName": "main.js",
@@ -31,8 +31,8 @@ exports[`should render correctly: default 1`] = `
"componentUuid": "foo1234",
"creationDate": "2017-03-01T09:36:01+0100",
"externalRuleEngine": "foo",
- "flows": Array [],
- "flowsWithType": Array [],
+ "flows": [],
+ "flowsWithType": [],
"key": "AVsae-CQS-9G3txfbFN2",
"line": 25,
"message": "Reduce the number of conditional operators (4) used in the expression",
@@ -41,16 +41,16 @@ exports[`should render 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",
}
}
@@ -76,7 +76,7 @@ exports[`should render correctly: default 1`] = `
target="_blank"
title="permalink"
to={
- Object {
+ {
"hash": "",
"pathname": "/project/issues",
"search": "?issues=AVsae-CQS-9G3txfbFN2&open=AVsae-CQS-9G3txfbFN2&id=myproject",
@@ -113,8 +113,8 @@ exports[`should render correctly: with filter 1`] = `
creationDate="2017-03-01T09:36:01+0100"
isOpen={false}
issue={
- Object {
- "actions": Array [],
+ {
+ "actions": [],
"component": "main.js",
"componentEnabled": true,
"componentLongName": "main.js",
@@ -122,8 +122,8 @@ exports[`should render correctly: with filter 1`] = `
"componentUuid": "foo1234",
"creationDate": "2017-03-01T09:36:01+0100",
"externalRuleEngine": "foo",
- "flows": Array [],
- "flowsWithType": Array [],
+ "flows": [],
+ "flowsWithType": [],
"key": "AVsae-CQS-9G3txfbFN2",
"line": 25,
"message": "Reduce the number of conditional operators (4) used in the expression",
@@ -132,16 +132,16 @@ exports[`should render correctly: with filter 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",
}
}
@@ -167,7 +167,7 @@ exports[`should render correctly: with filter 1`] = `
target="_blank"
title="permalink"
to={
- Object {
+ {
"hash": "",
"pathname": "/project/issues",
"search": "?issues=AVsae-CQS-9G3txfbFN2&open=AVsae-CQS-9G3txfbFN2&id=myproject",
@@ -183,8 +183,8 @@ exports[`should render correctly: with filter 1`] = `
<SimilarIssuesFilter
isOpen={false}
issue={
- Object {
- "actions": Array [],
+ {
+ "actions": [],
"component": "main.js",
"componentEnabled": true,
"componentLongName": "main.js",
@@ -192,8 +192,8 @@ exports[`should render correctly: with filter 1`] = `
"componentUuid": "foo1234",
"creationDate": "2017-03-01T09:36:01+0100",
"externalRuleEngine": "foo",
- "flows": Array [],
- "flowsWithType": Array [],
+ "flows": [],
+ "flowsWithType": [],
"key": "AVsae-CQS-9G3txfbFN2",
"line": 25,
"message": "Reduce the number of conditional operators (4) used in the expression",
@@ -202,16 +202,16 @@ exports[`should render correctly: with filter 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",
}
}
@@ -245,37 +245,37 @@ exports[`should render correctly: with multi locations 1`] = `
creationDate="2017-03-01T09:36:01+0100"
isOpen={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 [
- 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,19 +283,19 @@ exports[`should render correctly: with multi locations 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,
@@ -304,7 +304,7 @@ exports[`should render correctly: with multi locations 1`] = `
},
],
],
- "flowsWithType": Array [],
+ "flowsWithType": [],
"key": "AVsae-CQS-9G3txfbFN2",
"line": 25,
"message": "Reduce the number of conditional operators (4) used in the expression",
@@ -313,19 +313,19 @@ exports[`should render correctly: with multi locations 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,
@@ -335,13 +335,13 @@ exports[`should render correctly: with multi locations 1`] = `
],
"severity": "MAJOR",
"status": "OPEN",
- "textRange": Object {
+ "textRange": {
"endLine": 26,
"endOffset": 15,
"startLine": 25,
"startOffset": 0,
},
- "transitions": Array [],
+ "transitions": [],
"type": "BUG",
}
}
@@ -378,7 +378,7 @@ exports[`should render correctly: with multi locations 1`] = `
target="_blank"
title="permalink"
to={
- Object {
+ {
"hash": "",
"pathname": "/project/issues",
"search": "?issues=AVsae-CQS-9G3txfbFN2&open=AVsae-CQS-9G3txfbFN2&id=myproject",
@@ -414,37 +414,37 @@ exports[`should render correctly: with multi locations and link 1`] = `
creationDate="2017-03-01T09:36:01+0100"
isOpen={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 [
- 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,
@@ -452,19 +452,19 @@ exports[`should render correctly: with multi locations and link 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,
@@ -473,7 +473,7 @@ exports[`should render correctly: with multi locations and link 1`] = `
},
],
],
- "flowsWithType": Array [],
+ "flowsWithType": [],
"key": "AVsae-CQS-9G3txfbFN2",
"line": 25,
"message": "Reduce the number of conditional operators (4) used in the expression",
@@ -482,19 +482,19 @@ exports[`should render correctly: with multi locations and link 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,
@@ -504,13 +504,13 @@ exports[`should render correctly: with multi locations and link 1`] = `
],
"severity": "MAJOR",
"status": "OPEN",
- "textRange": Object {
+ "textRange": {
"endLine": 26,
"endOffset": 15,
"startLine": 25,
"startOffset": 0,
},
- "transitions": Array [],
+ "transitions": [],
"type": "BUG",
}
}
@@ -534,7 +534,7 @@ exports[`should render correctly: with multi locations and link 1`] = `
<ForwardRef(Link)
target="_blank"
to={
- Object {
+ {
"hash": "",
"pathname": "/project/issues",
"search": "?branch=branch-6.7&issues=AVsae-CQS-9G3txfbFN2&open=AVsae-CQS-9G3txfbFN2&id=myproject",
@@ -558,7 +558,7 @@ exports[`should render correctly: with multi locations and link 1`] = `
target="_blank"
title="permalink"
to={
- Object {
+ {
"hash": "",
"pathname": "/project/issues",
"search": "?branch=branch-6.7&issues=AVsae-CQS-9G3txfbFN2&open=AVsae-CQS-9G3txfbFN2&id=myproject",
diff --git a/server/sonar-web/src/main/js/components/issue/popups/__tests__/__snapshots__/ChangelogPopup-test.tsx.snap b/server/sonar-web/src/main/js/components/issue/popups/__tests__/__snapshots__/ChangelogPopup-test.tsx.snap
index 34ccc2356d8..e294878f479 100644
--- a/server/sonar-web/src/main/js/components/issue/popups/__tests__/__snapshots__/ChangelogPopup-test.tsx.snap
+++ b/server/sonar-web/src/main/js/components/issue/popups/__tests__/__snapshots__/ChangelogPopup-test.tsx.snap
@@ -49,7 +49,7 @@ exports[`should render the changelog popup correctly 1`] = `
</p>
<IssueChangelogDiff
diff={
- Object {
+ {
"key": "severity",
"newValue": "MINOR",
"oldValue": "CRITICAL",
@@ -114,7 +114,7 @@ exports[`should render the changelog popup when change was triggered by a webhoo
</p>
<IssueChangelogDiff
diff={
- Object {
+ {
"key": "severity",
"newValue": "MINOR",
"oldValue": "CRITICAL",
@@ -173,7 +173,7 @@ exports[`should render the changelog popup when change was triggered by a webhoo
</p>
<IssueChangelogDiff
diff={
- Object {
+ {
"key": "severity",
"newValue": "MINOR",
"oldValue": "CRITICAL",
@@ -237,7 +237,7 @@ exports[`should render the changelog popup when we have a deleted user 1`] = `
</p>
<IssueChangelogDiff
diff={
- Object {
+ {
"key": "severity",
"newValue": "MINOR",
"oldValue": "CRITICAL",
@@ -302,7 +302,7 @@ exports[`should render the changelog popup with SQ user when both SQ and externa
</p>
<IssueChangelogDiff
diff={
- Object {
+ {
"key": "severity",
"newValue": "MINOR",
"oldValue": "CRITICAL",
diff --git a/server/sonar-web/src/main/js/components/issue/popups/__tests__/__snapshots__/SetAssigneePopup-test.tsx.snap b/server/sonar-web/src/main/js/components/issue/popups/__tests__/__snapshots__/SetAssigneePopup-test.tsx.snap
index 88c0d0ba1cf..ae5a826874a 100644
--- a/server/sonar-web/src/main/js/components/issue/popups/__tests__/__snapshots__/SetAssigneePopup-test.tsx.snap
+++ b/server/sonar-web/src/main/js/components/issue/popups/__tests__/__snapshots__/SetAssigneePopup-test.tsx.snap
@@ -22,7 +22,7 @@ exports[`should render correctly 1`] = `
<SelectList
currentItem="luke"
items={
- Array [
+ [
"luke",
"",
]
@@ -41,7 +41,7 @@ exports[`should render correctly 1`] = `
<span
className="text-middle"
style={
- Object {
+ {
"marginLeft": 24,
}
}
@@ -56,7 +56,7 @@ exports[`should render correctly 1`] = `
<span
className="text-middle"
style={
- Object {
+ {
"marginLeft": undefined,
}
}
diff --git a/server/sonar-web/src/main/js/components/issue/popups/__tests__/__snapshots__/SimilarIssuesPopup-test.tsx.snap b/server/sonar-web/src/main/js/components/issue/popups/__tests__/__snapshots__/SimilarIssuesPopup-test.tsx.snap
index 7ac0825e59a..67756efde7f 100644
--- a/server/sonar-web/src/main/js/components/issue/popups/__tests__/__snapshots__/SimilarIssuesPopup-test.tsx.snap
+++ b/server/sonar-web/src/main/js/components/issue/popups/__tests__/__snapshots__/SimilarIssuesPopup-test.tsx.snap
@@ -15,7 +15,7 @@ exports[`should render correctly 1`] = `
className="issues-similar-issues-menu"
currentItem="type"
items={
- Array [
+ [
"type",
"severity",
"status",
diff --git a/server/sonar-web/src/main/js/components/shared/__tests__/__snapshots__/DrilldownLink-test.tsx.snap b/server/sonar-web/src/main/js/components/shared/__tests__/__snapshots__/DrilldownLink-test.tsx.snap
index df74dc65e71..d6babd44056 100644
--- a/server/sonar-web/src/main/js/components/shared/__tests__/__snapshots__/DrilldownLink-test.tsx.snap
+++ b/server/sonar-web/src/main/js/components/shared/__tests__/__snapshots__/DrilldownLink-test.tsx.snap
@@ -3,7 +3,7 @@
exports[`should render correctly 1`] = `
<ForwardRef(Link)
to={
- Object {
+ {
"pathname": "/component_measures",
"search": "?id=project123&metric=other&view=list",
}
@@ -16,7 +16,7 @@ exports[`should render correctly 1`] = `
exports[`should render issuesLink correctly 1`] = `
<ForwardRef(Link)
to={
- Object {
+ {
"hash": "",
"pathname": "/project/issues",
"search": "?resolved=false&id=project123",
diff --git a/server/sonar-web/src/main/js/components/tags/__tests__/__snapshots__/TagsSelector-test.tsx.snap b/server/sonar-web/src/main/js/components/tags/__tests__/__snapshots__/TagsSelector-test.tsx.snap
index 635be5982c2..fa38cfaa42d 100644
--- a/server/sonar-web/src/main/js/components/tags/__tests__/__snapshots__/TagsSelector-test.tsx.snap
+++ b/server/sonar-web/src/main/js/components/tags/__tests__/__snapshots__/TagsSelector-test.tsx.snap
@@ -3,7 +3,7 @@
exports[`should render with selected tags 1`] = `
<MultiSelect
elements={
- Array [
+ [
"foo",
"bar",
"baz",
@@ -18,7 +18,7 @@ exports[`should render with selected tags 1`] = `
placeholder="search.search_for_tags"
renderLabel={[Function]}
selectedElements={
- Array [
+ [
"bar",
]
}
@@ -28,7 +28,7 @@ exports[`should render with selected tags 1`] = `
exports[`should render without tags at all 1`] = `
<MultiSelect
- elements={Array []}
+ elements={[]}
filterSelected={[Function]}
legend="select_tags"
listSize={10}
@@ -37,7 +37,7 @@ exports[`should render without tags at all 1`] = `
onUnselect={[Function]}
placeholder="search.search_for_tags"
renderLabel={[Function]}
- selectedElements={Array []}
+ selectedElements={[]}
validateSearchInput={[Function]}
/>
`;
diff --git a/server/sonar-web/src/main/js/components/tutorials/bitbucket-pipelines/__tests__/__snapshots__/AnalysisCommand-test.tsx.snap b/server/sonar-web/src/main/js/components/tutorials/bitbucket-pipelines/__tests__/__snapshots__/AnalysisCommand-test.tsx.snap
index 795b1c6600c..2b454e96ca6 100644
--- a/server/sonar-web/src/main/js/components/tutorials/bitbucket-pipelines/__tests__/__snapshots__/AnalysisCommand-test.tsx.snap
+++ b/server/sonar-web/src/main/js/components/tutorials/bitbucket-pipelines/__tests__/__snapshots__/AnalysisCommand-test.tsx.snap
@@ -5,25 +5,25 @@ exports[`should render correctly for cfamily 1`] = `
<PreambuleYaml
buildTool="cfamily"
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": [],
}
}
/>
@@ -42,7 +42,7 @@ definitions:
- unzip -o $HOME/.sonar/build-wrapper-linux-x86.zip -d $HOME/.sonar/
- curl -sSLo $HOME/.sonar/sonar-scanner.zip https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-\${SONAR_SCANNER_VERSION}-linux.zip
- unzip -o $HOME/.sonar/sonar-scanner.zip -d $HOME/.sonar/
- - export PATH=\\"$PATH:$HOME/.sonar/sonar-scanner-\${SONAR_SCANNER_VERSION}-linux/bin\\"
+ - export PATH="$PATH:$HOME/.sonar/sonar-scanner-\${SONAR_SCANNER_VERSION}-linux/bin"
- <any step required before running your build, like ./configure>
- $HOME/.sonar/build-wrapper-linux-x86/build-wrapper-linux-x86-64 --out-dir bw-output <your clean build command>
- sonar-scanner -Dsonar.cfamily.build-wrapper-output=bw-output
@@ -69,25 +69,25 @@ exports[`should render correctly for cfamily: with branch enabled 1`] = `
<PreambuleYaml
buildTool="cfamily"
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": [],
}
}
/>
@@ -106,7 +106,7 @@ definitions:
- unzip -o $HOME/.sonar/build-wrapper-linux-x86.zip -d $HOME/.sonar/
- curl -sSLo $HOME/.sonar/sonar-scanner.zip https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-\${SONAR_SCANNER_VERSION}-linux.zip
- unzip -o $HOME/.sonar/sonar-scanner.zip -d $HOME/.sonar/
- - export PATH=\\"$PATH:$HOME/.sonar/sonar-scanner-\${SONAR_SCANNER_VERSION}-linux/bin\\"
+ - export PATH="$PATH:$HOME/.sonar/sonar-scanner-\${SONAR_SCANNER_VERSION}-linux/bin"
- <any step required before running your build, like ./configure>
- $HOME/.sonar/build-wrapper-linux-x86/build-wrapper-linux-x86-64 --out-dir bw-output <your clean build command>
- sonar-scanner -Dsonar.cfamily.build-wrapper-output=bw-output
@@ -136,25 +136,25 @@ exports[`should render correctly for dotnet 1`] = `
<PreambuleYaml
buildTool="dotnet"
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": [],
}
}
/>
@@ -173,10 +173,10 @@ definitions:
- apt-get update
- apt-get install --yes openjdk-11-jre
- dotnet tool install --global dotnet-sonarscanner
- - export PATH=\\"$PATH:/root/.dotnet/tools\\"
- - dotnet sonarscanner begin /k:\\"my-project\\" /d:\\"sonar.login=\${SONAR_TOKEN}\\" /d:\\"sonar.host.url=\${SONAR_HOST_URL}\\"
+ - export PATH="$PATH:/root/.dotnet/tools"
+ - dotnet sonarscanner begin /k:"my-project" /d:"sonar.login=\${SONAR_TOKEN}" /d:"sonar.host.url=\${SONAR_HOST_URL}"
- dotnet build
- - dotnet sonarscanner end /d:\\"sonar.login=\${SONAR_TOKEN}\\"
+ - dotnet sonarscanner end /d:"sonar.login=\${SONAR_TOKEN}"
caches:
sonar: ~/.sonar
@@ -194,25 +194,25 @@ exports[`should render correctly for dotnet: with branch enabled 1`] = `
<PreambuleYaml
buildTool="dotnet"
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": [],
}
}
/>
@@ -231,10 +231,10 @@ definitions:
- apt-get update
- apt-get install --yes openjdk-11-jre
- dotnet tool install --global dotnet-sonarscanner
- - export PATH=\\"$PATH:/root/.dotnet/tools\\"
- - dotnet sonarscanner begin /k:\\"my-project\\" /d:\\"sonar.login=\${SONAR_TOKEN}\\" /d:\\"sonar.host.url=\${SONAR_HOST_URL}\\"
+ - export PATH="$PATH:/root/.dotnet/tools"
+ - dotnet sonarscanner begin /k:"my-project" /d:"sonar.login=\${SONAR_TOKEN}" /d:"sonar.host.url=\${SONAR_HOST_URL}"
- dotnet build
- - dotnet sonarscanner end /d:\\"sonar.login=\${SONAR_TOKEN}\\"
+ - dotnet sonarscanner end /d:"sonar.login=\${SONAR_TOKEN}"
caches:
sonar: ~/.sonar
@@ -255,25 +255,25 @@ exports[`should render correctly for gradle 1`] = `
<PreambuleYaml
buildTool="gradle"
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": [],
}
}
/>
@@ -310,25 +310,25 @@ exports[`should render correctly for gradle: with branch enabled 1`] = `
<PreambuleYaml
buildTool="gradle"
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": [],
}
}
/>
@@ -368,25 +368,25 @@ exports[`should render correctly for maven 1`] = `
<PreambuleYaml
buildTool="maven"
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": [],
}
}
/>
@@ -423,25 +423,25 @@ exports[`should render correctly for maven: with branch enabled 1`] = `
<PreambuleYaml
buildTool="maven"
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": [],
}
}
/>
@@ -481,25 +481,25 @@ exports[`should render correctly for other 1`] = `
<PreambuleYaml
buildTool="other"
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": [],
}
}
/>
@@ -536,25 +536,25 @@ exports[`should render correctly for other: with branch enabled 1`] = `
<PreambuleYaml
buildTool="other"
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/components/tutorials/bitbucket-pipelines/__tests__/__snapshots__/BitbucketPipelinesTutorial-test.tsx.snap b/server/sonar-web/src/main/js/components/tutorials/bitbucket-pipelines/__tests__/__snapshots__/BitbucketPipelinesTutorial-test.tsx.snap
index 566edb7ad77..001c0cbe6ad 100644
--- a/server/sonar-web/src/main/js/components/tutorials/bitbucket-pipelines/__tests__/__snapshots__/BitbucketPipelinesTutorial-test.tsx.snap
+++ b/server/sonar-web/src/main/js/components/tutorials/bitbucket-pipelines/__tests__/__snapshots__/BitbucketPipelinesTutorial-test.tsx.snap
@@ -57,49 +57,49 @@ exports[`should render correctly: no binding 1`] = `
exports[`should render correctly: repo variable step content 1`] = `
<RepositoryVariables
almBinding={
- Object {
+ {
"alm": "github",
"key": "key",
}
}
baseUrl="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": [],
}
}
currentUser={
- Object {
- "dismissedNotices": Object {
+ {
+ "dismissedNotices": {
"educationPrinciples": false,
},
- "groups": Array [],
+ "groups": [],
"isLoggedIn": true,
"login": "luke",
"name": "Skywalker",
- "scmAccounts": Array [],
+ "scmAccounts": [],
}
}
onDone={[Function]}
projectBinding={
- Object {
+ {
"alm": "bitbucketcloud",
"key": "foo",
"monorepo": true,
diff --git a/server/sonar-web/src/main/js/components/tutorials/bitbucket-pipelines/__tests__/__snapshots__/PreambuleYaml-test.tsx.snap b/server/sonar-web/src/main/js/components/tutorials/bitbucket-pipelines/__tests__/__snapshots__/PreambuleYaml-test.tsx.snap
index 658a4d8e1c5..267f1b54a7a 100644
--- a/server/sonar-web/src/main/js/components/tutorials/bitbucket-pipelines/__tests__/__snapshots__/PreambuleYaml-test.tsx.snap
+++ b/server/sonar-web/src/main/js/components/tutorials/bitbucket-pipelines/__tests__/__snapshots__/PreambuleYaml-test.tsx.snap
@@ -3,25 +3,25 @@
exports[`should render correctly for cfamily 1`] = `
<DefaultProjectKey
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": [],
}
}
/>
@@ -37,7 +37,7 @@ exports[`should render correctly for gradle 1`] = `
defaultMessage="onboarding.tutorial.with.yaml.gradle"
id="onboarding.tutorial.with.yaml.gradle"
values={
- Object {
+ {
"gradle": <React.Fragment>
<code
className="rule"
@@ -58,12 +58,12 @@ exports[`should render correctly for gradle 1`] = `
/>
<CodeSnippet
snippet="plugins {
- id \\"org.sonarqube\\" version \\"3.5.0.2730\\"
+ id "org.sonarqube" version "3.5.0.2730"
}
sonar {
properties {
- property \\"sonar.projectKey\\", \\"my-project\\"
+ property "sonar.projectKey", "my-project"
}
}"
/>
@@ -73,25 +73,25 @@ sonar {
exports[`should render correctly for other 1`] = `
<DefaultProjectKey
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/components/tutorials/bitbucket-pipelines/__tests__/__snapshots__/RepositoryVariables-test.tsx.snap b/server/sonar-web/src/main/js/components/tutorials/bitbucket-pipelines/__tests__/__snapshots__/RepositoryVariables-test.tsx.snap
index 56e3ddf6a19..7a8eff48339 100644
--- a/server/sonar-web/src/main/js/components/tutorials/bitbucket-pipelines/__tests__/__snapshots__/RepositoryVariables-test.tsx.snap
+++ b/server/sonar-web/src/main/js/components/tutorials/bitbucket-pipelines/__tests__/__snapshots__/RepositoryVariables-test.tsx.snap
@@ -11,7 +11,7 @@ exports[`should render correctly 1`] = `
defaultMessage="onboarding.tutorial.with.bitbucket_pipelines.variables.intro"
id="onboarding.tutorial.with.bitbucket_pipelines.variables.intro"
values={
- Object {
+ {
"repository_variables": <strong>
onboarding.tutorial.with.bitbucket_pipelines.variables.intro.link
</strong>,
@@ -25,7 +25,7 @@ exports[`should render correctly 1`] = `
<li>
<SentenceWithHighlights
highlightKeys={
- Array [
+ [
"name",
]
}
@@ -42,44 +42,44 @@ exports[`should render correctly 1`] = `
</li>
<TokenStepGenerator
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": [],
}
}
/>
<li>
<SentenceWithHighlights
highlightKeys={
- Array [
+ [
"secured",
]
}
@@ -89,7 +89,7 @@ exports[`should render correctly 1`] = `
<li>
<SentenceWithHighlights
highlightKeys={
- Array [
+ [
"add",
]
}
@@ -106,7 +106,7 @@ exports[`should render correctly 1`] = `
<li>
<SentenceWithHighlights
highlightKeys={
- Array [
+ [
"name",
]
}
@@ -128,7 +128,7 @@ exports[`should render correctly 1`] = `
defaultMessage="onboarding.tutorial.env_variables"
id="onboarding.tutorial.env_variables"
values={
- Object {
+ {
"extra": <ClipboardIconButton
copyValue="test"
/>,
@@ -147,7 +147,7 @@ exports[`should render correctly 1`] = `
<li>
<SentenceWithHighlights
highlightKeys={
- Array [
+ [
"add",
]
}
diff --git a/server/sonar-web/src/main/js/components/tutorials/components/__tests__/__snapshots__/AllSet-test.tsx.snap b/server/sonar-web/src/main/js/components/tutorials/components/__tests__/__snapshots__/AllSet-test.tsx.snap
index b34ae3f4df4..056a8d8d40b 100644
--- a/server/sonar-web/src/main/js/components/tutorials/components/__tests__/__snapshots__/AllSet-test.tsx.snap
+++ b/server/sonar-web/src/main/js/components/tutorials/components/__tests__/__snapshots__/AllSet-test.tsx.snap
@@ -10,7 +10,7 @@ exports[`should render correctly 1`] = `
>
<SentenceWithHighlights
highlightKeys={
- Array [
+ [
"all_set",
]
}
@@ -55,7 +55,7 @@ exports[`should render correctly: with auto refresh 1`] = `
>
<SentenceWithHighlights
highlightKeys={
- Array [
+ [
"all_set",
]
}
@@ -132,7 +132,7 @@ exports[`should render correctly: without branch 1`] = `
>
<SentenceWithHighlights
highlightKeys={
- Array [
+ [
"all_set",
]
}
diff --git a/server/sonar-web/src/main/js/components/tutorials/components/__tests__/__snapshots__/CompilationInfo-test.tsx.snap b/server/sonar-web/src/main/js/components/tutorials/components/__tests__/__snapshots__/CompilationInfo-test.tsx.snap
index 3208fbd8d83..327efdd8576 100644
--- a/server/sonar-web/src/main/js/components/tutorials/components/__tests__/__snapshots__/CompilationInfo-test.tsx.snap
+++ b/server/sonar-web/src/main/js/components/tutorials/components/__tests__/__snapshots__/CompilationInfo-test.tsx.snap
@@ -12,7 +12,7 @@ exports[`should render correctly 1`] = `
defaultMessage="onboarding.tutorial.cfamilly.compilation_database_info"
id="onboarding.tutorial.cfamilly.compilation_database_info"
values={
- Object {
+ {
"link": <withAppStateContext(DocLink)
to="/analyzing-source-code/languages/c-family/"
>
@@ -27,7 +27,7 @@ exports[`should render correctly 1`] = `
defaultMessage="onboarding.tutorial.cfamilly.speed_caching"
id="onboarding.tutorial.cfamilly.speed_caching"
values={
- Object {
+ {
"link": <withAppStateContext(DocLink)
to="/analyzing-source-code/languages/c-family/#analysis-cache"
>
diff --git a/server/sonar-web/src/main/js/components/tutorials/components/__tests__/__snapshots__/CreateYmlFile-test.tsx.snap b/server/sonar-web/src/main/js/components/tutorials/components/__tests__/__snapshots__/CreateYmlFile-test.tsx.snap
index 098d9b25cc7..d9976c97110 100644
--- a/server/sonar-web/src/main/js/components/tutorials/components/__tests__/__snapshots__/CreateYmlFile-test.tsx.snap
+++ b/server/sonar-web/src/main/js/components/tutorials/components/__tests__/__snapshots__/CreateYmlFile-test.tsx.snap
@@ -8,7 +8,7 @@ exports[`should render correctly 1`] = `
defaultMessage="onboarding.tutorial.with.github_action.yaml.create_yml"
id="onboarding.tutorial.with.github_action.yaml.create_yml"
values={
- Object {
+ {
"file": <React.Fragment>
<code
className="rule"
diff --git a/server/sonar-web/src/main/js/components/tutorials/components/__tests__/__snapshots__/RenderOptions-test.tsx.snap b/server/sonar-web/src/main/js/components/tutorials/components/__tests__/__snapshots__/RenderOptions-test.tsx.snap
index c985d364575..d62e8722c21 100644
--- a/server/sonar-web/src/main/js/components/tutorials/components/__tests__/__snapshots__/RenderOptions-test.tsx.snap
+++ b/server/sonar-web/src/main/js/components/tutorials/components/__tests__/__snapshots__/RenderOptions-test.tsx.snap
@@ -8,12 +8,12 @@ exports[`should render correctly: default 1`] = `
label="test-label"
onCheck={[MockFunction]}
options={
- Array [
- Object {
+ [
+ {
"label": "foo.bar.foo",
"value": "foo",
},
- Object {
+ {
"label": "foo.bar.baz",
"value": "baz",
},
@@ -31,12 +31,12 @@ exports[`should render correctly: option checked 1`] = `
label="test-label"
onCheck={[MockFunction]}
options={
- Array [
- Object {
+ [
+ {
"label": "foo.bar.foo",
"value": "foo",
},
- Object {
+ {
"label": "foo.bar.baz",
"value": "baz",
},
@@ -60,12 +60,12 @@ exports[`should render correctly: with title 1`] = `
label="test-label"
onCheck={[MockFunction]}
options={
- Array [
- Object {
+ [
+ {
"label": "foo.bar.foo",
"value": "foo",
},
- Object {
+ {
"label": "foo.bar.baz",
"value": "baz",
},
diff --git a/server/sonar-web/src/main/js/components/tutorials/components/__tests__/__snapshots__/SentenceWithFilename-test.tsx.snap b/server/sonar-web/src/main/js/components/tutorials/components/__tests__/__snapshots__/SentenceWithFilename-test.tsx.snap
index 54c401e7633..9e8423f097d 100644
--- a/server/sonar-web/src/main/js/components/tutorials/components/__tests__/__snapshots__/SentenceWithFilename-test.tsx.snap
+++ b/server/sonar-web/src/main/js/components/tutorials/components/__tests__/__snapshots__/SentenceWithFilename-test.tsx.snap
@@ -8,7 +8,7 @@ exports[`should render correctly 1`] = `
defaultMessage="bar.sentence"
id="bar.sentence"
values={
- Object {
+ {
"file": <code>
foo.txt
</code>,
diff --git a/server/sonar-web/src/main/js/components/tutorials/components/__tests__/__snapshots__/SentenceWithHighlights-test.tsx.snap b/server/sonar-web/src/main/js/components/tutorials/components/__tests__/__snapshots__/SentenceWithHighlights-test.tsx.snap
index dc9ab667a9d..594f5ba1d9f 100644
--- a/server/sonar-web/src/main/js/components/tutorials/components/__tests__/__snapshots__/SentenceWithHighlights-test.tsx.snap
+++ b/server/sonar-web/src/main/js/components/tutorials/components/__tests__/__snapshots__/SentenceWithHighlights-test.tsx.snap
@@ -5,7 +5,7 @@ exports[`should render correctly 1`] = `
defaultMessage="foo.sentence"
id="foo.sentence"
values={
- Object {
+ {
"hello": <strong>
foo.sentence.hello
</strong>,
diff --git a/server/sonar-web/src/main/js/components/tutorials/components/__tests__/__snapshots__/TokenStepGenerator-test.tsx.snap b/server/sonar-web/src/main/js/components/tutorials/components/__tests__/__snapshots__/TokenStepGenerator-test.tsx.snap
index 3119466d5df..e3f4357fa4d 100644
--- a/server/sonar-web/src/main/js/components/tutorials/components/__tests__/__snapshots__/TokenStepGenerator-test.tsx.snap
+++ b/server/sonar-web/src/main/js/components/tutorials/components/__tests__/__snapshots__/TokenStepGenerator-test.tsx.snap
@@ -9,7 +9,7 @@ exports[`should render correctly 1`] = `
defaultMessage="onboarding.tutorial.env_variables"
id="onboarding.tutorial.env_variables"
values={
- Object {
+ {
"extra": <Button
className="spacer-left"
onClick={[Function]}
diff --git a/server/sonar-web/src/main/js/components/tutorials/components/__tests__/__snapshots__/YamlFileStep-test.tsx.snap b/server/sonar-web/src/main/js/components/tutorials/components/__tests__/__snapshots__/YamlFileStep-test.tsx.snap
index 2c886015398..763c04d0ab1 100644
--- a/server/sonar-web/src/main/js/components/tutorials/components/__tests__/__snapshots__/YamlFileStep-test.tsx.snap
+++ b/server/sonar-web/src/main/js/components/tutorials/components/__tests__/__snapshots__/YamlFileStep-test.tsx.snap
@@ -13,7 +13,7 @@ exports[`should render child correctly: C unavailable 1`] = `
onCheck={[Function]}
optionLabelKey="onboarding.build"
options={
- Array [
+ [
"maven",
"gradle",
"dotnet",
@@ -38,7 +38,7 @@ exports[`should render correctly: C available 1`] = `
onCheck={[Function]}
optionLabelKey="onboarding.build"
options={
- Array [
+ [
"maven",
"gradle",
"dotnet",
@@ -64,7 +64,7 @@ exports[`should render correctly: C unavailable 1`] = `
onCheck={[Function]}
optionLabelKey="onboarding.build"
options={
- Array [
+ [
"maven",
"gradle",
"dotnet",
diff --git a/server/sonar-web/src/main/js/components/tutorials/github-action/__tests__/__snapshots__/AnalysisCommand-test.tsx.snap b/server/sonar-web/src/main/js/components/tutorials/github-action/__tests__/__snapshots__/AnalysisCommand-test.tsx.snap
index 01a9adb6013..a9d3a81d8c3 100644
--- a/server/sonar-web/src/main/js/components/tutorials/github-action/__tests__/__snapshots__/AnalysisCommand-test.tsx.snap
+++ b/server/sonar-web/src/main/js/components/tutorials/github-action/__tests__/__snapshots__/AnalysisCommand-test.tsx.snap
@@ -4,25 +4,25 @@ exports[`should render correctly for "cfamily" 1`] = `
<CFamily
branchesEnabled={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": [],
}
}
mainBranchName="main"
@@ -34,25 +34,25 @@ exports[`should render correctly for "dotnet" 1`] = `
<DotNet
branchesEnabled={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": [],
}
}
mainBranchName="main"
@@ -64,25 +64,25 @@ exports[`should render correctly for "gradle" 1`] = `
<Gradle
branchesEnabled={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": [],
}
}
mainBranchName="main"
@@ -94,25 +94,25 @@ exports[`should render correctly for "maven" 1`] = `
<JavaMaven
branchesEnabled={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": [],
}
}
mainBranchName="main"
@@ -124,25 +124,25 @@ exports[`should render correctly for "other" 1`] = `
<Others
branchesEnabled={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": [],
}
}
mainBranchName="main"
diff --git a/server/sonar-web/src/main/js/components/tutorials/github-action/__tests__/__snapshots__/GitHubActionTutorial-test.tsx.snap b/server/sonar-web/src/main/js/components/tutorials/github-action/__tests__/__snapshots__/GitHubActionTutorial-test.tsx.snap
index 2e1f5c44802..475632028ab 100644
--- a/server/sonar-web/src/main/js/components/tutorials/github-action/__tests__/__snapshots__/GitHubActionTutorial-test.tsx.snap
+++ b/server/sonar-web/src/main/js/components/tutorials/github-action/__tests__/__snapshots__/GitHubActionTutorial-test.tsx.snap
@@ -57,49 +57,49 @@ exports[`should render correctly: no binding 1`] = `
exports[`should render correctly: secrets step content 1`] = `
<SecretStep
almBinding={
- Object {
+ {
"alm": "github",
"key": "key",
}
}
baseUrl="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": [],
}
}
currentUser={
- Object {
- "dismissedNotices": Object {
+ {
+ "dismissedNotices": {
"educationPrinciples": false,
},
- "groups": Array [],
+ "groups": [],
"isLoggedIn": true,
"login": "luke",
"name": "Skywalker",
- "scmAccounts": Array [],
+ "scmAccounts": [],
}
}
onDone={[Function]}
projectBinding={
- Object {
+ {
"alm": "github",
"key": "foo",
"monorepo": true,
diff --git a/server/sonar-web/src/main/js/components/tutorials/github-action/__tests__/__snapshots__/SecretStep-test.tsx.snap b/server/sonar-web/src/main/js/components/tutorials/github-action/__tests__/__snapshots__/SecretStep-test.tsx.snap
index 7b16680422f..1e8933b185f 100644
--- a/server/sonar-web/src/main/js/components/tutorials/github-action/__tests__/__snapshots__/SecretStep-test.tsx.snap
+++ b/server/sonar-web/src/main/js/components/tutorials/github-action/__tests__/__snapshots__/SecretStep-test.tsx.snap
@@ -11,7 +11,7 @@ exports[`should render correctly: default 1`] = `
defaultMessage="onboarding.tutorial.with.github_action.secret.intro"
id="onboarding.tutorial.with.github_action.secret.intro"
values={
- Object {
+ {
"settings_secret": <strong>
onboarding.tutorial.with.github_action.secret.intro.link
</strong>,
@@ -25,7 +25,7 @@ exports[`should render correctly: default 1`] = `
<li>
<SentenceWithHighlights
highlightKeys={
- Array [
+ [
"new_secret",
]
}
@@ -35,7 +35,7 @@ exports[`should render correctly: default 1`] = `
<li>
<SentenceWithHighlights
highlightKeys={
- Array [
+ [
"name",
]
}
@@ -52,44 +52,44 @@ exports[`should render correctly: default 1`] = `
</li>
<TokenStepGenerator
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": [],
}
}
/>
<li>
<SentenceWithHighlights
highlightKeys={
- Array [
+ [
"add_secret",
]
}
@@ -106,7 +106,7 @@ exports[`should render correctly: default 1`] = `
<li>
<SentenceWithHighlights
highlightKeys={
- Array [
+ [
"new_secret",
]
}
@@ -116,7 +116,7 @@ exports[`should render correctly: default 1`] = `
<li>
<SentenceWithHighlights
highlightKeys={
- Array [
+ [
"name",
]
}
@@ -138,7 +138,7 @@ exports[`should render correctly: default 1`] = `
defaultMessage="onboarding.tutorial.env_variables"
id="onboarding.tutorial.env_variables"
values={
- Object {
+ {
"extra": <ClipboardIconButton
copyValue="test"
/>,
@@ -157,7 +157,7 @@ exports[`should render correctly: default 1`] = `
<li>
<SentenceWithHighlights
highlightKeys={
- Array [
+ [
"add_secret",
]
}
@@ -184,7 +184,7 @@ exports[`should render correctly: with binding information 1`] = `
defaultMessage="onboarding.tutorial.with.github_action.secret.intro"
id="onboarding.tutorial.with.github_action.secret.intro"
values={
- Object {
+ {
"settings_secret": <a
href="http://github.enterprise.com/PROJECT_KEY/settings/secrets"
rel="noopener noreferrer"
@@ -202,7 +202,7 @@ exports[`should render correctly: with binding information 1`] = `
<li>
<SentenceWithHighlights
highlightKeys={
- Array [
+ [
"new_secret",
]
}
@@ -212,7 +212,7 @@ exports[`should render correctly: with binding information 1`] = `
<li>
<SentenceWithHighlights
highlightKeys={
- Array [
+ [
"name",
]
}
@@ -229,44 +229,44 @@ exports[`should render correctly: with binding information 1`] = `
</li>
<TokenStepGenerator
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": [],
}
}
/>
<li>
<SentenceWithHighlights
highlightKeys={
- Array [
+ [
"add_secret",
]
}
@@ -283,7 +283,7 @@ exports[`should render correctly: with binding information 1`] = `
<li>
<SentenceWithHighlights
highlightKeys={
- Array [
+ [
"new_secret",
]
}
@@ -293,7 +293,7 @@ exports[`should render correctly: with binding information 1`] = `
<li>
<SentenceWithHighlights
highlightKeys={
- Array [
+ [
"name",
]
}
@@ -315,7 +315,7 @@ exports[`should render correctly: with binding information 1`] = `
defaultMessage="onboarding.tutorial.env_variables"
id="onboarding.tutorial.env_variables"
values={
- Object {
+ {
"extra": <ClipboardIconButton
copyValue="test"
/>,
@@ -334,7 +334,7 @@ exports[`should render correctly: with binding information 1`] = `
<li>
<SentenceWithHighlights
highlightKeys={
- Array [
+ [
"add_secret",
]
}
diff --git a/server/sonar-web/src/main/js/components/tutorials/github-action/commands/__tests__/__snapshots__/CFamily-test.tsx.snap b/server/sonar-web/src/main/js/components/tutorials/github-action/commands/__tests__/__snapshots__/CFamily-test.tsx.snap
index 15eeaf5e46e..d431922411b 100644
--- a/server/sonar-web/src/main/js/components/tutorials/github-action/commands/__tests__/__snapshots__/CFamily-test.tsx.snap
+++ b/server/sonar-web/src/main/js/components/tutorials/github-action/commands/__tests__/__snapshots__/CFamily-test.tsx.snap
@@ -4,25 +4,25 @@ exports[`should render correctly 1`] = `
<Fragment>
<DefaultProjectKey
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": [],
}
}
/>
@@ -37,7 +37,7 @@ exports[`should render correctly 1`] = `
onCheck={[Function]}
optionLabelKey="onboarding.build.other.os"
options={
- Array [
+ [
"linux",
"win",
"mac",
@@ -52,25 +52,25 @@ exports[`should render correctly for linux: branches disabled 1`] = `
<Fragment>
<DefaultProjectKey
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": [],
}
}
/>
@@ -86,7 +86,7 @@ exports[`should render correctly for linux: branches disabled 1`] = `
onCheck={[Function]}
optionLabelKey="onboarding.build.other.os"
options={
- Array [
+ [
"linux",
"win",
"mac",
@@ -132,7 +132,7 @@ jobs:
run: |
curl -sSLo $HOME/.sonar/sonar-scanner.zip https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-\${{ env.SONAR_SCANNER_VERSION }}-linux.zip
unzip -o $HOME/.sonar/sonar-scanner.zip -d $HOME/.sonar/
- echo \\"$HOME/.sonar/sonar-scanner-\${{ env.SONAR_SCANNER_VERSION }}-linux/bin\\" >> $GITHUB_PATH
+ echo "$HOME/.sonar/sonar-scanner-\${{ env.SONAR_SCANNER_VERSION }}-linux/bin" >> $GITHUB_PATH
- name: SonarQube analysis
run: |
@@ -154,25 +154,25 @@ exports[`should render correctly for mac: branches enabled 1`] = `
<Fragment>
<DefaultProjectKey
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": [],
}
}
/>
@@ -188,7 +188,7 @@ exports[`should render correctly for mac: branches enabled 1`] = `
onCheck={[Function]}
optionLabelKey="onboarding.build.other.os"
options={
- Array [
+ [
"linux",
"win",
"mac",
@@ -255,25 +255,25 @@ exports[`should render correctly for win: branches enabled 1`] = `
<Fragment>
<DefaultProjectKey
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": [],
}
}
/>
@@ -289,7 +289,7 @@ exports[`should render correctly for win: branches enabled 1`] = `
onCheck={[Function]}
optionLabelKey="onboarding.build.other.os"
options={
- Array [
+ [
"linux",
"win",
"mac",
@@ -324,30 +324,30 @@ jobs:
- name: Download and install the build wrapper
shell: powershell
run: |
- $path = \\"$HOME/.sonar/build-wrapper-win-x86.zip\\"
+ $path = "$HOME/.sonar/build-wrapper-win-x86.zip"
mkdir $HOME/.sonar
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
- (New-Object System.Net.WebClient).DownloadFile(\\"\${{ secrets.SONAR_HOST_URL }}/static/cpp/build-wrapper-win-x86.zip\\", $path)
+ (New-Object System.Net.WebClient).DownloadFile("\${{ secrets.SONAR_HOST_URL }}/static/cpp/build-wrapper-win-x86.zip", $path)
Add-Type -AssemblyName System.IO.Compression.FileSystem
- [System.IO.Compression.ZipFile]::ExtractToDirectory($path, \\"$HOME/.sonar\\")
+ [System.IO.Compression.ZipFile]::ExtractToDirectory($path, "$HOME/.sonar")
env:
SONAR_HOST_URL: \${{ secrets.SONAR_HOST_URL }}
- name: Download and install the SonarScanner
shell: powershell
run: |
- $path = \\"$HOME/.sonar/sonar-scanner-cli-4.6.2.2472-windows.zip\\"
+ $path = "$HOME/.sonar/sonar-scanner-cli-4.6.2.2472-windows.zip"
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
- (New-Object System.Net.WebClient).DownloadFile(\\"https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-4.6.2.2472-windows.zip\\", $path)
+ (New-Object System.Net.WebClient).DownloadFile("https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-4.6.2.2472-windows.zip", $path)
Add-Type -AssemblyName System.IO.Compression.FileSystem
- [System.IO.Compression.ZipFile]::ExtractToDirectory($path, \\"$HOME/.sonar\\")
+ [System.IO.Compression.ZipFile]::ExtractToDirectory($path, "$HOME/.sonar")
- name: Build and analyse the project
shell: powershell
run: |
- $env:Path += \\";$HOME/.sonar/build-wrapper-win-x86;$HOME/.sonar/sonar-scanner-4.6.2.2472-windows/bin\\"
+ $env:Path += ";$HOME/.sonar/build-wrapper-win-x86;$HOME/.sonar/sonar-scanner-4.6.2.2472-windows/bin"
build-wrapper-win-x86-64 --out-dir bw-output <your clean build command>
- sonar-scanner.bat \\"-Dsonar.cfamily.build-wrapper-output=bw-output\\"
+ sonar-scanner.bat "-Dsonar.cfamily.build-wrapper-output=bw-output"
env:
SONAR_TOKEN: \${{ secrets.SONAR_TOKEN }}
SONAR_HOST_URL: \${{ secrets.SONAR_HOST_URL }}"
diff --git a/server/sonar-web/src/main/js/components/tutorials/github-action/commands/__tests__/__snapshots__/DotNet-test.tsx.snap b/server/sonar-web/src/main/js/components/tutorials/github-action/commands/__tests__/__snapshots__/DotNet-test.tsx.snap
index 485c8da4d80..ae9060f3d71 100644
--- a/server/sonar-web/src/main/js/components/tutorials/github-action/commands/__tests__/__snapshots__/DotNet-test.tsx.snap
+++ b/server/sonar-web/src/main/js/components/tutorials/github-action/commands/__tests__/__snapshots__/DotNet-test.tsx.snap
@@ -28,30 +28,30 @@ jobs:
- name: Cache SonarQube packages
uses: actions/cache@v1
with:
- path: ~\\\\sonar\\\\cache
+ path: ~\\sonar\\cache
key: \${{ runner.os }}-sonar
restore-keys: \${{ runner.os }}-sonar
- name: Cache SonarQube scanner
id: cache-sonar-scanner
uses: actions/cache@v1
with:
- path: .\\\\.sonar\\\\scanner
+ path: .\\.sonar\\scanner
key: \${{ runner.os }}-sonar-scanner
restore-keys: \${{ runner.os }}-sonar-scanner
- name: Install SonarQube scanner
if: steps.cache-sonar-scanner.outputs.cache-hit != 'true'
shell: powershell
run: |
- New-Item -Path .\\\\.sonar\\\\scanner -ItemType Directory
- dotnet tool update dotnet-sonarscanner --tool-path .\\\\.sonar\\\\scanner
+ New-Item -Path .\\.sonar\\scanner -ItemType Directory
+ dotnet tool update dotnet-sonarscanner --tool-path .\\.sonar\\scanner
- name: Build and analyze
env:
GITHUB_TOKEN: \${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
shell: powershell
run: |
- .\\\\.sonar\\\\scanner\\\\dotnet-sonarscanner begin /k:\\"my-project\\" /d:sonar.login=\\"\${{ secrets.SONAR_TOKEN }}\\" /d:sonar.host.url=\\"\${{ secrets.SONAR_HOST_URL }}\\"
+ .\\.sonar\\scanner\\dotnet-sonarscanner begin /k:"my-project" /d:sonar.login="\${{ secrets.SONAR_TOKEN }}" /d:sonar.host.url="\${{ secrets.SONAR_HOST_URL }}"
dotnet build
- .\\\\.sonar\\\\scanner\\\\dotnet-sonarscanner end /d:sonar.login=\\"\${{ secrets.SONAR_TOKEN }}\\""
+ .\\.sonar\\scanner\\dotnet-sonarscanner end /d:sonar.login="\${{ secrets.SONAR_TOKEN }}""
/>
<FinishButton
onClick={[MockFunction]}
@@ -86,30 +86,30 @@ jobs:
- name: Cache SonarQube packages
uses: actions/cache@v1
with:
- path: ~\\\\sonar\\\\cache
+ path: ~\\sonar\\cache
key: \${{ runner.os }}-sonar
restore-keys: \${{ runner.os }}-sonar
- name: Cache SonarQube scanner
id: cache-sonar-scanner
uses: actions/cache@v1
with:
- path: .\\\\.sonar\\\\scanner
+ path: .\\.sonar\\scanner
key: \${{ runner.os }}-sonar-scanner
restore-keys: \${{ runner.os }}-sonar-scanner
- name: Install SonarQube scanner
if: steps.cache-sonar-scanner.outputs.cache-hit != 'true'
shell: powershell
run: |
- New-Item -Path .\\\\.sonar\\\\scanner -ItemType Directory
- dotnet tool update dotnet-sonarscanner --tool-path .\\\\.sonar\\\\scanner
+ New-Item -Path .\\.sonar\\scanner -ItemType Directory
+ dotnet tool update dotnet-sonarscanner --tool-path .\\.sonar\\scanner
- name: Build and analyze
env:
GITHUB_TOKEN: \${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
shell: powershell
run: |
- .\\\\.sonar\\\\scanner\\\\dotnet-sonarscanner begin /k:\\"my-project\\" /d:sonar.login=\\"\${{ secrets.SONAR_TOKEN }}\\" /d:sonar.host.url=\\"\${{ secrets.SONAR_HOST_URL }}\\"
+ .\\.sonar\\scanner\\dotnet-sonarscanner begin /k:"my-project" /d:sonar.login="\${{ secrets.SONAR_TOKEN }}" /d:sonar.host.url="\${{ secrets.SONAR_HOST_URL }}"
dotnet build
- .\\\\.sonar\\\\scanner\\\\dotnet-sonarscanner end /d:sonar.login=\\"\${{ secrets.SONAR_TOKEN }}\\""
+ .\\.sonar\\scanner\\dotnet-sonarscanner end /d:sonar.login="\${{ secrets.SONAR_TOKEN }}""
/>
<FinishButton
onClick={[MockFunction]}
diff --git a/server/sonar-web/src/main/js/components/tutorials/github-action/commands/__tests__/__snapshots__/Gradle-test.tsx.snap b/server/sonar-web/src/main/js/components/tutorials/github-action/commands/__tests__/__snapshots__/Gradle-test.tsx.snap
index 30fbb0dd5d6..10bac0a5d7a 100644
--- a/server/sonar-web/src/main/js/components/tutorials/github-action/commands/__tests__/__snapshots__/Gradle-test.tsx.snap
+++ b/server/sonar-web/src/main/js/components/tutorials/github-action/commands/__tests__/__snapshots__/Gradle-test.tsx.snap
@@ -9,7 +9,7 @@ exports[`should render correctly 1`] = `
defaultMessage="onboarding.tutorial.with.yaml.gradle"
id="onboarding.tutorial.with.yaml.gradle"
values={
- Object {
+ {
"gradle": <React.Fragment>
<code
className="rule"
@@ -30,12 +30,12 @@ exports[`should render correctly 1`] = `
/>
<CodeSnippet
snippet="plugins {
- id \\"org.sonarqube\\" version \\"3.5.0.2730\\"
+ id "org.sonarqube" version "3.5.0.2730"
}
sonar {
properties {
- property \\"sonar.projectKey\\", \\"my-project\\"
+ property "sonar.projectKey", "my-project"
}
}"
/>
@@ -97,7 +97,7 @@ exports[`should render correctly: without branch enabled 1`] = `
defaultMessage="onboarding.tutorial.with.yaml.gradle"
id="onboarding.tutorial.with.yaml.gradle"
values={
- Object {
+ {
"gradle": <React.Fragment>
<code
className="rule"
@@ -118,12 +118,12 @@ exports[`should render correctly: without branch enabled 1`] = `
/>
<CodeSnippet
snippet="plugins {
- id \\"org.sonarqube\\" version \\"3.5.0.2730\\"
+ id "org.sonarqube" version "3.5.0.2730"
}
sonar {
properties {
- property \\"sonar.projectKey\\", \\"my-project\\"
+ property "sonar.projectKey", "my-project"
}
}"
/>
diff --git a/server/sonar-web/src/main/js/components/tutorials/github-action/commands/__tests__/__snapshots__/Others-test.tsx.snap b/server/sonar-web/src/main/js/components/tutorials/github-action/commands/__tests__/__snapshots__/Others-test.tsx.snap
index 5c063040760..ef6da9199ce 100644
--- a/server/sonar-web/src/main/js/components/tutorials/github-action/commands/__tests__/__snapshots__/Others-test.tsx.snap
+++ b/server/sonar-web/src/main/js/components/tutorials/github-action/commands/__tests__/__snapshots__/Others-test.tsx.snap
@@ -4,25 +4,25 @@ exports[`should render correctly 1`] = `
<Fragment>
<DefaultProjectKey
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": [],
}
}
/>
@@ -68,25 +68,25 @@ exports[`should render correctly: without branch enabled 1`] = `
<Fragment>
<DefaultProjectKey
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/components/tutorials/gitlabci/__tests__/__snapshots__/EnvironmentVariablesStep-test.tsx.snap b/server/sonar-web/src/main/js/components/tutorials/gitlabci/__tests__/__snapshots__/EnvironmentVariablesStep-test.tsx.snap
index 656c23dc09f..0c1b0a28f48 100644
--- a/server/sonar-web/src/main/js/components/tutorials/gitlabci/__tests__/__snapshots__/EnvironmentVariablesStep-test.tsx.snap
+++ b/server/sonar-web/src/main/js/components/tutorials/gitlabci/__tests__/__snapshots__/EnvironmentVariablesStep-test.tsx.snap
@@ -24,7 +24,7 @@ exports[`should render correctly: initial content 1`] = `
defaultMessage="onboarding.tutorial.with.gitlab_ci.env_variables.section.description"
id="onboarding.tutorial.with.gitlab_ci.env_variables.section.description"
values={
- Object {
+ {
"link": <strong>
onboarding.tutorial.with.gitlab_ci.env_variables.description.link
</strong>,
@@ -41,7 +41,7 @@ exports[`should render correctly: initial content 1`] = `
defaultMessage="onboarding.tutorial.env_variables"
id="onboarding.tutorial.with.gitlab_ci.env_variables.step1"
values={
- Object {
+ {
"extra": <ClipboardIconButton
copyValue="SONAR_TOKEN"
/>,
@@ -59,37 +59,37 @@ exports[`should render correctly: initial content 1`] = `
</li>
<TokenStepGenerator
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": [],
}
}
/>
@@ -116,7 +116,7 @@ exports[`should render correctly: initial content 1`] = `
defaultMessage="onboarding.tutorial.with.gitlab_ci.env_variables.section2.description"
id="onboarding.tutorial.with.gitlab_ci.env_variables.section2.description"
values={
- Object {
+ {
"link": <strong>
onboarding.tutorial.with.gitlab_ci.env_variables.description.link
</strong>,
@@ -133,7 +133,7 @@ exports[`should render correctly: initial content 1`] = `
defaultMessage="onboarding.tutorial.env_variables"
id="onboarding.tutorial.with.gitlab_ci.env_variables.step1"
values={
- Object {
+ {
"extra": <ClipboardIconButton
copyValue="SONAR_HOST_URL"
/>,
@@ -156,7 +156,7 @@ exports[`should render correctly: initial content 1`] = `
defaultMessage="onboarding.tutorial.env_variables"
id="onboarding.tutorial.with.gitlab_ci.env_variables.step2"
values={
- Object {
+ {
"extra": <ClipboardIconButton
copyValue="http://localhost:9000"
/>,
diff --git a/server/sonar-web/src/main/js/components/tutorials/gitlabci/__tests__/__snapshots__/GitLabCITutorial-test.tsx.snap b/server/sonar-web/src/main/js/components/tutorials/gitlabci/__tests__/__snapshots__/GitLabCITutorial-test.tsx.snap
index 5d6322ac43e..791121124ca 100644
--- a/server/sonar-web/src/main/js/components/tutorials/gitlabci/__tests__/__snapshots__/GitLabCITutorial-test.tsx.snap
+++ b/server/sonar-web/src/main/js/components/tutorials/gitlabci/__tests__/__snapshots__/GitLabCITutorial-test.tsx.snap
@@ -13,25 +13,25 @@ exports[`should render correctly 1`] = `
</div>
<withCLanguageFeature(ProjectKeyStep)
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": [],
}
}
finished={false}
@@ -43,37 +43,37 @@ exports[`should render correctly 1`] = `
<EnvironmentVariablesStep
baseUrl="http://localhost:9000"
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": [],
}
}
finished={false}
diff --git a/server/sonar-web/src/main/js/components/tutorials/gitlabci/__tests__/__snapshots__/ProjectKeyStep-test.tsx.snap b/server/sonar-web/src/main/js/components/tutorials/gitlabci/__tests__/__snapshots__/ProjectKeyStep-test.tsx.snap
index ac40253b2df..08afce936b2 100644
--- a/server/sonar-web/src/main/js/components/tutorials/gitlabci/__tests__/__snapshots__/ProjectKeyStep-test.tsx.snap
+++ b/server/sonar-web/src/main/js/components/tutorials/gitlabci/__tests__/__snapshots__/ProjectKeyStep-test.tsx.snap
@@ -15,7 +15,7 @@ exports[`should render correctly for build tool cfamily 1`] = `
onCheck={[Function]}
optionLabelKey="onboarding.build"
options={
- Array [
+ [
"maven",
"gradle",
"dotnet",
@@ -32,7 +32,7 @@ exports[`should render correctly for build tool cfamily 1`] = `
defaultMessage="onboarding.tutorial.with.gitlab_ci.project_key.cfamily.step2"
id="onboarding.tutorial.with.gitlab_ci.project_key.cfamily.step2"
values={
- Object {
+ {
"file": <React.Fragment>
<code
className="rule"
@@ -77,7 +77,7 @@ exports[`should render correctly for build tool dotnet 1`] = `
onCheck={[Function]}
optionLabelKey="onboarding.build"
options={
- Array [
+ [
"maven",
"gradle",
"dotnet",
@@ -111,7 +111,7 @@ exports[`should render correctly for build tool gradle 1`] = `
onCheck={[Function]}
optionLabelKey="onboarding.build"
options={
- Array [
+ [
"maven",
"gradle",
"dotnet",
@@ -128,7 +128,7 @@ exports[`should render correctly for build tool gradle 1`] = `
defaultMessage="onboarding.tutorial.with.gitlab_ci.project_key.gradle.step2"
id="onboarding.tutorial.with.gitlab_ci.project_key.gradle.step2"
values={
- Object {
+ {
"file": <React.Fragment>
<code
className="rule"
@@ -145,13 +145,13 @@ exports[`should render correctly for build tool gradle 1`] = `
/>
<CodeSnippet
snippet="plugins {
- id \\"org.sonarqube\\" version \\"3.5.0.2730\\"
+ id "org.sonarqube" version "3.5.0.2730"
}
sonar {
properties {
- property \\"sonar.projectKey\\", \\"my-project\\"
- property \\"sonar.qualitygate.wait\\", true
+ property "sonar.projectKey", "my-project"
+ property "sonar.qualitygate.wait", true
}
}"
/>
@@ -180,7 +180,7 @@ exports[`should render correctly for build tool maven 1`] = `
onCheck={[Function]}
optionLabelKey="onboarding.build"
options={
- Array [
+ [
"maven",
"gradle",
"dotnet",
@@ -197,7 +197,7 @@ exports[`should render correctly for build tool maven 1`] = `
defaultMessage="onboarding.tutorial.with.gitlab_ci.project_key.maven.step2"
id="onboarding.tutorial.with.gitlab_ci.project_key.maven.step2"
values={
- Object {
+ {
"file": <React.Fragment>
<code
className="rule"
@@ -242,7 +242,7 @@ exports[`should render correctly for build tool other 1`] = `
onCheck={[Function]}
optionLabelKey="onboarding.build"
options={
- Array [
+ [
"maven",
"gradle",
"dotnet",
@@ -259,7 +259,7 @@ exports[`should render correctly for build tool other 1`] = `
defaultMessage="onboarding.tutorial.with.gitlab_ci.project_key.other.step2"
id="onboarding.tutorial.with.gitlab_ci.project_key.other.step2"
values={
- Object {
+ {
"file": <React.Fragment>
<code
className="rule"
@@ -303,7 +303,7 @@ exports[`should render correctly if C is not available 1`] = `
onCheck={[Function]}
optionLabelKey="onboarding.build"
options={
- Array [
+ [
"maven",
"gradle",
"dotnet",
@@ -341,7 +341,7 @@ exports[`should render correctly: initial content 1`] = `
onCheck={[Function]}
optionLabelKey="onboarding.build"
options={
- Array [
+ [
"maven",
"gradle",
"dotnet",
diff --git a/server/sonar-web/src/main/js/components/tutorials/gitlabci/__tests__/__snapshots__/YmlFileStep-test.tsx.snap b/server/sonar-web/src/main/js/components/tutorials/gitlabci/__tests__/__snapshots__/YmlFileStep-test.tsx.snap
index 24bb911d84a..5285b14187e 100644
--- a/server/sonar-web/src/main/js/components/tutorials/gitlabci/__tests__/__snapshots__/YmlFileStep-test.tsx.snap
+++ b/server/sonar-web/src/main/js/components/tutorials/gitlabci/__tests__/__snapshots__/YmlFileStep-test.tsx.snap
@@ -22,7 +22,7 @@ exports[`should render correctly for build tool cfamily: with branch support 1`]
defaultMessage="onboarding.tutorial.with.gitlab_ci.yml.description"
id="onboarding.tutorial.with.gitlab_ci.yml.description"
values={
- Object {
+ {
"filename": <React.Fragment>
<code
className="rule"
@@ -87,7 +87,7 @@ exports[`should render correctly for build tool cfamily: without branch support
defaultMessage="onboarding.tutorial.with.gitlab_ci.yml.description"
id="onboarding.tutorial.with.gitlab_ci.yml.description"
values={
- Object {
+ {
"filename": <React.Fragment>
<code
className="rule"
@@ -148,7 +148,7 @@ exports[`should render correctly for build tool dotnet: with branch support 1`]
defaultMessage="onboarding.tutorial.with.gitlab_ci.yml.description"
id="onboarding.tutorial.with.gitlab_ci.yml.description"
values={
- Object {
+ {
"filename": <React.Fragment>
<code
className="rule"
@@ -209,7 +209,7 @@ exports[`should render correctly for build tool dotnet: without branch support 1
defaultMessage="onboarding.tutorial.with.gitlab_ci.yml.description"
id="onboarding.tutorial.with.gitlab_ci.yml.description"
values={
- Object {
+ {
"filename": <React.Fragment>
<code
className="rule"
@@ -270,7 +270,7 @@ exports[`should render correctly for build tool gradle: with branch support 1`]
defaultMessage="onboarding.tutorial.with.gitlab_ci.yml.description"
id="onboarding.tutorial.with.gitlab_ci.yml.description"
values={
- Object {
+ {
"filename": <React.Fragment>
<code
className="rule"
@@ -331,7 +331,7 @@ exports[`should render correctly for build tool gradle: without branch support 1
defaultMessage="onboarding.tutorial.with.gitlab_ci.yml.description"
id="onboarding.tutorial.with.gitlab_ci.yml.description"
values={
- Object {
+ {
"filename": <React.Fragment>
<code
className="rule"
@@ -392,7 +392,7 @@ exports[`should render correctly for build tool maven: with branch support 1`] =
defaultMessage="onboarding.tutorial.with.gitlab_ci.yml.description"
id="onboarding.tutorial.with.gitlab_ci.yml.description"
values={
- Object {
+ {
"filename": <React.Fragment>
<code
className="rule"
@@ -453,7 +453,7 @@ exports[`should render correctly for build tool maven: without branch support 1`
defaultMessage="onboarding.tutorial.with.gitlab_ci.yml.description"
id="onboarding.tutorial.with.gitlab_ci.yml.description"
values={
- Object {
+ {
"filename": <React.Fragment>
<code
className="rule"
@@ -514,7 +514,7 @@ exports[`should render correctly for build tool other: with branch support 1`] =
defaultMessage="onboarding.tutorial.with.gitlab_ci.yml.description"
id="onboarding.tutorial.with.gitlab_ci.yml.description"
values={
- Object {
+ {
"filename": <React.Fragment>
<code
className="rule"
@@ -575,7 +575,7 @@ exports[`should render correctly for build tool other: without branch support 1`
defaultMessage="onboarding.tutorial.with.gitlab_ci.yml.description"
id="onboarding.tutorial.with.gitlab_ci.yml.description"
values={
- Object {
+ {
"filename": <React.Fragment>
<code
className="rule"
diff --git a/server/sonar-web/src/main/js/components/tutorials/gitlabci/commands/__tests__/__snapshots__/PipeCommand-test.tsx.snap b/server/sonar-web/src/main/js/components/tutorials/gitlabci/commands/__tests__/__snapshots__/PipeCommand-test.tsx.snap
index 920cdd263c7..daa8d3f8535 100644
--- a/server/sonar-web/src/main/js/components/tutorials/gitlabci/commands/__tests__/__snapshots__/PipeCommand-test.tsx.snap
+++ b/server/sonar-web/src/main/js/components/tutorials/gitlabci/commands/__tests__/__snapshots__/PipeCommand-test.tsx.snap
@@ -82,20 +82,20 @@ exports[`should render correctly for dotnet: branches enabled 1`] = `
snippet="sonarqube-check:
image: mcr.microsoft.com/dotnet/core/sdk:latest
variables:
- SONAR_USER_HOME: \\"\${CI_PROJECT_DIR}/.sonar\\" # Defines the location of the analysis task cache
- GIT_DEPTH: \\"0\\" # Tells git to fetch all the branches of the project, required by the analysis task
+ SONAR_USER_HOME: "\${CI_PROJECT_DIR}/.sonar" # Defines the location of the analysis task cache
+ GIT_DEPTH: "0" # Tells git to fetch all the branches of the project, required by the analysis task
cache:
- key: \\"\${CI_JOB_NAME}\\"
+ key: "\${CI_JOB_NAME}"
paths:
- .sonar/cache
script:
- - \\"apt-get update\\"
- - \\"apt-get install --yes openjdk-11-jre\\"
- - \\"dotnet tool install --global dotnet-sonarscanner\\"
- - \\"export PATH=\\\\\\"$PATH:$HOME/.dotnet/tools\\\\\\"\\"
- - \\"dotnet sonarscanner begin /k:\\\\\\"test\\\\\\" /d:sonar.login=\\\\\\"$SONAR_TOKEN\\\\\\" /d:\\\\\\"sonar.host.url=$SONAR_HOST_URL\\\\\\" \\"
- - \\"dotnet build\\"
- - \\"dotnet sonarscanner end /d:sonar.login=\\\\\\"$SONAR_TOKEN\\\\\\"\\"
+ - "apt-get update"
+ - "apt-get install --yes openjdk-11-jre"
+ - "dotnet tool install --global dotnet-sonarscanner"
+ - "export PATH=\\"$PATH:$HOME/.dotnet/tools\\""
+ - "dotnet sonarscanner begin /k:\\"test\\" /d:sonar.login=\\"$SONAR_TOKEN\\" /d:\\"sonar.host.url=$SONAR_HOST_URL\\" "
+ - "dotnet build"
+ - "dotnet sonarscanner end /d:sonar.login=\\"$SONAR_TOKEN\\""
allow_failure: true
only:
- merge_requests
@@ -112,20 +112,20 @@ exports[`should render correctly for dotnet: branches not enabled 1`] = `
snippet="sonarqube-check:
image: mcr.microsoft.com/dotnet/core/sdk:latest
variables:
- SONAR_USER_HOME: \\"\${CI_PROJECT_DIR}/.sonar\\" # Defines the location of the analysis task cache
- GIT_DEPTH: \\"0\\" # Tells git to fetch all the branches of the project, required by the analysis task
+ SONAR_USER_HOME: "\${CI_PROJECT_DIR}/.sonar" # Defines the location of the analysis task cache
+ GIT_DEPTH: "0" # Tells git to fetch all the branches of the project, required by the analysis task
cache:
- key: \\"\${CI_JOB_NAME}\\"
+ key: "\${CI_JOB_NAME}"
paths:
- .sonar/cache
script:
- - \\"apt-get update\\"
- - \\"apt-get install --yes openjdk-11-jre\\"
- - \\"dotnet tool install --global dotnet-sonarscanner\\"
- - \\"export PATH=\\\\\\"$PATH:$HOME/.dotnet/tools\\\\\\"\\"
- - \\"dotnet sonarscanner begin /k:\\\\\\"test\\\\\\" /d:sonar.login=\\\\\\"$SONAR_TOKEN\\\\\\" /d:\\\\\\"sonar.host.url=$SONAR_HOST_URL\\\\\\" \\"
- - \\"dotnet build\\"
- - \\"dotnet sonarscanner end /d:sonar.login=\\\\\\"$SONAR_TOKEN\\\\\\"\\"
+ - "apt-get update"
+ - "apt-get install --yes openjdk-11-jre"
+ - "dotnet tool install --global dotnet-sonarscanner"
+ - "export PATH=\\"$PATH:$HOME/.dotnet/tools\\""
+ - "dotnet sonarscanner begin /k:\\"test\\" /d:sonar.login=\\"$SONAR_TOKEN\\" /d:\\"sonar.host.url=$SONAR_HOST_URL\\" "
+ - "dotnet build"
+ - "dotnet sonarscanner end /d:sonar.login=\\"$SONAR_TOKEN\\""
allow_failure: true
only:
- merge_requests
@@ -142,10 +142,10 @@ exports[`should render correctly for gradle: branches enabled 1`] = `
snippet="sonarqube-check:
image: gradle:jre11-slim
variables:
- SONAR_USER_HOME: \\"\${CI_PROJECT_DIR}/.sonar\\" # Defines the location of the analysis task cache
- GIT_DEPTH: \\"0\\" # Tells git to fetch all the branches of the project, required by the analysis task
+ SONAR_USER_HOME: "\${CI_PROJECT_DIR}/.sonar" # Defines the location of the analysis task cache
+ GIT_DEPTH: "0" # Tells git to fetch all the branches of the project, required by the analysis task
cache:
- key: \\"\${CI_JOB_NAME}\\"
+ key: "\${CI_JOB_NAME}"
paths:
- .sonar/cache
script: gradle sonar
@@ -165,10 +165,10 @@ exports[`should render correctly for gradle: branches not enabled 1`] = `
snippet="sonarqube-check:
image: gradle:jre11-slim
variables:
- SONAR_USER_HOME: \\"\${CI_PROJECT_DIR}/.sonar\\" # Defines the location of the analysis task cache
- GIT_DEPTH: \\"0\\" # Tells git to fetch all the branches of the project, required by the analysis task
+ SONAR_USER_HOME: "\${CI_PROJECT_DIR}/.sonar" # Defines the location of the analysis task cache
+ GIT_DEPTH: "0" # Tells git to fetch all the branches of the project, required by the analysis task
cache:
- key: \\"\${CI_JOB_NAME}\\"
+ key: "\${CI_JOB_NAME}"
paths:
- .sonar/cache
script: gradle sonar
@@ -188,10 +188,10 @@ exports[`should render correctly for maven: branches enabled 1`] = `
snippet="sonarqube-check:
image: maven:3.6.3-jdk-11
variables:
- SONAR_USER_HOME: \\"\${CI_PROJECT_DIR}/.sonar\\" # Defines the location of the analysis task cache
- GIT_DEPTH: \\"0\\" # Tells git to fetch all the branches of the project, required by the analysis task
+ SONAR_USER_HOME: "\${CI_PROJECT_DIR}/.sonar" # Defines the location of the analysis task cache
+ GIT_DEPTH: "0" # Tells git to fetch all the branches of the project, required by the analysis task
cache:
- key: \\"\${CI_JOB_NAME}\\"
+ key: "\${CI_JOB_NAME}"
paths:
- .sonar/cache
script:
@@ -212,10 +212,10 @@ exports[`should render correctly for maven: branches not enabled 1`] = `
snippet="sonarqube-check:
image: maven:3.6.3-jdk-11
variables:
- SONAR_USER_HOME: \\"\${CI_PROJECT_DIR}/.sonar\\" # Defines the location of the analysis task cache
- GIT_DEPTH: \\"0\\" # Tells git to fetch all the branches of the project, required by the analysis task
+ SONAR_USER_HOME: "\${CI_PROJECT_DIR}/.sonar" # Defines the location of the analysis task cache
+ GIT_DEPTH: "0" # Tells git to fetch all the branches of the project, required by the analysis task
cache:
- key: \\"\${CI_JOB_NAME}\\"
+ key: "\${CI_JOB_NAME}"
paths:
- .sonar/cache
script:
@@ -236,12 +236,12 @@ exports[`should render correctly for other: branches enabled 1`] = `
snippet="sonarqube-check:
image:
name: sonarsource/sonar-scanner-cli:latest
- entrypoint: [\\"\\"]
+ entrypoint: [""]
variables:
- SONAR_USER_HOME: \\"\${CI_PROJECT_DIR}/.sonar\\" # Defines the location of the analysis task cache
- GIT_DEPTH: \\"0\\" # Tells git to fetch all the branches of the project, required by the analysis task
+ SONAR_USER_HOME: "\${CI_PROJECT_DIR}/.sonar" # Defines the location of the analysis task cache
+ GIT_DEPTH: "0" # Tells git to fetch all the branches of the project, required by the analysis task
cache:
- key: \\"\${CI_JOB_NAME}\\"
+ key: "\${CI_JOB_NAME}"
paths:
- .sonar/cache
script:
@@ -262,12 +262,12 @@ exports[`should render correctly for other: branches not enabled 1`] = `
snippet="sonarqube-check:
image:
name: sonarsource/sonar-scanner-cli:latest
- entrypoint: [\\"\\"]
+ entrypoint: [""]
variables:
- SONAR_USER_HOME: \\"\${CI_PROJECT_DIR}/.sonar\\" # Defines the location of the analysis task cache
- GIT_DEPTH: \\"0\\" # Tells git to fetch all the branches of the project, required by the analysis task
+ SONAR_USER_HOME: "\${CI_PROJECT_DIR}/.sonar" # Defines the location of the analysis task cache
+ GIT_DEPTH: "0" # Tells git to fetch all the branches of the project, required by the analysis task
cache:
- key: \\"\${CI_JOB_NAME}\\"
+ key: "\${CI_JOB_NAME}"
paths:
- .sonar/cache
script:
diff --git a/server/sonar-web/src/main/js/components/tutorials/jenkins/__tests__/__snapshots__/JenkinsTutorial-test.tsx.snap b/server/sonar-web/src/main/js/components/tutorials/jenkins/__tests__/__snapshots__/JenkinsTutorial-test.tsx.snap
index 925ce8e6375..d86ca3f98be 100644
--- a/server/sonar-web/src/main/js/components/tutorials/jenkins/__tests__/__snapshots__/JenkinsTutorial-test.tsx.snap
+++ b/server/sonar-web/src/main/js/components/tutorials/jenkins/__tests__/__snapshots__/JenkinsTutorial-test.tsx.snap
@@ -34,7 +34,7 @@ exports[`should render correctly: branches not enabled 1`] = `
onOpen={[Function]}
open={false}
projectBinding={
- Object {
+ {
"alm": "bitbucket",
"key": "foo",
"monorepo": true,
@@ -46,25 +46,25 @@ exports[`should render correctly: branches not enabled 1`] = `
<withCLanguageFeature(JenkinsfileStep)
baseUrl=""
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": [],
}
}
finished={false}
@@ -107,7 +107,7 @@ exports[`should render correctly: default 1`] = `
onOpen={[Function]}
open={false}
projectBinding={
- Object {
+ {
"alm": "bitbucket",
"key": "foo",
"monorepo": true,
@@ -124,7 +124,7 @@ exports[`should render correctly: default 1`] = `
onOpen={[Function]}
open={false}
projectBinding={
- Object {
+ {
"alm": "bitbucket",
"key": "foo",
"monorepo": true,
@@ -136,25 +136,25 @@ exports[`should render correctly: default 1`] = `
<withCLanguageFeature(JenkinsfileStep)
baseUrl=""
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": [],
}
}
finished={false}
diff --git a/server/sonar-web/src/main/js/components/tutorials/jenkins/__tests__/__snapshots__/JenkinsfileStep-test.tsx.snap b/server/sonar-web/src/main/js/components/tutorials/jenkins/__tests__/__snapshots__/JenkinsfileStep-test.tsx.snap
index 35eed831440..1dba24aa64b 100644
--- a/server/sonar-web/src/main/js/components/tutorials/jenkins/__tests__/__snapshots__/JenkinsfileStep-test.tsx.snap
+++ b/server/sonar-web/src/main/js/components/tutorials/jenkins/__tests__/__snapshots__/JenkinsfileStep-test.tsx.snap
@@ -15,7 +15,7 @@ exports[`should render correctly for .NET 1`] = `
onCheck={[Function]}
optionLabelKey="onboarding.build"
options={
- Array [
+ [
"maven",
"gradle",
"dotnet",
@@ -27,25 +27,25 @@ exports[`should render correctly for .NET 1`] = `
<DotNet
baseUrl="nice_url"
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": [],
}
}
onDone={[MockFunction]}
@@ -69,7 +69,7 @@ exports[`should render correctly for Gradle 1`] = `
onCheck={[Function]}
optionLabelKey="onboarding.build"
options={
- Array [
+ [
"maven",
"gradle",
"dotnet",
@@ -81,25 +81,25 @@ exports[`should render correctly for Gradle 1`] = `
<Gradle
baseUrl="nice_url"
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": [],
}
}
onDone={[MockFunction]}
@@ -123,7 +123,7 @@ exports[`should render correctly for Maven 1`] = `
onCheck={[Function]}
optionLabelKey="onboarding.build"
options={
- Array [
+ [
"maven",
"gradle",
"dotnet",
@@ -135,25 +135,25 @@ exports[`should render correctly for Maven 1`] = `
<Maven
baseUrl="nice_url"
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": [],
}
}
onDone={[MockFunction]}
@@ -177,7 +177,7 @@ exports[`should render correctly for Other 1`] = `
onCheck={[Function]}
optionLabelKey="onboarding.build"
options={
- Array [
+ [
"maven",
"gradle",
"dotnet",
@@ -189,25 +189,25 @@ exports[`should render correctly for Other 1`] = `
<Other
baseUrl="nice_url"
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": [],
}
}
onDone={[MockFunction]}
@@ -252,7 +252,7 @@ exports[`should render correctly: initial content 1`] = `
onCheck={[Function]}
optionLabelKey="onboarding.build"
options={
- Array [
+ [
"maven",
"gradle",
"dotnet",
diff --git a/server/sonar-web/src/main/js/components/tutorials/jenkins/__tests__/__snapshots__/MultiBranchPipelineStep-test.tsx.snap b/server/sonar-web/src/main/js/components/tutorials/jenkins/__tests__/__snapshots__/MultiBranchPipelineStep-test.tsx.snap
index 5d667b9da78..41c13135736 100644
--- a/server/sonar-web/src/main/js/components/tutorials/jenkins/__tests__/__snapshots__/MultiBranchPipelineStep-test.tsx.snap
+++ b/server/sonar-web/src/main/js/components/tutorials/jenkins/__tests__/__snapshots__/MultiBranchPipelineStep-test.tsx.snap
@@ -26,7 +26,7 @@ exports[`should render correctly: content for bitbucket 1`] = `
<li>
<SentenceWithHighlights
highlightKeys={
- Array [
+ [
"new_item",
"type",
]
@@ -37,7 +37,7 @@ exports[`should render correctly: content for bitbucket 1`] = `
<li>
<SentenceWithHighlights
highlightKeys={
- Array [
+ [
"tab",
"source",
]
@@ -100,7 +100,7 @@ exports[`should render correctly: content for bitbucket 1`] = `
<li>
<SentenceWithHighlights
highlightKeys={
- Array [
+ [
"add",
"ref_spec",
]
@@ -111,7 +111,7 @@ exports[`should render correctly: content for bitbucket 1`] = `
<li>
<SentenceWithHighlights
highlightKeys={
- Array [
+ [
"ref_spec",
]
}
@@ -136,7 +136,7 @@ exports[`should render correctly: content for bitbucket 1`] = `
<li>
<SentenceWithHighlights
highlightKeys={
- Array [
+ [
"tab",
]
}
@@ -160,7 +160,7 @@ exports[`should render correctly: content for bitbucket 1`] = `
<li>
<SentenceWithHighlights
highlightKeys={
- Array [
+ [
"save",
]
}
@@ -195,7 +195,7 @@ exports[`should render correctly: content for bitbucket cloud 1`] = `
<li>
<SentenceWithHighlights
highlightKeys={
- Array [
+ [
"new_item",
"type",
]
@@ -206,7 +206,7 @@ exports[`should render correctly: content for bitbucket cloud 1`] = `
<li>
<SentenceWithHighlights
highlightKeys={
- Array [
+ [
"tab",
"source",
]
@@ -269,7 +269,7 @@ exports[`should render correctly: content for bitbucket cloud 1`] = `
<li>
<SentenceWithHighlights
highlightKeys={
- Array [
+ [
"add",
"ref_spec",
]
@@ -280,7 +280,7 @@ exports[`should render correctly: content for bitbucket cloud 1`] = `
<li>
<SentenceWithHighlights
highlightKeys={
- Array [
+ [
"ref_spec",
]
}
@@ -305,7 +305,7 @@ exports[`should render correctly: content for bitbucket cloud 1`] = `
<li>
<SentenceWithHighlights
highlightKeys={
- Array [
+ [
"tab",
]
}
@@ -329,7 +329,7 @@ exports[`should render correctly: content for bitbucket cloud 1`] = `
<li>
<SentenceWithHighlights
highlightKeys={
- Array [
+ [
"save",
]
}
@@ -364,7 +364,7 @@ exports[`should render correctly: content for bitbucket cloud, no binding 1`] =
<li>
<SentenceWithHighlights
highlightKeys={
- Array [
+ [
"new_item",
"type",
]
@@ -375,7 +375,7 @@ exports[`should render correctly: content for bitbucket cloud, no binding 1`] =
<li>
<SentenceWithHighlights
highlightKeys={
- Array [
+ [
"tab",
"source",
]
@@ -436,7 +436,7 @@ exports[`should render correctly: content for bitbucket cloud, no binding 1`] =
<li>
<SentenceWithHighlights
highlightKeys={
- Array [
+ [
"add",
"ref_spec",
]
@@ -447,7 +447,7 @@ exports[`should render correctly: content for bitbucket cloud, no binding 1`] =
<li>
<SentenceWithHighlights
highlightKeys={
- Array [
+ [
"ref_spec",
]
}
@@ -472,7 +472,7 @@ exports[`should render correctly: content for bitbucket cloud, no binding 1`] =
<li>
<SentenceWithHighlights
highlightKeys={
- Array [
+ [
"tab",
]
}
@@ -496,7 +496,7 @@ exports[`should render correctly: content for bitbucket cloud, no binding 1`] =
<li>
<SentenceWithHighlights
highlightKeys={
- Array [
+ [
"save",
]
}
@@ -531,7 +531,7 @@ exports[`should render correctly: content for bitbucket, no binding 1`] = `
<li>
<SentenceWithHighlights
highlightKeys={
- Array [
+ [
"new_item",
"type",
]
@@ -542,7 +542,7 @@ exports[`should render correctly: content for bitbucket, no binding 1`] = `
<li>
<SentenceWithHighlights
highlightKeys={
- Array [
+ [
"tab",
"source",
]
@@ -603,7 +603,7 @@ exports[`should render correctly: content for bitbucket, no binding 1`] = `
<li>
<SentenceWithHighlights
highlightKeys={
- Array [
+ [
"add",
"ref_spec",
]
@@ -614,7 +614,7 @@ exports[`should render correctly: content for bitbucket, no binding 1`] = `
<li>
<SentenceWithHighlights
highlightKeys={
- Array [
+ [
"ref_spec",
]
}
@@ -639,7 +639,7 @@ exports[`should render correctly: content for bitbucket, no binding 1`] = `
<li>
<SentenceWithHighlights
highlightKeys={
- Array [
+ [
"tab",
]
}
@@ -663,7 +663,7 @@ exports[`should render correctly: content for bitbucket, no binding 1`] = `
<li>
<SentenceWithHighlights
highlightKeys={
- Array [
+ [
"save",
]
}
@@ -698,7 +698,7 @@ exports[`should render correctly: content for github 1`] = `
<li>
<SentenceWithHighlights
highlightKeys={
- Array [
+ [
"new_item",
"type",
]
@@ -709,7 +709,7 @@ exports[`should render correctly: content for github 1`] = `
<li>
<SentenceWithHighlights
highlightKeys={
- Array [
+ [
"tab",
"source",
]
@@ -761,7 +761,7 @@ exports[`should render correctly: content for github 1`] = `
<li>
<SentenceWithHighlights
highlightKeys={
- Array [
+ [
"add",
"ref_spec",
]
@@ -772,7 +772,7 @@ exports[`should render correctly: content for github 1`] = `
<li>
<SentenceWithHighlights
highlightKeys={
- Array [
+ [
"ref_spec",
]
}
@@ -797,7 +797,7 @@ exports[`should render correctly: content for github 1`] = `
<li>
<SentenceWithHighlights
highlightKeys={
- Array [
+ [
"tab",
]
}
@@ -821,7 +821,7 @@ exports[`should render correctly: content for github 1`] = `
<li>
<SentenceWithHighlights
highlightKeys={
- Array [
+ [
"save",
]
}
@@ -856,7 +856,7 @@ exports[`should render correctly: content for github, no binding 1`] = `
<li>
<SentenceWithHighlights
highlightKeys={
- Array [
+ [
"new_item",
"type",
]
@@ -867,7 +867,7 @@ exports[`should render correctly: content for github, no binding 1`] = `
<li>
<SentenceWithHighlights
highlightKeys={
- Array [
+ [
"tab",
"source",
]
@@ -918,7 +918,7 @@ exports[`should render correctly: content for github, no binding 1`] = `
<li>
<SentenceWithHighlights
highlightKeys={
- Array [
+ [
"add",
"ref_spec",
]
@@ -929,7 +929,7 @@ exports[`should render correctly: content for github, no binding 1`] = `
<li>
<SentenceWithHighlights
highlightKeys={
- Array [
+ [
"ref_spec",
]
}
@@ -954,7 +954,7 @@ exports[`should render correctly: content for github, no binding 1`] = `
<li>
<SentenceWithHighlights
highlightKeys={
- Array [
+ [
"tab",
]
}
@@ -978,7 +978,7 @@ exports[`should render correctly: content for github, no binding 1`] = `
<li>
<SentenceWithHighlights
highlightKeys={
- Array [
+ [
"save",
]
}
@@ -1013,7 +1013,7 @@ exports[`should render correctly: content for gitlab 1`] = `
<li>
<SentenceWithHighlights
highlightKeys={
- Array [
+ [
"new_item",
"type",
]
@@ -1024,7 +1024,7 @@ exports[`should render correctly: content for gitlab 1`] = `
<li>
<SentenceWithHighlights
highlightKeys={
- Array [
+ [
"tab",
"source",
]
@@ -1080,7 +1080,7 @@ exports[`should render correctly: content for gitlab 1`] = `
<li>
<SentenceWithHighlights
highlightKeys={
- Array [
+ [
"add",
"ref_spec",
]
@@ -1091,7 +1091,7 @@ exports[`should render correctly: content for gitlab 1`] = `
<li>
<SentenceWithHighlights
highlightKeys={
- Array [
+ [
"ref_spec",
]
}
@@ -1116,7 +1116,7 @@ exports[`should render correctly: content for gitlab 1`] = `
<li>
<SentenceWithHighlights
highlightKeys={
- Array [
+ [
"tab",
]
}
@@ -1140,7 +1140,7 @@ exports[`should render correctly: content for gitlab 1`] = `
<li>
<SentenceWithHighlights
highlightKeys={
- Array [
+ [
"save",
]
}
diff --git a/server/sonar-web/src/main/js/components/tutorials/jenkins/__tests__/__snapshots__/PipelineStep-test.tsx.snap b/server/sonar-web/src/main/js/components/tutorials/jenkins/__tests__/__snapshots__/PipelineStep-test.tsx.snap
index 3e9317b8ccb..659205b0726 100644
--- a/server/sonar-web/src/main/js/components/tutorials/jenkins/__tests__/__snapshots__/PipelineStep-test.tsx.snap
+++ b/server/sonar-web/src/main/js/components/tutorials/jenkins/__tests__/__snapshots__/PipelineStep-test.tsx.snap
@@ -26,7 +26,7 @@ exports[`should render correctly: content 1`] = `
<li>
<SentenceWithHighlights
highlightKeys={
- Array [
+ [
"new_item",
"type",
]
@@ -37,7 +37,7 @@ exports[`should render correctly: content 1`] = `
<li>
<SentenceWithHighlights
highlightKeys={
- Array [
+ [
"tab",
"option",
]
@@ -48,7 +48,7 @@ exports[`should render correctly: content 1`] = `
<li>
<SentenceWithHighlights
highlightKeys={
- Array [
+ [
"tab",
]
}
@@ -65,7 +65,7 @@ exports[`should render correctly: content 1`] = `
<li>
<SentenceWithHighlights
highlightKeys={
- Array [
+ [
"label",
"branches_to_build",
]
@@ -83,7 +83,7 @@ exports[`should render correctly: content 1`] = `
<li>
<SentenceWithHighlights
highlightKeys={
- Array [
+ [
"save",
]
}
@@ -118,7 +118,7 @@ exports[`should render correctly: gitlab content 1`] = `
<li>
<SentenceWithHighlights
highlightKeys={
- Array [
+ [
"new_item",
"type",
]
@@ -130,7 +130,7 @@ exports[`should render correctly: gitlab content 1`] = `
<React.Fragment>
<SentenceWithHighlights
highlightKeys={
- Array [
+ [
"tab",
"option",
]
@@ -143,7 +143,7 @@ exports[`should render correctly: gitlab content 1`] = `
<li>
<SentenceWithHighlights
highlightKeys={
- Array [
+ [
"triggers",
"push_events",
]
@@ -154,7 +154,7 @@ exports[`should render correctly: gitlab content 1`] = `
<li>
<SentenceWithHighlights
highlightKeys={
- Array [
+ [
"advanced",
]
}
@@ -164,7 +164,7 @@ exports[`should render correctly: gitlab content 1`] = `
<li>
<SentenceWithHighlights
highlightKeys={
- Array [
+ [
"secret_token",
"generate",
]
@@ -178,7 +178,7 @@ exports[`should render correctly: gitlab content 1`] = `
<li>
<SentenceWithHighlights
highlightKeys={
- Array [
+ [
"tab",
]
}
@@ -195,7 +195,7 @@ exports[`should render correctly: gitlab content 1`] = `
<li>
<SentenceWithHighlights
highlightKeys={
- Array [
+ [
"label",
"branches_to_build",
]
@@ -213,7 +213,7 @@ exports[`should render correctly: gitlab content 1`] = `
<li>
<SentenceWithHighlights
highlightKeys={
- Array [
+ [
"save",
]
}
diff --git a/server/sonar-web/src/main/js/components/tutorials/jenkins/__tests__/__snapshots__/PreRequisitesStep-test.tsx.snap b/server/sonar-web/src/main/js/components/tutorials/jenkins/__tests__/__snapshots__/PreRequisitesStep-test.tsx.snap
index da70e9fc12d..1e17f87e2c0 100644
--- a/server/sonar-web/src/main/js/components/tutorials/jenkins/__tests__/__snapshots__/PreRequisitesStep-test.tsx.snap
+++ b/server/sonar-web/src/main/js/components/tutorials/jenkins/__tests__/__snapshots__/PreRequisitesStep-test.tsx.snap
@@ -20,7 +20,7 @@ exports[`should render correctly: content 1`] = `
>
<SentenceWithHighlights
highlightKeys={
- Array [
+ [
"installed",
"configured",
]
@@ -45,7 +45,7 @@ exports[`should render correctly: content 1`] = `
defaultMessage="onboarding.tutorial.with.jenkins.prereqs.step_by_step_guide"
id="onboarding.tutorial.with.jenkins.prereqs.step_by_step_guide"
values={
- Object {
+ {
"link": <withAppStateContext(DocLink)
to="/analyzing-source-code/ci-integration/jenkins-integration/"
>
@@ -82,7 +82,7 @@ exports[`should render correctly: content for branches disabled 1`] = `
>
<SentenceWithHighlights
highlightKeys={
- Array [
+ [
"installed",
"configured",
]
@@ -104,7 +104,7 @@ exports[`should render correctly: content for branches disabled 1`] = `
defaultMessage="onboarding.tutorial.with.jenkins.prereqs.step_by_step_guide"
id="onboarding.tutorial.with.jenkins.prereqs.step_by_step_guide"
values={
- Object {
+ {
"link": <withAppStateContext(DocLink)
to="/analyzing-source-code/ci-integration/jenkins-integration/"
>
@@ -141,7 +141,7 @@ exports[`should render correctly: content for branches disabled, gitlab 1`] = `
>
<SentenceWithHighlights
highlightKeys={
- Array [
+ [
"installed",
"configured",
]
@@ -166,7 +166,7 @@ exports[`should render correctly: content for branches disabled, gitlab 1`] = `
defaultMessage="onboarding.tutorial.with.jenkins.prereqs.step_by_step_guide"
id="onboarding.tutorial.with.jenkins.prereqs.step_by_step_guide"
values={
- Object {
+ {
"link": <withAppStateContext(DocLink)
to="/analyzing-source-code/ci-integration/jenkins-integration/"
>
diff --git a/server/sonar-web/src/main/js/components/tutorials/jenkins/__tests__/__snapshots__/SelectAlmStep-test.tsx.snap b/server/sonar-web/src/main/js/components/tutorials/jenkins/__tests__/__snapshots__/SelectAlmStep-test.tsx.snap
index 087ba3fe608..fb76d738b05 100644
--- a/server/sonar-web/src/main/js/components/tutorials/jenkins/__tests__/__snapshots__/SelectAlmStep-test.tsx.snap
+++ b/server/sonar-web/src/main/js/components/tutorials/jenkins/__tests__/__snapshots__/SelectAlmStep-test.tsx.snap
@@ -19,20 +19,20 @@ exports[`should render correctly: form, default 1`] = `
label="onboarding.tutorial.with.jenkins.alm_selection.title"
onCheck={[MockFunction]}
options={
- Array [
- Object {
+ [
+ {
"label": "alm.bitbucketcloud.long",
"value": "bitbucketcloud",
},
- Object {
+ {
"label": "alm.bitbucket",
"value": "bitbucket",
},
- Object {
+ {
"label": "alm.github",
"value": "github",
},
- Object {
+ {
"label": "alm.gitlab",
"value": "gitlab",
},
@@ -50,20 +50,20 @@ exports[`should render correctly: form, with alm 1`] = `
label="onboarding.tutorial.with.jenkins.alm_selection.title"
onCheck={[MockFunction]}
options={
- Array [
- Object {
+ [
+ {
"label": "alm.bitbucketcloud.long",
"value": "bitbucketcloud",
},
- Object {
+ {
"label": "alm.bitbucket",
"value": "bitbucket",
},
- Object {
+ {
"label": "alm.github",
"value": "github",
},
- Object {
+ {
"label": "alm.gitlab",
"value": "gitlab",
},
diff --git a/server/sonar-web/src/main/js/components/tutorials/jenkins/__tests__/__snapshots__/WebhookStep-test.tsx.snap b/server/sonar-web/src/main/js/components/tutorials/jenkins/__tests__/__snapshots__/WebhookStep-test.tsx.snap
index 4e2ce5adcff..b342803bd14 100644
--- a/server/sonar-web/src/main/js/components/tutorials/jenkins/__tests__/__snapshots__/WebhookStep-test.tsx.snap
+++ b/server/sonar-web/src/main/js/components/tutorials/jenkins/__tests__/__snapshots__/WebhookStep-test.tsx.snap
@@ -11,7 +11,7 @@ exports[`should render correctly for azure: content 1`] = `
defaultMessage="onboarding.tutorial.with.jenkins.webhook.intro.sentence"
id="onboarding.tutorial.with.jenkins.webhook.intro.sentence"
values={
- Object {
+ {
"link": <ButtonLink
onClick={[MockFunction]}
>
@@ -58,7 +58,7 @@ exports[`should render correctly for bitbucket: content 1`] = `
defaultMessage="onboarding.tutorial.with.jenkins.webhook.intro.sentence"
id="onboarding.tutorial.with.jenkins.webhook.intro.sentence"
values={
- Object {
+ {
"link": <ButtonLink
onClick={[MockFunction]}
>
@@ -74,14 +74,14 @@ exports[`should render correctly for bitbucket: content 1`] = `
<WebhookStepBitbucket
alm="bitbucket"
almBinding={
- Object {
+ {
"alm": "github",
"key": "key",
}
}
branchesEnabled={true}
projectBinding={
- Object {
+ {
"alm": "bitbucket",
"key": "foo",
"monorepo": true,
@@ -125,7 +125,7 @@ exports[`should render correctly for bitbucketcloud: content 1`] = `
defaultMessage="onboarding.tutorial.with.jenkins.webhook.intro.sentence"
id="onboarding.tutorial.with.jenkins.webhook.intro.sentence"
values={
- Object {
+ {
"link": <ButtonLink
onClick={[MockFunction]}
>
@@ -141,14 +141,14 @@ exports[`should render correctly for bitbucketcloud: content 1`] = `
<WebhookStepBitbucket
alm="bitbucketcloud"
almBinding={
- Object {
+ {
"alm": "github",
"key": "key",
}
}
branchesEnabled={true}
projectBinding={
- Object {
+ {
"alm": "bitbucketcloud",
"key": "foo",
"monorepo": true,
@@ -191,7 +191,7 @@ exports[`should render correctly for github: content 1`] = `
defaultMessage="onboarding.tutorial.with.jenkins.webhook.intro.sentence"
id="onboarding.tutorial.with.jenkins.webhook.intro.sentence"
values={
- Object {
+ {
"link": <ButtonLink
onClick={[MockFunction]}
>
@@ -206,14 +206,14 @@ exports[`should render correctly for github: content 1`] = `
>
<WebhookStepGithub
almBinding={
- Object {
+ {
"alm": "github",
"key": "key",
}
}
branchesEnabled={true}
projectBinding={
- Object {
+ {
"alm": "github",
"key": "foo",
"monorepo": true,
@@ -256,7 +256,7 @@ exports[`should render correctly for gitlab: content 1`] = `
defaultMessage="onboarding.tutorial.with.jenkins.webhook.intro.sentence"
id="onboarding.tutorial.with.jenkins.webhook.intro.sentence"
values={
- Object {
+ {
"link": <ButtonLink
onClick={[MockFunction]}
>
diff --git a/server/sonar-web/src/main/js/components/tutorials/jenkins/__tests__/__snapshots__/WebhookStepBitbucket-test.tsx.snap b/server/sonar-web/src/main/js/components/tutorials/jenkins/__tests__/__snapshots__/WebhookStepBitbucket-test.tsx.snap
index cdc06c83744..7b3ef260405 100644
--- a/server/sonar-web/src/main/js/components/tutorials/jenkins/__tests__/__snapshots__/WebhookStepBitbucket-test.tsx.snap
+++ b/server/sonar-web/src/main/js/components/tutorials/jenkins/__tests__/__snapshots__/WebhookStepBitbucket-test.tsx.snap
@@ -7,7 +7,7 @@ exports[`should render correctly for bitbucket 1`] = `
defaultMessage="onboarding.tutorial.with.jenkins.webhook.step1.sentence"
id="onboarding.tutorial.with.jenkins.webhook.step1.sentence"
values={
- Object {
+ {
"link": <ForwardRef(Link)
target="_blank"
to="http://bbs.enterprise.com/plugins/servlet/webhooks/projects/PROJECT_KEY/repos/repo-slug/create"
@@ -48,7 +48,7 @@ exports[`should render correctly for bitbucket 1`] = `
<li>
<SentenceWithHighlights
highlightKeys={
- Array [
+ [
"events",
]
}
@@ -72,7 +72,7 @@ exports[`should render correctly for bitbucket 1`] = `
<li>
<SentenceWithHighlights
highlightKeys={
- Array [
+ [
"create",
]
}
@@ -89,7 +89,7 @@ exports[`should render correctly for bitbucket: with branches disabled 1`] = `
defaultMessage="onboarding.tutorial.with.jenkins.webhook.step1.sentence"
id="onboarding.tutorial.with.jenkins.webhook.step1.sentence"
values={
- Object {
+ {
"link": <ForwardRef(Link)
target="_blank"
to="http://bbs.enterprise.com/plugins/servlet/webhooks/projects/PROJECT_KEY/repos/repo-slug/create"
@@ -125,7 +125,7 @@ exports[`should render correctly for bitbucket: with branches disabled 1`] = `
<li>
<SentenceWithHighlights
highlightKeys={
- Array [
+ [
"events",
]
}
@@ -144,7 +144,7 @@ exports[`should render correctly for bitbucket: with branches disabled 1`] = `
<li>
<SentenceWithHighlights
highlightKeys={
- Array [
+ [
"create",
]
}
@@ -161,7 +161,7 @@ exports[`should render correctly for bitbucket: with no alm binding 1`] = `
defaultMessage="onboarding.tutorial.with.jenkins.webhook.step1.sentence"
id="onboarding.tutorial.with.jenkins.webhook.step1.sentence"
values={
- Object {
+ {
"link": <strong>
onboarding.tutorial.with.jenkins.webhook.bitbucket.step1.link
</strong>,
@@ -199,7 +199,7 @@ exports[`should render correctly for bitbucket: with no alm binding 1`] = `
<li>
<SentenceWithHighlights
highlightKeys={
- Array [
+ [
"events",
]
}
@@ -223,7 +223,7 @@ exports[`should render correctly for bitbucket: with no alm binding 1`] = `
<li>
<SentenceWithHighlights
highlightKeys={
- Array [
+ [
"create",
]
}
@@ -240,7 +240,7 @@ exports[`should render correctly for bitbucketcloud 1`] = `
defaultMessage="onboarding.tutorial.with.jenkins.webhook.step1.sentence"
id="onboarding.tutorial.with.jenkins.webhook.step1.sentence"
values={
- Object {
+ {
"link": <ForwardRef(Link)
target="_blank"
to="http://bitbucket.org/workspace/repo-slug/admin/addon/admin/bitbucket-webhooks/bb-webhooks-repo-admin"
@@ -276,7 +276,7 @@ exports[`should render correctly for bitbucketcloud 1`] = `
<li>
<SentenceWithHighlights
highlightKeys={
- Array [
+ [
"triggers",
"option",
]
@@ -301,7 +301,7 @@ exports[`should render correctly for bitbucketcloud 1`] = `
<li>
<SentenceWithHighlights
highlightKeys={
- Array [
+ [
"save",
]
}
@@ -318,7 +318,7 @@ exports[`should render correctly for bitbucketcloud: with branches disabled 1`]
defaultMessage="onboarding.tutorial.with.jenkins.webhook.step1.sentence"
id="onboarding.tutorial.with.jenkins.webhook.step1.sentence"
values={
- Object {
+ {
"link": <ForwardRef(Link)
target="_blank"
to="http://bitbucket.org/workspace/repo-slug/admin/addon/admin/bitbucket-webhooks/bb-webhooks-repo-admin"
@@ -354,7 +354,7 @@ exports[`should render correctly for bitbucketcloud: with branches disabled 1`]
<li>
<SentenceWithHighlights
highlightKeys={
- Array [
+ [
"triggers",
"option",
]
@@ -374,7 +374,7 @@ exports[`should render correctly for bitbucketcloud: with branches disabled 1`]
<li>
<SentenceWithHighlights
highlightKeys={
- Array [
+ [
"save",
]
}
@@ -391,7 +391,7 @@ exports[`should render correctly for bitbucketcloud: with no alm binding 1`] = `
defaultMessage="onboarding.tutorial.with.jenkins.webhook.step1.sentence"
id="onboarding.tutorial.with.jenkins.webhook.step1.sentence"
values={
- Object {
+ {
"link": <strong>
onboarding.tutorial.with.jenkins.webhook.bitbucketcloud.step1.link
</strong>,
@@ -424,7 +424,7 @@ exports[`should render correctly for bitbucketcloud: with no alm binding 1`] = `
<li>
<SentenceWithHighlights
highlightKeys={
- Array [
+ [
"triggers",
"option",
]
@@ -449,7 +449,7 @@ exports[`should render correctly for bitbucketcloud: with no alm binding 1`] = `
<li>
<SentenceWithHighlights
highlightKeys={
- Array [
+ [
"save",
]
}
diff --git a/server/sonar-web/src/main/js/components/tutorials/jenkins/__tests__/__snapshots__/WebhookStepGitLab-test.tsx.snap b/server/sonar-web/src/main/js/components/tutorials/jenkins/__tests__/__snapshots__/WebhookStepGitLab-test.tsx.snap
index 08056fb7b59..a52bf393eda 100644
--- a/server/sonar-web/src/main/js/components/tutorials/jenkins/__tests__/__snapshots__/WebhookStepGitLab-test.tsx.snap
+++ b/server/sonar-web/src/main/js/components/tutorials/jenkins/__tests__/__snapshots__/WebhookStepGitLab-test.tsx.snap
@@ -7,7 +7,7 @@ exports[`should render correctly: default 1`] = `
defaultMessage="onboarding.tutorial.with.jenkins.webhook.step1.sentence"
id="onboarding.tutorial.with.jenkins.webhook.step1.sentence"
values={
- Object {
+ {
"link": "onboarding.tutorial.with.jenkins.webhook.gitlab.step1.link",
}
}
@@ -33,7 +33,7 @@ exports[`should render correctly: default 1`] = `
<li>
<SentenceWithHighlights
highlightKeys={
- Array [
+ [
"trigger",
]
}
@@ -57,7 +57,7 @@ exports[`should render correctly: default 1`] = `
<li>
<SentenceWithHighlights
highlightKeys={
- Array [
+ [
"add_webhook",
]
}
@@ -74,7 +74,7 @@ exports[`should render correctly: with branches disabled 1`] = `
defaultMessage="onboarding.tutorial.with.jenkins.webhook.step1.sentence"
id="onboarding.tutorial.with.jenkins.webhook.step1.sentence"
values={
- Object {
+ {
"link": "onboarding.tutorial.with.jenkins.webhook.gitlab.step1.link",
}
}
@@ -97,7 +97,7 @@ exports[`should render correctly: with branches disabled 1`] = `
<li>
<SentenceWithHighlights
highlightKeys={
- Array [
+ [
"trigger",
]
}
@@ -116,7 +116,7 @@ exports[`should render correctly: with branches disabled 1`] = `
<li>
<SentenceWithHighlights
highlightKeys={
- Array [
+ [
"add_webhook",
]
}
diff --git a/server/sonar-web/src/main/js/components/tutorials/jenkins/__tests__/__snapshots__/WebhookStepGithub-test.tsx.snap b/server/sonar-web/src/main/js/components/tutorials/jenkins/__tests__/__snapshots__/WebhookStepGithub-test.tsx.snap
index 65331dfacaf..a8ee7b0ea5b 100644
--- a/server/sonar-web/src/main/js/components/tutorials/jenkins/__tests__/__snapshots__/WebhookStepGithub-test.tsx.snap
+++ b/server/sonar-web/src/main/js/components/tutorials/jenkins/__tests__/__snapshots__/WebhookStepGithub-test.tsx.snap
@@ -7,7 +7,7 @@ exports[`should render correctly 1`] = `
defaultMessage="onboarding.tutorial.with.jenkins.webhook.step1.sentence"
id="onboarding.tutorial.with.jenkins.webhook.step1.sentence"
values={
- Object {
+ {
"link": <ForwardRef(Link)
target="_blank"
to="http://github.enterprise.com/PROJECT_KEY/settings/hooks"
@@ -38,7 +38,7 @@ exports[`should render correctly 1`] = `
<li>
<SentenceWithHighlights
highlightKeys={
- Array [
+ [
"events",
"option",
]
@@ -63,7 +63,7 @@ exports[`should render correctly 1`] = `
<li>
<SentenceWithHighlights
highlightKeys={
- Array [
+ [
"add_webhook",
]
}
@@ -80,7 +80,7 @@ exports[`should render correctly: with branches disabled 1`] = `
defaultMessage="onboarding.tutorial.with.jenkins.webhook.step1.sentence"
id="onboarding.tutorial.with.jenkins.webhook.step1.sentence"
values={
- Object {
+ {
"link": <ForwardRef(Link)
target="_blank"
to="http://github.enterprise.com/PROJECT_KEY/settings/hooks"
@@ -111,7 +111,7 @@ exports[`should render correctly: with branches disabled 1`] = `
<li>
<SentenceWithHighlights
highlightKeys={
- Array [
+ [
"events",
"option",
]
@@ -131,7 +131,7 @@ exports[`should render correctly: with branches disabled 1`] = `
<li>
<SentenceWithHighlights
highlightKeys={
- Array [
+ [
"add_webhook",
]
}
@@ -148,7 +148,7 @@ exports[`should render correctly: with no alm binding 1`] = `
defaultMessage="onboarding.tutorial.with.jenkins.webhook.step1.sentence"
id="onboarding.tutorial.with.jenkins.webhook.step1.sentence"
values={
- Object {
+ {
"link": <strong>
onboarding.tutorial.with.jenkins.webhook.github.step1.link
</strong>,
@@ -176,7 +176,7 @@ exports[`should render correctly: with no alm binding 1`] = `
<li>
<SentenceWithHighlights
highlightKeys={
- Array [
+ [
"events",
"option",
]
@@ -201,7 +201,7 @@ exports[`should render correctly: with no alm binding 1`] = `
<li>
<SentenceWithHighlights
highlightKeys={
- Array [
+ [
"add_webhook",
]
}
diff --git a/server/sonar-web/src/main/js/components/tutorials/jenkins/buildtool-steps/__tests__/__snapshots__/CFamilly-test.tsx.snap b/server/sonar-web/src/main/js/components/tutorials/jenkins/buildtool-steps/__tests__/__snapshots__/CFamilly-test.tsx.snap
index a35dc65c26d..485d34fdda9 100644
--- a/server/sonar-web/src/main/js/components/tutorials/jenkins/buildtool-steps/__tests__/__snapshots__/CFamilly-test.tsx.snap
+++ b/server/sonar-web/src/main/js/components/tutorials/jenkins/buildtool-steps/__tests__/__snapshots__/CFamilly-test.tsx.snap
@@ -4,25 +4,25 @@ exports[`should render correctly for 1`] = `
<Fragment>
<DefaultProjectKey
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": [],
}
}
/>
@@ -35,7 +35,7 @@ exports[`should render correctly for 1`] = `
onCheck={[Function]}
optionLabelKey="onboarding.build.other.os"
options={
- Array [
+ [
"linux",
"win",
"mac",
@@ -50,25 +50,25 @@ exports[`should render correctly for linux: linux 1`] = `
<Fragment>
<DefaultProjectKey
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": [],
}
}
/>
@@ -82,7 +82,7 @@ exports[`should render correctly for linux: linux 1`] = `
onCheck={[Function]}
optionLabelKey="onboarding.build.other.os"
options={
- Array [
+ [
"linux",
"win",
"mac",
@@ -102,17 +102,17 @@ exports[`should render correctly for linux: linux 1`] = `
checkout scm
}
stage('Download Build Wrapper') {
- sh \\"mkdir -p .sonar\\"
- sh \\"curl -sSLo build-wrapper-linux-x86.zip nice_url_sample/static/cpp/build-wrapper-linux-x86.zip\\"
- sh \\"unzip -o build-wrapper-linux-x86.zip -d .sonar\\"
+ sh "mkdir -p .sonar"
+ sh "curl -sSLo build-wrapper-linux-x86.zip nice_url_sample/static/cpp/build-wrapper-linux-x86.zip"
+ sh "unzip -o build-wrapper-linux-x86.zip -d .sonar"
}
stage('Build') {
- sh \\".sonar/build-wrapper-linux-x86/build-wrapper-linux-x86-64 --out-dir bw-output <your clean build command>\\"
+ sh ".sonar/build-wrapper-linux-x86/build-wrapper-linux-x86-64 --out-dir bw-output <your clean build command>"
}
stage('SonarQube Analysis') {
def scannerHome = tool 'SonarScanner';
withSonarQubeEnv() {
- sh \\"\${scannerHome}/bin/sonar-scanner -Dsonar.cfamily.build-wrapper-output=bw-output\\"
+ sh "\${scannerHome}/bin/sonar-scanner -Dsonar.cfamily.build-wrapper-output=bw-output"
}
}
}"
@@ -129,25 +129,25 @@ exports[`should render correctly for mac: mac 1`] = `
<Fragment>
<DefaultProjectKey
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": [],
}
}
/>
@@ -161,7 +161,7 @@ exports[`should render correctly for mac: mac 1`] = `
onCheck={[Function]}
optionLabelKey="onboarding.build.other.os"
options={
- Array [
+ [
"linux",
"win",
"mac",
@@ -195,7 +195,7 @@ exports[`should render correctly for mac: mac 1`] = `
stage('SonarQube Analysis') {
def scannerHome = tool 'SonarScanner';
withSonarQubeEnv() {
- sh \\"\${scannerHome}/bin/sonar-scanner -Dsonar.cfamily.build-wrapper-output=bw-output\\"
+ sh "\${scannerHome}/bin/sonar-scanner -Dsonar.cfamily.build-wrapper-output=bw-output"
}
}
}"
@@ -212,25 +212,25 @@ exports[`should render correctly for win: win 1`] = `
<Fragment>
<DefaultProjectKey
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": [],
}
}
/>
@@ -244,7 +244,7 @@ exports[`should render correctly for win: win 1`] = `
onCheck={[Function]}
optionLabelKey="onboarding.build.other.os"
options={
- Array [
+ [
"linux",
"win",
"mac",
@@ -265,26 +265,26 @@ exports[`should render correctly for win: win 1`] = `
}
stage('Download Build Wrapper') {
powershell '''
- $path = \\"$HOME/.sonar/build-wrapper-win-x86.zip\\"
+ $path = "$HOME/.sonar/build-wrapper-win-x86.zip"
rm build-wrapper-win-x86 -Recurse -Force -ErrorAction SilentlyContinue
rm $path -Force -ErrorAction SilentlyContinue
mkdir $HOME/.sonar
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
- (New-Object System.Net.WebClient).DownloadFile(nice_url_sample/static/cpp/build-wrapper-win-x86.zip\\", $path)
+ (New-Object System.Net.WebClient).DownloadFile(nice_url_sample/static/cpp/build-wrapper-win-x86.zip", $path)
Add-Type -AssemblyName System.IO.Compression.FileSystem
- [System.IO.Compression.ZipFile]::ExtractToDirectory($path, \\"$HOME/.sonar\\")
+ [System.IO.Compression.ZipFile]::ExtractToDirectory($path, "$HOME/.sonar")
'''
}
stage('Build') {
powershell '''
- $env:Path += \\";$HOME/.sonar/build-wrapper-win-x86\\"
+ $env:Path += ";$HOME/.sonar/build-wrapper-win-x86"
build-wrapper-win-x86-64 --out-dir bw-output <your clean build command>
'''
}
stage('SonarQube Analysis') {
def scannerHome = tool 'SonarScanner';
withSonarQubeEnv() {
- powershell \\"\${scannerHome}/bin/sonar-scanner -Dsonar.cfamily.build-wrapper-output=bw-output\\"
+ powershell "\${scannerHome}/bin/sonar-scanner -Dsonar.cfamily.build-wrapper-output=bw-output"
}
}
}"
diff --git a/server/sonar-web/src/main/js/components/tutorials/jenkins/buildtool-steps/__tests__/__snapshots__/CreateJenkinsfileBulletPoint-test.tsx.snap b/server/sonar-web/src/main/js/components/tutorials/jenkins/buildtool-steps/__tests__/__snapshots__/CreateJenkinsfileBulletPoint-test.tsx.snap
index cdb54d98b3a..d2a3aef7eda 100644
--- a/server/sonar-web/src/main/js/components/tutorials/jenkins/buildtool-steps/__tests__/__snapshots__/CreateJenkinsfileBulletPoint-test.tsx.snap
+++ b/server/sonar-web/src/main/js/components/tutorials/jenkins/buildtool-steps/__tests__/__snapshots__/CreateJenkinsfileBulletPoint-test.tsx.snap
@@ -31,7 +31,7 @@ exports[`should render correctly: with alert 1`] = `
>
<SentenceWithHighlights
highlightKeys={
- Array [
+ [
"default",
"in_jenkins",
]
@@ -47,7 +47,7 @@ exports[`should render correctly: with alert 1`] = `
>
<SentenceWithHighlights
highlightKeys={
- Array [
+ [
"path",
]
}
@@ -57,7 +57,7 @@ exports[`should render correctly: with alert 1`] = `
<p>
<SentenceWithHighlights
highlightKeys={
- Array [
+ [
"path",
"name",
]
diff --git a/server/sonar-web/src/main/js/components/tutorials/jenkins/buildtool-steps/__tests__/__snapshots__/DotNet-test.tsx.snap b/server/sonar-web/src/main/js/components/tutorials/jenkins/buildtool-steps/__tests__/__snapshots__/DotNet-test.tsx.snap
index 34b0cd7f07b..ab0aff418c5 100644
--- a/server/sonar-web/src/main/js/components/tutorials/jenkins/buildtool-steps/__tests__/__snapshots__/DotNet-test.tsx.snap
+++ b/server/sonar-web/src/main/js/components/tutorials/jenkins/buildtool-steps/__tests__/__snapshots__/DotNet-test.tsx.snap
@@ -9,7 +9,7 @@ exports[`should render correctly 1`] = `
onCheck={[Function]}
optionLabelKey="onboarding.build.dotnet"
options={
- Array [
+ [
"win_core",
"win_msbuild",
"linux_core",
diff --git a/server/sonar-web/src/main/js/components/tutorials/jenkins/buildtool-steps/__tests__/__snapshots__/DotNetCore-test.tsx.snap b/server/sonar-web/src/main/js/components/tutorials/jenkins/buildtool-steps/__tests__/__snapshots__/DotNetCore-test.tsx.snap
index d3e6b656151..337c2c5f79a 100644
--- a/server/sonar-web/src/main/js/components/tutorials/jenkins/buildtool-steps/__tests__/__snapshots__/DotNetCore-test.tsx.snap
+++ b/server/sonar-web/src/main/js/components/tutorials/jenkins/buildtool-steps/__tests__/__snapshots__/DotNetCore-test.tsx.snap
@@ -18,9 +18,9 @@ exports[`should render correctly: linux 1`] = `
stage('SonarQube Analysis') {
def scannerHome = tool 'SonarScanner for MSBuild'
withSonarQubeEnv() {
- sh \\"dotnet \${scannerHome}/SonarScanner.MSBuild.dll begin /k:\\\\\\"my-project\\\\\\"\\"
- sh \\"dotnet build\\"
- sh \\"dotnet \${scannerHome}/SonarScanner.MSBuild.dll end\\"
+ sh "dotnet \${scannerHome}/SonarScanner.MSBuild.dll begin /k:\\"my-project\\""
+ sh "dotnet build"
+ sh "dotnet \${scannerHome}/SonarScanner.MSBuild.dll end"
}
}
}
@@ -48,9 +48,9 @@ exports[`should render correctly: win 1`] = `
stage('SonarQube Analysis') {
def scannerHome = tool 'SonarScanner for MSBuild'
withSonarQubeEnv() {
- bat \\"dotnet \${scannerHome}\\\\\\\\SonarScanner.MSBuild.dll begin /k:\\\\\\"my-project\\\\\\"\\"
- bat \\"dotnet build\\"
- bat \\"dotnet \${scannerHome}\\\\\\\\SonarScanner.MSBuild.dll end\\"
+ bat "dotnet \${scannerHome}\\\\SonarScanner.MSBuild.dll begin /k:\\"my-project\\""
+ bat "dotnet build"
+ bat "dotnet \${scannerHome}\\\\SonarScanner.MSBuild.dll end"
}
}
}
diff --git a/server/sonar-web/src/main/js/components/tutorials/jenkins/buildtool-steps/__tests__/__snapshots__/DotNetFramework-test.tsx.snap b/server/sonar-web/src/main/js/components/tutorials/jenkins/buildtool-steps/__tests__/__snapshots__/DotNetFramework-test.tsx.snap
index c5d2c7107de..5fc76c1bae1 100644
--- a/server/sonar-web/src/main/js/components/tutorials/jenkins/buildtool-steps/__tests__/__snapshots__/DotNetFramework-test.tsx.snap
+++ b/server/sonar-web/src/main/js/components/tutorials/jenkins/buildtool-steps/__tests__/__snapshots__/DotNetFramework-test.tsx.snap
@@ -20,9 +20,9 @@ exports[`should render correctly 1`] = `
def msbuildHome = tool 'Default MSBuild'
def scannerHome = tool 'SonarScanner for MSBuild'
withSonarQubeEnv() {
- bat \\"\\\\\\"\${scannerHome}\\\\\\\\SonarScanner.MSBuild.exe\\\\\\" begin /k:\\\\\\"my-project\\\\\\"\\"
- bat \\"\\\\\\"\${msbuildHome}\\\\\\\\MSBuild.exe\\\\\\" /t:Rebuild\\"
- bat \\"\\\\\\"\${scannerHome}\\\\\\\\SonarScanner.MSBuild.exe\\\\\\" end\\"
+ bat "\\"\${scannerHome}\\\\SonarScanner.MSBuild.exe\\" begin /k:\\"my-project\\""
+ bat "\\"\${msbuildHome}\\\\MSBuild.exe\\" /t:Rebuild"
+ bat "\\"\${scannerHome}\\\\SonarScanner.MSBuild.exe\\" end"
}
}
}
diff --git a/server/sonar-web/src/main/js/components/tutorials/jenkins/buildtool-steps/__tests__/__snapshots__/DotNetPrereqsMSBuild-test.tsx.snap b/server/sonar-web/src/main/js/components/tutorials/jenkins/buildtool-steps/__tests__/__snapshots__/DotNetPrereqsMSBuild-test.tsx.snap
index 5352256cc55..53b0ff9ab88 100644
--- a/server/sonar-web/src/main/js/components/tutorials/jenkins/buildtool-steps/__tests__/__snapshots__/DotNetPrereqsMSBuild-test.tsx.snap
+++ b/server/sonar-web/src/main/js/components/tutorials/jenkins/buildtool-steps/__tests__/__snapshots__/DotNetPrereqsMSBuild-test.tsx.snap
@@ -6,7 +6,7 @@ exports[`should render correctly 1`] = `
>
<SentenceWithHighlights
highlightKeys={
- Array [
+ [
"default_msbuild",
]
}
@@ -24,7 +24,7 @@ exports[`should render correctly 1`] = `
<li>
<SentenceWithHighlights
highlightKeys={
- Array [
+ [
"msbuild",
]
}
@@ -34,7 +34,7 @@ exports[`should render correctly 1`] = `
<li>
<SentenceWithHighlights
highlightKeys={
- Array [
+ [
"path",
]
}
@@ -44,7 +44,7 @@ exports[`should render correctly 1`] = `
<li>
<SentenceWithHighlights
highlightKeys={
- Array [
+ [
"msbuild",
"add_msbuild",
"name",
diff --git a/server/sonar-web/src/main/js/components/tutorials/jenkins/buildtool-steps/__tests__/__snapshots__/DotNetPrereqsScanner-test.tsx.snap b/server/sonar-web/src/main/js/components/tutorials/jenkins/buildtool-steps/__tests__/__snapshots__/DotNetPrereqsScanner-test.tsx.snap
index 86e44d5182a..22ee4c94191 100644
--- a/server/sonar-web/src/main/js/components/tutorials/jenkins/buildtool-steps/__tests__/__snapshots__/DotNetPrereqsScanner-test.tsx.snap
+++ b/server/sonar-web/src/main/js/components/tutorials/jenkins/buildtool-steps/__tests__/__snapshots__/DotNetPrereqsScanner-test.tsx.snap
@@ -6,7 +6,7 @@ exports[`should render correctly 1`] = `
>
<SentenceWithHighlights
highlightKeys={
- Array [
+ [
"default_scanner",
]
}
@@ -24,7 +24,7 @@ exports[`should render correctly 1`] = `
<li>
<SentenceWithHighlights
highlightKeys={
- Array [
+ [
"path",
]
}
@@ -34,7 +34,7 @@ exports[`should render correctly 1`] = `
<li>
<SentenceWithHighlights
highlightKeys={
- Array [
+ [
"default_scanner",
"add_scanner_for_msbuild",
]
@@ -45,7 +45,7 @@ exports[`should render correctly 1`] = `
<li>
<SentenceWithHighlights
highlightKeys={
- Array [
+ [
"name",
]
}
@@ -63,7 +63,7 @@ exports[`should render correctly 1`] = `
<li>
<SentenceWithHighlights
highlightKeys={
- Array [
+ [
"install_from",
]
}
diff --git a/server/sonar-web/src/main/js/components/tutorials/jenkins/buildtool-steps/__tests__/__snapshots__/Gradle-test.tsx.snap b/server/sonar-web/src/main/js/components/tutorials/jenkins/buildtool-steps/__tests__/__snapshots__/Gradle-test.tsx.snap
index dacb1238ea2..b35f87d237e 100644
--- a/server/sonar-web/src/main/js/components/tutorials/jenkins/buildtool-steps/__tests__/__snapshots__/Gradle-test.tsx.snap
+++ b/server/sonar-web/src/main/js/components/tutorials/jenkins/buildtool-steps/__tests__/__snapshots__/Gradle-test.tsx.snap
@@ -11,12 +11,12 @@ exports[`should render correctly 1`] = `
/>
<CodeSnippet
snippet="plugins {
- id \\"org.sonarqube\\" version \\"3.5.0.2730\\"
+ id "org.sonarqube" version "3.5.0.2730"
}
sonar {
properties {
- property \\"sonar.projectKey\\", \\"my-project\\"
+ property "sonar.projectKey", "my-project"
}
}"
/>
@@ -28,7 +28,7 @@ sonar {
}
stage('SonarQube Analysis') {
withSonarQubeEnv() {
- sh \\"./gradlew sonar\\"
+ sh "./gradlew sonar"
}
}
}"
diff --git a/server/sonar-web/src/main/js/components/tutorials/jenkins/buildtool-steps/__tests__/__snapshots__/Maven-test.tsx.snap b/server/sonar-web/src/main/js/components/tutorials/jenkins/buildtool-steps/__tests__/__snapshots__/Maven-test.tsx.snap
index ed01d396639..6b438876f92 100644
--- a/server/sonar-web/src/main/js/components/tutorials/jenkins/buildtool-steps/__tests__/__snapshots__/Maven-test.tsx.snap
+++ b/server/sonar-web/src/main/js/components/tutorials/jenkins/buildtool-steps/__tests__/__snapshots__/Maven-test.tsx.snap
@@ -11,7 +11,7 @@ exports[`should render correctly 1`] = `
stage('SonarQube Analysis') {
def mvn = tool 'Default Maven';
withSonarQubeEnv() {
- sh \\"\${mvn}/bin/mvn clean verify sonar:sonar -Dsonar.projectKey=my-project\\"
+ sh "\${mvn}/bin/mvn clean verify sonar:sonar -Dsonar.projectKey=my-project"
}
}
}"
diff --git a/server/sonar-web/src/main/js/components/tutorials/jenkins/buildtool-steps/__tests__/__snapshots__/Other-test.tsx.snap b/server/sonar-web/src/main/js/components/tutorials/jenkins/buildtool-steps/__tests__/__snapshots__/Other-test.tsx.snap
index 29c9141f07e..3a68d7c54e3 100644
--- a/server/sonar-web/src/main/js/components/tutorials/jenkins/buildtool-steps/__tests__/__snapshots__/Other-test.tsx.snap
+++ b/server/sonar-web/src/main/js/components/tutorials/jenkins/buildtool-steps/__tests__/__snapshots__/Other-test.tsx.snap
@@ -4,25 +4,25 @@ exports[`should render correctly 1`] = `
<Fragment>
<DefaultProjectKey
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": [],
}
}
/>
@@ -35,7 +35,7 @@ exports[`should render correctly 1`] = `
stage('SonarQube Analysis') {
def scannerHome = tool 'SonarScanner';
withSonarQubeEnv() {
- sh \\"\${scannerHome}/bin/sonar-scanner\\"
+ sh "\${scannerHome}/bin/sonar-scanner"
}
}
}"
diff --git a/server/sonar-web/src/main/js/components/tutorials/other/__tests__/__snapshots__/BuildToolForm-test.tsx.snap b/server/sonar-web/src/main/js/components/tutorials/other/__tests__/__snapshots__/BuildToolForm-test.tsx.snap
index 5af117d2d8e..ed38c39ba37 100644
--- a/server/sonar-web/src/main/js/components/tutorials/other/__tests__/__snapshots__/BuildToolForm-test.tsx.snap
+++ b/server/sonar-web/src/main/js/components/tutorials/other/__tests__/__snapshots__/BuildToolForm-test.tsx.snap
@@ -12,24 +12,24 @@ exports[`renders correctly: default 1`] = `
label="onboarding.build"
onCheck={[Function]}
options={
- Array [
- Object {
+ [
+ {
"label": "onboarding.build.maven",
"value": "maven",
},
- Object {
+ {
"label": "onboarding.build.gradle",
"value": "gradle",
},
- Object {
+ {
"label": "onboarding.build.dotnet",
"value": "dotnet",
},
- Object {
+ {
"label": "onboarding.build.cfamily",
"value": "cfamily",
},
- Object {
+ {
"label": "onboarding.build.other",
"value": "other",
},
@@ -52,24 +52,24 @@ exports[`renders correctly: with "maven" selected 1`] = `
label="onboarding.build"
onCheck={[Function]}
options={
- Array [
- Object {
+ [
+ {
"label": "onboarding.build.maven",
"value": "maven",
},
- Object {
+ {
"label": "onboarding.build.gradle",
"value": "gradle",
},
- Object {
+ {
"label": "onboarding.build.dotnet",
"value": "dotnet",
},
- Object {
+ {
"label": "onboarding.build.cfamily",
"value": "cfamily",
},
- Object {
+ {
"label": "onboarding.build.other",
"value": "other",
},
@@ -93,24 +93,24 @@ exports[`renders correctly: with "other" selected 1`] = `
label="onboarding.build"
onCheck={[Function]}
options={
- Array [
- Object {
+ [
+ {
"label": "onboarding.build.maven",
"value": "maven",
},
- Object {
+ {
"label": "onboarding.build.gradle",
"value": "gradle",
},
- Object {
+ {
"label": "onboarding.build.dotnet",
"value": "dotnet",
},
- Object {
+ {
"label": "onboarding.build.cfamily",
"value": "cfamily",
},
- Object {
+ {
"label": "onboarding.build.other",
"value": "other",
},
@@ -124,7 +124,7 @@ exports[`renders correctly: with "other" selected 1`] = `
onCheck={[Function]}
optionLabelKey="onboarding.build.other.os"
options={
- Array [
+ [
"linux",
"win",
"mac",
@@ -147,20 +147,20 @@ exports[`renders correctly: without C 1`] = `
label="onboarding.build"
onCheck={[Function]}
options={
- Array [
- Object {
+ [
+ {
"label": "onboarding.build.maven",
"value": "maven",
},
- Object {
+ {
"label": "onboarding.build.gradle",
"value": "gradle",
},
- Object {
+ {
"label": "onboarding.build.dotnet",
"value": "dotnet",
},
- Object {
+ {
"label": "onboarding.build.other",
"value": "other",
},
diff --git a/server/sonar-web/src/main/js/components/tutorials/other/__tests__/__snapshots__/DoneNextSteps-test.tsx.snap b/server/sonar-web/src/main/js/components/tutorials/other/__tests__/__snapshots__/DoneNextSteps-test.tsx.snap
index f064d59dc28..b7363c4bb3e 100644
--- a/server/sonar-web/src/main/js/components/tutorials/other/__tests__/__snapshots__/DoneNextSteps-test.tsx.snap
+++ b/server/sonar-web/src/main/js/components/tutorials/other/__tests__/__snapshots__/DoneNextSteps-test.tsx.snap
@@ -24,7 +24,7 @@ exports[`should render correctly: default 1`] = `
defaultMessage="onboarding.analysis.auto_refresh_after_analysis.check_these_links"
id="onboarding.analysis.auto_refresh_after_analysis.check_these_links"
values={
- Object {
+ {
"link_branches": <withAppStateContext(DocLink)
to="/analyzing-source-code/branches/branch-analysis/"
>
@@ -66,7 +66,7 @@ exports[`should render correctly: project admin 1`] = `
defaultMessage="onboarding.analysis.auto_refresh_after_analysis.check_these_links"
id="onboarding.analysis.auto_refresh_after_analysis.check_these_links"
values={
- Object {
+ {
"link_branches": <withAppStateContext(DocLink)
to="/analyzing-source-code/branches/branch-analysis/"
>
diff --git a/server/sonar-web/src/main/js/components/tutorials/other/__tests__/__snapshots__/OtherTutorial-test.tsx.snap b/server/sonar-web/src/main/js/components/tutorials/other/__tests__/__snapshots__/OtherTutorial-test.tsx.snap
index cdec8d32ea8..5caa5c39114 100644
--- a/server/sonar-web/src/main/js/components/tutorials/other/__tests__/__snapshots__/OtherTutorial-test.tsx.snap
+++ b/server/sonar-web/src/main/js/components/tutorials/other/__tests__/__snapshots__/OtherTutorial-test.tsx.snap
@@ -20,19 +20,19 @@ exports[`renders correctly: default 1`] = `
</div>
<TokenStep
currentUser={
- Object {
- "dismissedNotices": Object {
+ {
+ "dismissedNotices": {
"educationPrinciples": false,
},
- "groups": Array [],
+ "groups": [],
"isLoggedIn": true,
"login": "luke",
"name": "Skywalker",
- "scmAccounts": Array [],
+ "scmAccounts": [],
}
}
finished={false}
- initialTokenName="Analyze \\"MyProject\\""
+ initialTokenName="Analyze "MyProject""
onContinue={[Function]}
onOpen={[Function]}
open={true}
@@ -42,25 +42,25 @@ exports[`renders correctly: default 1`] = `
<ProjectAnalysisStep
baseUrl="http://example.com"
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": [],
}
}
isLocal={false}
diff --git a/server/sonar-web/src/main/js/components/tutorials/other/__tests__/__snapshots__/TokenStep-test.tsx.snap b/server/sonar-web/src/main/js/components/tutorials/other/__tests__/__snapshots__/TokenStep-test.tsx.snap
index e4915f25caf..183856aaea4 100644
--- a/server/sonar-web/src/main/js/components/tutorials/other/__tests__/__snapshots__/TokenStep-test.tsx.snap
+++ b/server/sonar-web/src/main/js/components/tutorials/other/__tests__/__snapshots__/TokenStep-test.tsx.snap
@@ -48,8 +48,8 @@ exports[`generates token 1`] = `
className="spacer-left"
content="onboarding.token.name.help"
links={
- Array [
- Object {
+ [
+ {
"href": "/user-guide/user-account/generating-and-using-tokens/",
"label": "learn_more",
},
@@ -85,27 +85,27 @@ exports[`generates token 1`] = `
isSearchable={false}
onChange={[Function]}
options={
- Array [
- Object {
+ [
+ {
"label": "users.tokens.expiration.30",
"value": 30,
},
- Object {
+ {
"label": "users.tokens.expiration.90",
"value": 90,
},
- Object {
+ {
"label": "users.tokens.expiration.365",
"value": 365,
},
- Object {
+ {
"label": "users.tokens.expiration.0",
"value": 0,
},
]
}
value={
- Object {
+ {
"label": "users.tokens.expiration.30",
"value": 30,
}
@@ -144,7 +144,7 @@ exports[`generates token 1`] = `
defaultMessage="onboarding.token.text"
id="onboarding.token.text"
values={
- Object {
+ {
"link": <ForwardRef(Link)
target="_blank"
to="/account/security"
@@ -208,8 +208,8 @@ exports[`generates token 2`] = `
className="spacer-left"
content="onboarding.token.name.help"
links={
- Array [
- Object {
+ [
+ {
"href": "/user-guide/user-account/generating-and-using-tokens/",
"label": "learn_more",
},
@@ -245,27 +245,27 @@ exports[`generates token 2`] = `
isSearchable={false}
onChange={[Function]}
options={
- Array [
- Object {
+ [
+ {
"label": "users.tokens.expiration.30",
"value": 30,
},
- Object {
+ {
"label": "users.tokens.expiration.90",
"value": 90,
},
- Object {
+ {
"label": "users.tokens.expiration.365",
"value": 365,
},
- Object {
+ {
"label": "users.tokens.expiration.0",
"value": 0,
},
]
}
value={
- Object {
+ {
"label": "users.tokens.expiration.30",
"value": 30,
}
@@ -301,7 +301,7 @@ exports[`generates token 2`] = `
defaultMessage="onboarding.token.text"
id="onboarding.token.text"
values={
- Object {
+ {
"link": <ForwardRef(Link)
target="_blank"
to="/account/security"
@@ -363,7 +363,7 @@ exports[`generates token 3`] = `
defaultMessage="onboarding.token.text"
id="onboarding.token.text"
values={
- Object {
+ {
"link": <ForwardRef(Link)
target="_blank"
to="/account/security"
@@ -435,7 +435,7 @@ exports[`revokes token 1`] = `
defaultMessage="onboarding.token.text"
id="onboarding.token.text"
values={
- Object {
+ {
"link": <ForwardRef(Link)
target="_blank"
to="/account/security"
@@ -506,7 +506,7 @@ exports[`revokes token 2`] = `
defaultMessage="onboarding.token.text"
id="onboarding.token.text"
values={
- Object {
+ {
"link": <ForwardRef(Link)
target="_blank"
to="/account/security"
@@ -580,8 +580,8 @@ exports[`revokes token 3`] = `
className="spacer-left"
content="onboarding.token.name.help"
links={
- Array [
- Object {
+ [
+ {
"href": "/user-guide/user-account/generating-and-using-tokens/",
"label": "learn_more",
},
@@ -617,27 +617,27 @@ exports[`revokes token 3`] = `
isSearchable={false}
onChange={[Function]}
options={
- Array [
- Object {
+ [
+ {
"label": "users.tokens.expiration.30",
"value": 30,
},
- Object {
+ {
"label": "users.tokens.expiration.90",
"value": 90,
},
- Object {
+ {
"label": "users.tokens.expiration.365",
"value": 365,
},
- Object {
+ {
"label": "users.tokens.expiration.0",
"value": 0,
},
]
}
value={
- Object {
+ {
"label": "users.tokens.expiration.30",
"value": 30,
}
@@ -676,7 +676,7 @@ exports[`revokes token 3`] = `
defaultMessage="onboarding.token.text"
id="onboarding.token.text"
values={
- Object {
+ {
"link": <ForwardRef(Link)
target="_blank"
to="/account/security"
diff --git a/server/sonar-web/src/main/js/components/tutorials/other/commands/__tests__/__snapshots__/AnalysisCommand-test.tsx.snap b/server/sonar-web/src/main/js/components/tutorials/other/commands/__tests__/__snapshots__/AnalysisCommand-test.tsx.snap
index c7c84eec78d..ca8fa01afab 100644
--- a/server/sonar-web/src/main/js/components/tutorials/other/commands/__tests__/__snapshots__/AnalysisCommand-test.tsx.snap
+++ b/server/sonar-web/src/main/js/components/tutorials/other/commands/__tests__/__snapshots__/AnalysisCommand-test.tsx.snap
@@ -4,25 +4,25 @@ exports[`renders correctly: .NET 1`] = `
<DotNet
baseUrl="http://example.com"
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": [],
}
}
token="myToken"
@@ -33,25 +33,25 @@ exports[`renders correctly: CFamily 1`] = `
<ClangGCCCustom
baseUrl="http://example.com"
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": [],
}
}
isLocal={true}
@@ -66,25 +66,25 @@ exports[`renders correctly: gradle 1`] = `
<JavaGradle
baseUrl="http://example.com"
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": [],
}
}
token="myToken"
@@ -95,25 +95,25 @@ exports[`renders correctly: maven 1`] = `
<JavaMaven
baseUrl="http://example.com"
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": [],
}
}
token="myToken"
@@ -124,25 +124,25 @@ exports[`renders correctly: other 1`] = `
<Other
baseUrl="http://example.com"
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": [],
}
}
isLocal={true}
diff --git a/server/sonar-web/src/main/js/components/tutorials/other/commands/__tests__/__snapshots__/CLangGCCCommand-test.tsx.snap b/server/sonar-web/src/main/js/components/tutorials/other/commands/__tests__/__snapshots__/CLangGCCCommand-test.tsx.snap
index c565c997a5a..a9ac958d7c3 100644
--- a/server/sonar-web/src/main/js/components/tutorials/other/commands/__tests__/__snapshots__/CLangGCCCommand-test.tsx.snap
+++ b/server/sonar-web/src/main/js/components/tutorials/other/commands/__tests__/__snapshots__/CLangGCCCommand-test.tsx.snap
@@ -20,25 +20,25 @@ exports[`should render correctly 1`] = `
baseUrl="http://example.com"
cfamily={true}
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "projectKey",
"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": [],
}
}
isLocal={true}
diff --git a/server/sonar-web/src/main/js/components/tutorials/other/commands/__tests__/__snapshots__/DotNet-test.tsx.snap b/server/sonar-web/src/main/js/components/tutorials/other/commands/__tests__/__snapshots__/DotNet-test.tsx.snap
index 96e497c5912..154a1863dbb 100644
--- a/server/sonar-web/src/main/js/components/tutorials/other/commands/__tests__/__snapshots__/DotNet-test.tsx.snap
+++ b/server/sonar-web/src/main/js/components/tutorials/other/commands/__tests__/__snapshots__/DotNet-test.tsx.snap
@@ -8,7 +8,7 @@ exports[`should render correctly 1`] = `
onCheck={[Function]}
optionLabelKey="onboarding.build.dotnet.variant"
options={
- Array [
+ [
"dotnet_core",
"dotnet_framework",
]
@@ -18,25 +18,25 @@ exports[`should render correctly 1`] = `
<DotNetCore
baseUrl="host"
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "projectKey",
"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": [],
}
}
token="token"
diff --git a/server/sonar-web/src/main/js/components/tutorials/other/commands/__tests__/__snapshots__/DotNetExecute-test.tsx.snap b/server/sonar-web/src/main/js/components/tutorials/other/commands/__tests__/__snapshots__/DotNetExecute-test.tsx.snap
index 60f045cd11d..7f477ebc18f 100644
--- a/server/sonar-web/src/main/js/components/tutorials/other/commands/__tests__/__snapshots__/DotNetExecute-test.tsx.snap
+++ b/server/sonar-web/src/main/js/components/tutorials/other/commands/__tests__/__snapshots__/DotNetExecute-test.tsx.snap
@@ -27,7 +27,7 @@ exports[`should render correctly 1`] = `
defaultMessage="onboarding.analysis.docs"
id="onboarding.analysis.docs"
values={
- Object {
+ {
"link": <withAppStateContext(DocLink)
to="/analyzing-source-code/scanners/sonarscanner-for-dotnet/"
>
@@ -39,25 +39,25 @@ exports[`should render correctly 1`] = `
</p>
<DoneNextSteps
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/components/tutorials/other/commands/__tests__/__snapshots__/DotNetFramework-test.tsx.snap b/server/sonar-web/src/main/js/components/tutorials/other/commands/__tests__/__snapshots__/DotNetFramework-test.tsx.snap
index df672edf162..89e1ed7cfc4 100644
--- a/server/sonar-web/src/main/js/components/tutorials/other/commands/__tests__/__snapshots__/DotNetFramework-test.tsx.snap
+++ b/server/sonar-web/src/main/js/components/tutorials/other/commands/__tests__/__snapshots__/DotNetFramework-test.tsx.snap
@@ -15,7 +15,7 @@ exports[`should render correctly 1`] = `
defaultMessage="onboarding.analysis.msbuild.text"
id="onboarding.analysis.msbuild.text"
values={
- Object {
+ {
"code": <code>
%PATH%
</code>,
@@ -32,32 +32,32 @@ exports[`should render correctly 1`] = `
</div>
<DotNetExecute
commands={
- Array [
- "SonarScanner.MSBuild.exe begin /k:\\"projectKey\\" /d:sonar.host.url=\\"host\\" /d:sonar.login=\\"token\\"",
+ [
+ "SonarScanner.MSBuild.exe begin /k:"projectKey" /d:sonar.host.url="host" /d:sonar.login="token"",
"MsBuild.exe /t:Rebuild",
- "SonarScanner.MSBuild.exe end /d:sonar.login=\\"token\\"",
+ "SonarScanner.MSBuild.exe end /d:sonar.login="token"",
]
}
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "projectKey",
"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/components/tutorials/other/commands/__tests__/__snapshots__/DotnetCore-test.tsx.snap b/server/sonar-web/src/main/js/components/tutorials/other/commands/__tests__/__snapshots__/DotnetCore-test.tsx.snap
index 73c108fd1a2..a24b6be0158 100644
--- a/server/sonar-web/src/main/js/components/tutorials/other/commands/__tests__/__snapshots__/DotnetCore-test.tsx.snap
+++ b/server/sonar-web/src/main/js/components/tutorials/other/commands/__tests__/__snapshots__/DotnetCore-test.tsx.snap
@@ -23,32 +23,32 @@ exports[`should render correctly 1`] = `
</Alert>
<DotNetExecute
commands={
- Array [
- "dotnet sonarscanner begin /k:\\"projectKey\\" /d:sonar.host.url=\\"host\\" /d:sonar.login=\\"token\\"",
+ [
+ "dotnet sonarscanner begin /k:"projectKey" /d:sonar.host.url="host" /d:sonar.login="token"",
"dotnet build",
- "dotnet sonarscanner end /d:sonar.login=\\"token\\"",
+ "dotnet sonarscanner end /d:sonar.login="token"",
]
}
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "projectKey",
"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/components/tutorials/other/commands/__tests__/__snapshots__/DownloadBuildWrapper-test.tsx.snap b/server/sonar-web/src/main/js/components/tutorials/other/commands/__tests__/__snapshots__/DownloadBuildWrapper-test.tsx.snap
index 04909947045..42c9604d362 100644
--- a/server/sonar-web/src/main/js/components/tutorials/other/commands/__tests__/__snapshots__/DownloadBuildWrapper-test.tsx.snap
+++ b/server/sonar-web/src/main/js/components/tutorials/other/commands/__tests__/__snapshots__/DownloadBuildWrapper-test.tsx.snap
@@ -16,7 +16,7 @@ exports[`should render correctly for "linux": local 1`] = `
defaultMessage="onboarding.analysis.build_wrapper.text"
id="onboarding.analysis.build_wrapper.text"
values={
- Object {
+ {
"env_var": <code>
PATH
</code>,
@@ -72,7 +72,7 @@ exports[`should render correctly for "mac": local 1`] = `
defaultMessage="onboarding.analysis.build_wrapper.text"
id="onboarding.analysis.build_wrapper.text"
values={
- Object {
+ {
"env_var": <code>
PATH
</code>,
@@ -128,7 +128,7 @@ exports[`should render correctly for "win": local 1`] = `
defaultMessage="onboarding.analysis.build_wrapper.text"
id="onboarding.analysis.build_wrapper.text"
values={
- Object {
+ {
"env_var": <code>
%PATH%
</code>,
@@ -160,13 +160,13 @@ exports[`should render correctly for "win": remote 1`] = `
onboarding.analysis.build_wrapper.header.win
</h4>
<CodeSnippet
- snippet="$env:SONAR_DIRECTORY = [System.IO.Path]::Combine($(get-location).Path,\\".sonar\\")
-rm \\"$env:SONAR_DIRECTORY/build-wrapper-win-x86\\" -Force -Recurse -ErrorAction SilentlyContinue
+ snippet="$env:SONAR_DIRECTORY = [System.IO.Path]::Combine($(get-location).Path,".sonar")
+rm "$env:SONAR_DIRECTORY/build-wrapper-win-x86" -Force -Recurse -ErrorAction SilentlyContinue
New-Item -path $env:SONAR_DIRECTORY/build-wrapper-win-x86 -type directory
-(New-Object System.Net.WebClient).DownloadFile(\\"http://example.com/static/cpp/build-wrapper-win-x86.zip\\", \\"$env:SONAR_DIRECTORY/build-wrapper-win-x86.zip\\")
+(New-Object System.Net.WebClient).DownloadFile("http://example.com/static/cpp/build-wrapper-win-x86.zip", "$env:SONAR_DIRECTORY/build-wrapper-win-x86.zip")
Add-Type -AssemblyName System.IO.Compression.FileSystem
-[System.IO.Compression.ZipFile]::ExtractToDirectory(\\"$env:SONAR_DIRECTORY/build-wrapper-win-x86.zip\\", \\"$env:SONAR_DIRECTORY\\")
-$env:Path += \\";$env:SONAR_DIRECTORY/build-wrapper-win-x86\\"
+[System.IO.Compression.ZipFile]::ExtractToDirectory("$env:SONAR_DIRECTORY/build-wrapper-win-x86.zip", "$env:SONAR_DIRECTORY")
+$env:Path += ";$env:SONAR_DIRECTORY/build-wrapper-win-x86"
"
/>
</div>
diff --git a/server/sonar-web/src/main/js/components/tutorials/other/commands/__tests__/__snapshots__/DownloadScanner-test.tsx.snap b/server/sonar-web/src/main/js/components/tutorials/other/commands/__tests__/__snapshots__/DownloadScanner-test.tsx.snap
index bcd72311a9d..5d1b5bb5e7e 100644
--- a/server/sonar-web/src/main/js/components/tutorials/other/commands/__tests__/__snapshots__/DownloadScanner-test.tsx.snap
+++ b/server/sonar-web/src/main/js/components/tutorials/other/commands/__tests__/__snapshots__/DownloadScanner-test.tsx.snap
@@ -14,7 +14,7 @@ exports[`should render correctly for "linux": local 1`] = `
defaultMessage="onboarding.analysis.sq_scanner.text"
id="onboarding.analysis.sq_scanner.text"
values={
- Object {
+ {
"dir": <code>
bin
</code>,
@@ -47,7 +47,7 @@ export SONAR_SCANNER_HOME=$HOME/.sonar/sonar-scanner-$SONAR_SCANNER_VERSION-linu
curl --create-dirs -sSLo $HOME/.sonar/sonar-scanner.zip https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-$SONAR_SCANNER_VERSION-linux.zip
unzip -o $HOME/.sonar/sonar-scanner.zip -d $HOME/.sonar/
export PATH=$SONAR_SCANNER_HOME/bin:$PATH
-export SONAR_SCANNER_OPTS=\\"-server\\"
+export SONAR_SCANNER_OPTS="-server"
"
/>
<h4
@@ -104,7 +104,7 @@ exports[`should render correctly for "mac": local 1`] = `
defaultMessage="onboarding.analysis.sq_scanner.text"
id="onboarding.analysis.sq_scanner.text"
values={
- Object {
+ {
"dir": <code>
bin
</code>,
@@ -137,7 +137,7 @@ export SONAR_SCANNER_HOME=$HOME/.sonar/sonar-scanner-$SONAR_SCANNER_VERSION-maco
curl --create-dirs -sSLo $HOME/.sonar/sonar-scanner.zip https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-$SONAR_SCANNER_VERSION-macosx.zip
unzip -o $HOME/.sonar/sonar-scanner.zip -d $HOME/.sonar/
export PATH=$SONAR_SCANNER_HOME/bin:$PATH
-export SONAR_SCANNER_OPTS=\\"-server\\"
+export SONAR_SCANNER_OPTS="-server"
"
/>
<h4
@@ -194,7 +194,7 @@ exports[`should render correctly for "win": local 1`] = `
defaultMessage="onboarding.analysis.sq_scanner.text"
id="onboarding.analysis.sq_scanner.text"
values={
- Object {
+ {
"dir": <code>
bin
</code>,
@@ -222,17 +222,17 @@ exports[`should render correctly for "win": remote 1`] = `
onboarding.analysis.sq_scanner.header.win
</h4>
<CodeSnippet
- snippet="$env:SONAR_SCANNER_VERSION = \\"4.7.0.2747\\"
-$env:SONAR_DIRECTORY = [System.IO.Path]::Combine($(get-location).Path,\\".sonar\\")
-$env:SONAR_SCANNER_HOME = \\"$env:SONAR_DIRECTORY/sonar-scanner-$env:SONAR_SCANNER_VERSION-windows\\"
+ snippet="$env:SONAR_SCANNER_VERSION = "4.7.0.2747"
+$env:SONAR_DIRECTORY = [System.IO.Path]::Combine($(get-location).Path,".sonar")
+$env:SONAR_SCANNER_HOME = "$env:SONAR_DIRECTORY/sonar-scanner-$env:SONAR_SCANNER_VERSION-windows"
rm $env:SONAR_SCANNER_HOME -Force -Recurse -ErrorAction SilentlyContinue
New-Item -path $env:SONAR_SCANNER_HOME -type directory
-(New-Object System.Net.WebClient).DownloadFile(\\"https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-$env:SONAR_SCANNER_VERSION-windows.zip\\", \\"$env:SONAR_DIRECTORY/sonar-scanner.zip\\")
+(New-Object System.Net.WebClient).DownloadFile("https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-$env:SONAR_SCANNER_VERSION-windows.zip", "$env:SONAR_DIRECTORY/sonar-scanner.zip")
Add-Type -AssemblyName System.IO.Compression.FileSystem
-[System.IO.Compression.ZipFile]::ExtractToDirectory(\\"$env:SONAR_DIRECTORY/sonar-scanner.zip\\", \\"$env:SONAR_DIRECTORY\\")
+[System.IO.Compression.ZipFile]::ExtractToDirectory("$env:SONAR_DIRECTORY/sonar-scanner.zip", "$env:SONAR_DIRECTORY")
rm ./.sonar/sonar-scanner.zip -Force -ErrorAction SilentlyContinue
-$env:Path += \\";$env:SONAR_SCANNER_HOME/bin\\"
-$env:SONAR_SCANNER_OPTS=\\"-server\\"
+$env:Path += ";$env:SONAR_SCANNER_HOME/bin"
+$env:SONAR_SCANNER_OPTS="-server"
"
/>
<h4
diff --git a/server/sonar-web/src/main/js/components/tutorials/other/commands/__tests__/__snapshots__/ExecBuildWrapper-test.tsx.snap b/server/sonar-web/src/main/js/components/tutorials/other/commands/__tests__/__snapshots__/ExecBuildWrapper-test.tsx.snap
index b39d6bc8792..d0b6e2525c9 100644
--- a/server/sonar-web/src/main/js/components/tutorials/other/commands/__tests__/__snapshots__/ExecBuildWrapper-test.tsx.snap
+++ b/server/sonar-web/src/main/js/components/tutorials/other/commands/__tests__/__snapshots__/ExecBuildWrapper-test.tsx.snap
@@ -22,7 +22,7 @@ exports[`Shoud renders for "linux" correctly 1`] = `
defaultMessage="onboarding.analysis.build_wrapper.docs"
id="onboarding.analysis.build_wrapper.docs"
values={
- Object {
+ {
"link": <withAppStateContext(DocLink)
to="/analyzing-source-code/languages/c-family/"
>
@@ -57,7 +57,7 @@ exports[`Shoud renders for "mac" correctly 1`] = `
defaultMessage="onboarding.analysis.build_wrapper.docs"
id="onboarding.analysis.build_wrapper.docs"
values={
- Object {
+ {
"link": <withAppStateContext(DocLink)
to="/analyzing-source-code/languages/c-family/"
>
@@ -92,7 +92,7 @@ exports[`Shoud renders for "win" correctly 1`] = `
defaultMessage="onboarding.analysis.build_wrapper.docs"
id="onboarding.analysis.build_wrapper.docs"
values={
- Object {
+ {
"link": <withAppStateContext(DocLink)
to="/analyzing-source-code/languages/c-family/"
>
diff --git a/server/sonar-web/src/main/js/components/tutorials/other/commands/__tests__/__snapshots__/ExecScanner-test.tsx.snap b/server/sonar-web/src/main/js/components/tutorials/other/commands/__tests__/__snapshots__/ExecScanner-test.tsx.snap
index 1af981a88ff..a50a09d702e 100644
--- a/server/sonar-web/src/main/js/components/tutorials/other/commands/__tests__/__snapshots__/ExecScanner-test.tsx.snap
+++ b/server/sonar-web/src/main/js/components/tutorials/other/commands/__tests__/__snapshots__/ExecScanner-test.tsx.snap
@@ -15,7 +15,7 @@ exports[`should render correctly for "linux" 1`] = `
<CodeSnippet
isOneLine={false}
snippet={
- Array [
+ [
"sonar-scanner",
"-Dsonar.projectKey=projectKey",
"-Dsonar.sources=.",
@@ -32,7 +32,7 @@ exports[`should render correctly for "linux" 1`] = `
defaultMessage="onboarding.analysis.sq_scanner.docs"
id="onboarding.analysis.sq_scanner.docs"
values={
- Object {
+ {
"link": <withAppStateContext(DocLink)
to="/analyzing-source-code/scanners/sonarscanner/"
>
@@ -44,25 +44,25 @@ exports[`should render correctly for "linux" 1`] = `
</p>
<DoneNextSteps
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "projectKey",
"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": [],
}
}
/>
@@ -84,7 +84,7 @@ exports[`should render correctly for "mac" 1`] = `
<CodeSnippet
isOneLine={false}
snippet={
- Array [
+ [
"sonar-scanner",
"-Dsonar.projectKey=projectKey",
"-Dsonar.sources=.",
@@ -101,7 +101,7 @@ exports[`should render correctly for "mac" 1`] = `
defaultMessage="onboarding.analysis.sq_scanner.docs"
id="onboarding.analysis.sq_scanner.docs"
values={
- Object {
+ {
"link": <withAppStateContext(DocLink)
to="/analyzing-source-code/scanners/sonarscanner/"
>
@@ -113,25 +113,25 @@ exports[`should render correctly for "mac" 1`] = `
</p>
<DoneNextSteps
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "projectKey",
"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": [],
}
}
/>
@@ -153,13 +153,13 @@ exports[`should render correctly for "win" 1`] = `
<CodeSnippet
isOneLine={true}
snippet={
- Array [
+ [
"sonar-scanner.bat",
- "-D\\"sonar.projectKey=projectKey\\"",
- "-D\\"sonar.sources=.\\"",
+ "-D"sonar.projectKey=projectKey"",
+ "-D"sonar.sources=."",
undefined,
- "-D\\"sonar.host.url=host\\"",
- "-D\\"sonar.login=token\\"",
+ "-D"sonar.host.url=host"",
+ "-D"sonar.login=token"",
]
}
/>
@@ -170,7 +170,7 @@ exports[`should render correctly for "win" 1`] = `
defaultMessage="onboarding.analysis.sq_scanner.docs"
id="onboarding.analysis.sq_scanner.docs"
values={
- Object {
+ {
"link": <withAppStateContext(DocLink)
to="/analyzing-source-code/scanners/sonarscanner/"
>
@@ -182,25 +182,25 @@ exports[`should render correctly for "win" 1`] = `
</p>
<DoneNextSteps
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "projectKey",
"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": [],
}
}
/>
@@ -222,7 +222,7 @@ exports[`should render correctly for cfamily 1`] = `
<CodeSnippet
isOneLine={false}
snippet={
- Array [
+ [
"sonar-scanner",
"-Dsonar.projectKey=projectKey",
"-Dsonar.sources=.",
@@ -239,7 +239,7 @@ exports[`should render correctly for cfamily 1`] = `
defaultMessage="onboarding.analysis.sq_scanner.docs"
id="onboarding.analysis.sq_scanner.docs"
values={
- Object {
+ {
"link": <withAppStateContext(DocLink)
to="/analyzing-source-code/scanners/sonarscanner/"
>
@@ -251,25 +251,25 @@ exports[`should render correctly for cfamily 1`] = `
</p>
<DoneNextSteps
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "projectKey",
"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": [],
}
}
/>
@@ -291,7 +291,7 @@ exports[`should render correctly for remote execution 1`] = `
<CodeSnippet
isOneLine={false}
snippet={
- Array [
+ [
"sonar-scanner",
"-Dsonar.projectKey=projectKey",
"-Dsonar.sources=.",
@@ -308,7 +308,7 @@ exports[`should render correctly for remote execution 1`] = `
defaultMessage="onboarding.analysis.sq_scanner.docs"
id="onboarding.analysis.sq_scanner.docs"
values={
- Object {
+ {
"link": <withAppStateContext(DocLink)
to="/analyzing-source-code/scanners/sonarscanner/"
>
@@ -320,25 +320,25 @@ exports[`should render correctly for remote execution 1`] = `
</p>
<DoneNextSteps
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "projectKey",
"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/components/tutorials/other/commands/__tests__/__snapshots__/JavaGradle-test.tsx.snap b/server/sonar-web/src/main/js/components/tutorials/other/commands/__tests__/__snapshots__/JavaGradle-test.tsx.snap
index 6ef57829aae..e9fb5192282 100644
--- a/server/sonar-web/src/main/js/components/tutorials/other/commands/__tests__/__snapshots__/JavaGradle-test.tsx.snap
+++ b/server/sonar-web/src/main/js/components/tutorials/other/commands/__tests__/__snapshots__/JavaGradle-test.tsx.snap
@@ -14,7 +14,7 @@ exports[`renders correctly 1`] = `
</InstanceMessage>
<CodeSnippet
snippet="plugins {
- id \\"org.sonarqube\\" version \\"3.5.0.2730\\"
+ id "org.sonarqube" version "3.5.0.2730"
}"
/>
<p
@@ -27,7 +27,7 @@ exports[`renders correctly 1`] = `
defaultMessage="onboarding.analysis.java.gradle.latest_version"
id="onboarding.analysis.java.gradle.latest_version"
values={
- Object {
+ {
"link": <withAppStateContext(DocLink)
to="/analyzing-source-code/scanners/sonarscanner-for-gradle/"
>
@@ -45,7 +45,7 @@ exports[`renders correctly 1`] = `
</p>
<CodeSnippet
snippet={
- Array [
+ [
"./gradlew sonar",
"-Dsonar.projectKey=projectKey",
"-Dsonar.host.url=host",
@@ -60,7 +60,7 @@ exports[`renders correctly 1`] = `
defaultMessage="onboarding.analysis.docs"
id="onboarding.analysis.docs"
values={
- Object {
+ {
"link": <withAppStateContext(DocLink)
to="/analyzing-source-code/scanners/sonarscanner-for-gradle/"
>
@@ -72,25 +72,25 @@ exports[`renders correctly 1`] = `
</p>
<DoneNextSteps
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "projectKey",
"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/components/tutorials/other/commands/__tests__/__snapshots__/JavaMaven-test.tsx.snap b/server/sonar-web/src/main/js/components/tutorials/other/commands/__tests__/__snapshots__/JavaMaven-test.tsx.snap
index 9d9aff4d914..2ff25f85ea7 100644
--- a/server/sonar-web/src/main/js/components/tutorials/other/commands/__tests__/__snapshots__/JavaMaven-test.tsx.snap
+++ b/server/sonar-web/src/main/js/components/tutorials/other/commands/__tests__/__snapshots__/JavaMaven-test.tsx.snap
@@ -16,7 +16,7 @@ exports[`renders correctly 1`] = `
</p>
<CodeSnippet
snippet={
- Array [
+ [
"mvn clean verify sonar:sonar",
"-Dsonar.projectKey=projectKey",
"-Dsonar.host.url=host",
@@ -31,7 +31,7 @@ exports[`renders correctly 1`] = `
defaultMessage="onboarding.analysis.docs"
id="onboarding.analysis.docs"
values={
- Object {
+ {
"link": <withAppStateContext(DocLink)
to="/analyzing-source-code/scanners/sonarscanner-for-maven/"
>
@@ -43,25 +43,25 @@ exports[`renders correctly 1`] = `
</p>
<DoneNextSteps
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "projectKey",
"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/components/tutorials/other/commands/__tests__/__snapshots__/Other-test.tsx.snap b/server/sonar-web/src/main/js/components/tutorials/other/commands/__tests__/__snapshots__/Other-test.tsx.snap
index a64504b17ef..6af41dafc42 100644
--- a/server/sonar-web/src/main/js/components/tutorials/other/commands/__tests__/__snapshots__/Other-test.tsx.snap
+++ b/server/sonar-web/src/main/js/components/tutorials/other/commands/__tests__/__snapshots__/Other-test.tsx.snap
@@ -10,25 +10,25 @@ exports[`renders correctly 1`] = `
<ExecScanner
baseUrl="host"
component={
- Object {
- "breadcrumbs": Array [],
+ {
+ "breadcrumbs": [],
"key": "projectKey",
"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": [],
}
}
isLocal={true}
diff --git a/server/sonar-web/src/main/js/components/ui/__tests__/__snapshots__/Alert-test.tsx.snap b/server/sonar-web/src/main/js/components/ui/__tests__/__snapshots__/Alert-test.tsx.snap
index a21806eaa5b..b6b82635f51 100644
--- a/server/sonar-web/src/main/js/components/ui/__tests__/__snapshots__/Alert-test.tsx.snap
+++ b/server/sonar-web/src/main/js/components/ui/__tests__/__snapshots__/Alert-test.tsx.snap
@@ -112,7 +112,7 @@ exports[`should render properly 1`] = `
isInline={false}
role="alert"
variantInfo={
- Object {
+ {
"backGroundColor": "#f2dede",
"borderColor": "#f4b1b0",
"color": "#862422",
@@ -129,7 +129,7 @@ exports[`should render properly 1`] = `
<Styled(div)
isBanner={false}
variantInfo={
- Object {
+ {
"backGroundColor": "#f2dede",
"borderColor": "#f4b1b0",
"color": "#862422",
@@ -154,7 +154,7 @@ exports[`should render properly 1`] = `
`;
exports[`verification of all variants of alert 1`] = `
-Object {
+{
"backGroundColor": "#f2dede",
"borderColor": "#f4b1b0",
"color": "#862422",
@@ -166,7 +166,7 @@ Object {
`;
exports[`verification of all variants of alert 2`] = `
-Object {
+{
"backGroundColor": "#fcf8e3",
"borderColor": "#faebcc",
"color": "#6f4f17",
@@ -178,7 +178,7 @@ Object {
`;
exports[`verification of all variants of alert 3`] = `
-Object {
+{
"backGroundColor": "#dff0d8",
"borderColor": "#d6e9c6",
"color": "#215821",
@@ -190,7 +190,7 @@ Object {
`;
exports[`verification of all variants of alert 4`] = `
-Object {
+{
"backGroundColor": "#d9edf7",
"borderColor": "#b1dff3",
"color": "#0e516f",
@@ -202,7 +202,7 @@ Object {
`;
exports[`verification of all variants of alert 5`] = `
-Object {
+{
"backGroundColor": "#d9edf7",
"borderColor": "#b1dff3",
"color": "#0e516f",
diff --git a/server/sonar-web/src/main/js/components/ui/__tests__/__snapshots__/CoverageRating-test.tsx.snap b/server/sonar-web/src/main/js/components/ui/__tests__/__snapshots__/CoverageRating-test.tsx.snap
index df6f832df4f..db41604b673 100644
--- a/server/sonar-web/src/main/js/components/ui/__tests__/__snapshots__/CoverageRating-test.tsx.snap
+++ b/server/sonar-web/src/main/js/components/ui/__tests__/__snapshots__/CoverageRating-test.tsx.snap
@@ -3,12 +3,12 @@
exports[`should render correctly 1`] = `
<DonutChart
data={
- Array [
- Object {
+ [
+ {
"fill": "#008223",
"value": 25,
},
- Object {
+ {
"fill": "#D02F3A",
"value": 75,
},
diff --git a/server/sonar-web/src/main/js/components/ui/__tests__/__snapshots__/GenericAvatar-test.tsx.snap b/server/sonar-web/src/main/js/components/ui/__tests__/__snapshots__/GenericAvatar-test.tsx.snap
index 9c2bb0fa7fd..1843c62c51e 100644
--- a/server/sonar-web/src/main/js/components/ui/__tests__/__snapshots__/GenericAvatar-test.tsx.snap
+++ b/server/sonar-web/src/main/js/components/ui/__tests__/__snapshots__/GenericAvatar-test.tsx.snap
@@ -4,7 +4,7 @@ exports[`should render properly 1`] = `
<div
className="rounded"
style={
- Object {
+ {
"backgroundColor": "#c68c01",
"borderRadius": undefined,
"color": "#fff",
@@ -27,7 +27,7 @@ exports[`should render properly 2`] = `
<div
className="rounded"
style={
- Object {
+ {
"backgroundColor": "#c68c01",
"borderRadius": "50%",
"color": "#fff",
diff --git a/server/sonar-web/src/main/js/components/ui/__tests__/__snapshots__/MandatoryFieldsExplanation-test.tsx.snap b/server/sonar-web/src/main/js/components/ui/__tests__/__snapshots__/MandatoryFieldsExplanation-test.tsx.snap
index ca469b7e71c..ef337574ec0 100644
--- a/server/sonar-web/src/main/js/components/ui/__tests__/__snapshots__/MandatoryFieldsExplanation-test.tsx.snap
+++ b/server/sonar-web/src/main/js/components/ui/__tests__/__snapshots__/MandatoryFieldsExplanation-test.tsx.snap
@@ -9,7 +9,7 @@ exports[`should render correctly: default 1`] = `
defaultMessage="fields_marked_with_x_required"
id="fields_marked_with_x_required"
values={
- Object {
+ {
"star": <em
className="mandatory"
>
@@ -30,7 +30,7 @@ exports[`should render correctly: with className 1`] = `
defaultMessage="fields_marked_with_x_required"
id="fields_marked_with_x_required"
values={
- Object {
+ {
"star": <em
className="mandatory"
>
diff --git a/server/sonar-web/src/main/js/components/ui/__tests__/__snapshots__/NavBar-test.tsx.snap b/server/sonar-web/src/main/js/components/ui/__tests__/__snapshots__/NavBar-test.tsx.snap
index a039d0ebb24..835861f3c9d 100644
--- a/server/sonar-web/src/main/js/components/ui/__tests__/__snapshots__/NavBar-test.tsx.snap
+++ b/server/sonar-web/src/main/js/components/ui/__tests__/__snapshots__/NavBar-test.tsx.snap
@@ -4,7 +4,7 @@ exports[`should render correctly 1`] = `
<nav
className="navbar"
style={
- Object {
+ {
"height": 42,
"top": undefined,
}
@@ -13,7 +13,7 @@ exports[`should render correctly 1`] = `
<div
className="navbar-inner"
style={
- Object {
+ {
"height": 42,
"left": 0,
}
@@ -34,7 +34,7 @@ exports[`should render correctly with notif and not limited 1`] = `
<nav
className="navbar"
style={
- Object {
+ {
"height": 42,
"top": undefined,
}
@@ -43,7 +43,7 @@ exports[`should render correctly with notif and not limited 1`] = `
<div
className="navbar-inner navbar-inner-with-notif"
style={
- Object {
+ {
"height": 42,
"left": 0,
}
diff --git a/server/sonar-web/src/main/js/components/ui/__tests__/__snapshots__/NewsBox-test.tsx.snap b/server/sonar-web/src/main/js/components/ui/__tests__/__snapshots__/NewsBox-test.tsx.snap
index 91e58894fbf..dac3a79b149 100644
--- a/server/sonar-web/src/main/js/components/ui/__tests__/__snapshots__/NewsBox-test.tsx.snap
+++ b/server/sonar-web/src/main/js/components/ui/__tests__/__snapshots__/NewsBox-test.tsx.snap
@@ -23,7 +23,7 @@ exports[`should render correctly 1`] = `
<ClearButton
className="button-tiny"
iconProps={
- Object {
+ {
"size": 12,
"thin": true,
}
diff --git a/server/sonar-web/src/main/js/components/ui/__tests__/__snapshots__/popups-test.tsx.snap b/server/sonar-web/src/main/js/components/ui/__tests__/__snapshots__/popups-test.tsx.snap
index 563764c60a5..48509a51d6f 100644
--- a/server/sonar-web/src/main/js/components/ui/__tests__/__snapshots__/popups-test.tsx.snap
+++ b/server/sonar-web/src/main/js/components/ui/__tests__/__snapshots__/popups-test.tsx.snap
@@ -5,14 +5,14 @@ exports[`Popup should render Popup 1`] = `
<div
className="popup is-left-top foo"
style={
- Object {
+ {
"left": -5,
}
}
>
<PopupArrow
style={
- Object {
+ {
"top": -5,
}
}
@@ -25,7 +25,7 @@ exports[`Popup should render PopupArrow 1`] = `
<div
className="popup-arrow"
style={
- Object {
+ {
"left": -5,
}
}
@@ -50,13 +50,13 @@ exports[`PortalPopup should render correctly with overlay 1`] = `
exports[`PortalPopup should render correctly with overlay 2`] = `
<Popup
arrowStyle={
- Object {
+ {
"marginLeft": 0,
}
}
placement="bottom"
style={
- Object {
+ {
"height": 10,
"left": 0,
"top": 0,
diff --git a/server/sonar-web/src/main/js/components/ui/update-center/__tests__/__snapshots__/MetaData-test.tsx.snap b/server/sonar-web/src/main/js/components/ui/update-center/__tests__/__snapshots__/MetaData-test.tsx.snap
index 89e8d74a6d1..cf1c23cd2ab 100644
--- a/server/sonar-web/src/main/js/components/ui/update-center/__tests__/__snapshots__/MetaData-test.tsx.snap
+++ b/server/sonar-web/src/main/js/components/ui/update-center/__tests__/__snapshots__/MetaData-test.tsx.snap
@@ -43,8 +43,8 @@ exports[`should render correctly 1`] = `
</div>
<MetaDataVersions
versions={
- Array [
- Object {
+ [
+ {
"archived": false,
"changeLogUrl": "https://example.com/sonar-java-plugin/release",
"compatibility": "6.7",
@@ -52,7 +52,7 @@ exports[`should render correctly 1`] = `
"downloadURL": "https://example.com/sonar-java-plugin-5.13.0.18197.jar",
"version": "2.0",
},
- Object {
+ {
"archived": true,
"changeLogUrl": "https://example.com/sonar-java-plugin/release",
"compatibility": "6.7",
@@ -109,8 +109,8 @@ exports[`should render correctly with organization 1`] = `
</div>
<MetaDataVersions
versions={
- Array [
- Object {
+ [
+ {
"archived": false,
"changeLogUrl": "https://example.com/sonar-java-plugin/release",
"compatibility": "6.7",
@@ -118,7 +118,7 @@ exports[`should render correctly with organization 1`] = `
"downloadURL": "https://example.com/sonar-java-plugin-5.13.0.18197.jar",
"version": "2.0",
},
- Object {
+ {
"archived": true,
"changeLogUrl": "https://example.com/sonar-java-plugin/release",
"compatibility": "6.7",
diff --git a/server/sonar-web/src/main/js/components/ui/update-center/__tests__/__snapshots__/MetaDataVersions-test.tsx.snap b/server/sonar-web/src/main/js/components/ui/update-center/__tests__/__snapshots__/MetaDataVersions-test.tsx.snap
index 109fe964473..15161bad9ba 100644
--- a/server/sonar-web/src/main/js/components/ui/update-center/__tests__/__snapshots__/MetaDataVersions-test.tsx.snap
+++ b/server/sonar-web/src/main/js/components/ui/update-center/__tests__/__snapshots__/MetaDataVersions-test.tsx.snap
@@ -14,7 +14,7 @@ exports[`should render correctly 1`] = `
<MetaDataVersion
key="3.0"
versionInformation={
- Object {
+ {
"archived": false,
"changeLogUrl": "https://example.com/sonar-java-plugin/release",
"compatibility": "6.7",
diff --git a/server/sonar-web/src/main/js/components/upgrade/__tests__/__snapshots__/SystemUpgradeForm-test.tsx.snap b/server/sonar-web/src/main/js/components/upgrade/__tests__/__snapshots__/SystemUpgradeForm-test.tsx.snap
index 8908270162d..0600e375945 100644
--- a/server/sonar-web/src/main/js/components/upgrade/__tests__/__snapshots__/SystemUpgradeForm-test.tsx.snap
+++ b/server/sonar-web/src/main/js/components/upgrade/__tests__/__snapshots__/SystemUpgradeForm-test.tsx.snap
@@ -21,20 +21,20 @@ exports[`should display correctly for new_minor_version 1`] = `
isPatch={false}
key="6.3"
systemUpgrades={
- Array [
- Object {
+ [
+ {
"changeLogUrl": "changelogurl",
"description": "Version 6.4 description",
"downloadUrl": "downloadurl",
- "plugins": Object {},
+ "plugins": {},
"releaseDate": "2017-06-02",
"version": "6.4",
},
- Object {
+ {
"changeLogUrl": "changelogurl",
"description": "Version 6.3 description",
"downloadUrl": "downloadurl",
- "plugins": Object {},
+ "plugins": {},
"releaseDate": "2017-05-02",
"version": "6.3",
},
@@ -47,28 +47,28 @@ exports[`should display correctly for new_minor_version 1`] = `
isPatch={false}
key="5.6.5"
systemUpgrades={
- Array [
- Object {
+ [
+ {
"changeLogUrl": "changelogurl",
"description": "Version 5.6.7 description",
"downloadUrl": "downloadurl",
- "plugins": Object {},
+ "plugins": {},
"releaseDate": "2017-03-01",
"version": "5.6.7",
},
- Object {
+ {
"changeLogUrl": "changelogurl",
"description": "Version 5.6.6 description",
"downloadUrl": "downloadurl",
- "plugins": Object {},
+ "plugins": {},
"releaseDate": "2017-04-02",
"version": "5.6.6",
},
- Object {
+ {
"changeLogUrl": "changelogurl",
"description": "Version 5.6.5 description",
"downloadUrl": "downloadurl",
- "plugins": Object {},
+ "plugins": {},
"releaseDate": "2017-03-01",
"version": "5.6.5",
},
@@ -122,20 +122,20 @@ exports[`should display correctly for new_patch 1`] = `
isPatch={false}
key="6.3"
systemUpgrades={
- Array [
- Object {
+ [
+ {
"changeLogUrl": "changelogurl",
"description": "Version 6.4 description",
"downloadUrl": "downloadurl",
- "plugins": Object {},
+ "plugins": {},
"releaseDate": "2017-06-02",
"version": "6.4",
},
- Object {
+ {
"changeLogUrl": "changelogurl",
"description": "Version 6.3 description",
"downloadUrl": "downloadurl",
- "plugins": Object {},
+ "plugins": {},
"releaseDate": "2017-05-02",
"version": "6.3",
},
@@ -148,28 +148,28 @@ exports[`should display correctly for new_patch 1`] = `
isPatch={true}
key="5.6.5"
systemUpgrades={
- Array [
- Object {
+ [
+ {
"changeLogUrl": "changelogurl",
"description": "Version 5.6.7 description",
"downloadUrl": "downloadurl",
- "plugins": Object {},
+ "plugins": {},
"releaseDate": "2017-03-01",
"version": "5.6.7",
},
- Object {
+ {
"changeLogUrl": "changelogurl",
"description": "Version 5.6.6 description",
"downloadUrl": "downloadurl",
- "plugins": Object {},
+ "plugins": {},
"releaseDate": "2017-04-02",
"version": "5.6.6",
},
- Object {
+ {
"changeLogUrl": "changelogurl",
"description": "Version 5.6.5 description",
"downloadUrl": "downloadurl",
- "plugins": Object {},
+ "plugins": {},
"releaseDate": "2017-03-01",
"version": "5.6.5",
},
@@ -223,20 +223,20 @@ exports[`should display correctly for pre_lts 1`] = `
isPatch={false}
key="6.3"
systemUpgrades={
- Array [
- Object {
+ [
+ {
"changeLogUrl": "changelogurl",
"description": "Version 6.4 description",
"downloadUrl": "downloadurl",
- "plugins": Object {},
+ "plugins": {},
"releaseDate": "2017-06-02",
"version": "6.4",
},
- Object {
+ {
"changeLogUrl": "changelogurl",
"description": "Version 6.3 description",
"downloadUrl": "downloadurl",
- "plugins": Object {},
+ "plugins": {},
"releaseDate": "2017-05-02",
"version": "6.3",
},
@@ -249,28 +249,28 @@ exports[`should display correctly for pre_lts 1`] = `
isPatch={false}
key="5.6.5"
systemUpgrades={
- Array [
- Object {
+ [
+ {
"changeLogUrl": "changelogurl",
"description": "Version 5.6.7 description",
"downloadUrl": "downloadurl",
- "plugins": Object {},
+ "plugins": {},
"releaseDate": "2017-03-01",
"version": "5.6.7",
},
- Object {
+ {
"changeLogUrl": "changelogurl",
"description": "Version 5.6.6 description",
"downloadUrl": "downloadurl",
- "plugins": Object {},
+ "plugins": {},
"releaseDate": "2017-04-02",
"version": "5.6.6",
},
- Object {
+ {
"changeLogUrl": "changelogurl",
"description": "Version 5.6.5 description",
"downloadUrl": "downloadurl",
- "plugins": Object {},
+ "plugins": {},
"releaseDate": "2017-03-01",
"version": "5.6.5",
},
@@ -324,20 +324,20 @@ exports[`should display correctly for previous_lts 1`] = `
isPatch={false}
key="6.3"
systemUpgrades={
- Array [
- Object {
+ [
+ {
"changeLogUrl": "changelogurl",
"description": "Version 6.4 description",
"downloadUrl": "downloadurl",
- "plugins": Object {},
+ "plugins": {},
"releaseDate": "2017-06-02",
"version": "6.4",
},
- Object {
+ {
"changeLogUrl": "changelogurl",
"description": "Version 6.3 description",
"downloadUrl": "downloadurl",
- "plugins": Object {},
+ "plugins": {},
"releaseDate": "2017-05-02",
"version": "6.3",
},
@@ -350,28 +350,28 @@ exports[`should display correctly for previous_lts 1`] = `
isPatch={false}
key="5.6.5"
systemUpgrades={
- Array [
- Object {
+ [
+ {
"changeLogUrl": "changelogurl",
"description": "Version 5.6.7 description",
"downloadUrl": "downloadurl",
- "plugins": Object {},
+ "plugins": {},
"releaseDate": "2017-03-01",
"version": "5.6.7",
},
- Object {
+ {
"changeLogUrl": "changelogurl",
"description": "Version 5.6.6 description",
"downloadUrl": "downloadurl",
- "plugins": Object {},
+ "plugins": {},
"releaseDate": "2017-04-02",
"version": "5.6.6",
},
- Object {
+ {
"changeLogUrl": "changelogurl",
"description": "Version 5.6.5 description",
"downloadUrl": "downloadurl",
- "plugins": Object {},
+ "plugins": {},
"releaseDate": "2017-03-01",
"version": "5.6.5",
},
@@ -419,20 +419,20 @@ exports[`should display correctly for undefined 1`] = `
isPatch={false}
key="6.3"
systemUpgrades={
- Array [
- Object {
+ [
+ {
"changeLogUrl": "changelogurl",
"description": "Version 6.4 description",
"downloadUrl": "downloadurl",
- "plugins": Object {},
+ "plugins": {},
"releaseDate": "2017-06-02",
"version": "6.4",
},
- Object {
+ {
"changeLogUrl": "changelogurl",
"description": "Version 6.3 description",
"downloadUrl": "downloadurl",
- "plugins": Object {},
+ "plugins": {},
"releaseDate": "2017-05-02",
"version": "6.3",
},
@@ -445,28 +445,28 @@ exports[`should display correctly for undefined 1`] = `
isPatch={false}
key="5.6.5"
systemUpgrades={
- Array [
- Object {
+ [
+ {
"changeLogUrl": "changelogurl",
"description": "Version 5.6.7 description",
"downloadUrl": "downloadurl",
- "plugins": Object {},
+ "plugins": {},
"releaseDate": "2017-03-01",
"version": "5.6.7",
},
- Object {
+ {
"changeLogUrl": "changelogurl",
"description": "Version 5.6.6 description",
"downloadUrl": "downloadurl",
- "plugins": Object {},
+ "plugins": {},
"releaseDate": "2017-04-02",
"version": "5.6.6",
},
- Object {
+ {
"changeLogUrl": "changelogurl",
"description": "Version 5.6.5 description",
"downloadUrl": "downloadurl",
- "plugins": Object {},
+ "plugins": {},
"releaseDate": "2017-03-01",
"version": "5.6.5",
},
diff --git a/server/sonar-web/src/main/js/components/upgrade/__tests__/__snapshots__/SystemUpgradeItem-test.tsx.snap b/server/sonar-web/src/main/js/components/upgrade/__tests__/__snapshots__/SystemUpgradeItem-test.tsx.snap
index 67c4841b456..59c5067e0d4 100644
--- a/server/sonar-web/src/main/js/components/upgrade/__tests__/__snapshots__/SystemUpgradeItem-test.tsx.snap
+++ b/server/sonar-web/src/main/js/components/upgrade/__tests__/__snapshots__/SystemUpgradeItem-test.tsx.snap
@@ -23,7 +23,7 @@ exports[`should display correctly 1`] = `
defaultMessage="system.version_is_availble"
id="system.version_is_availble"
values={
- Object {
+ {
"version": <b>
SonarQube
5.6.7
@@ -57,8 +57,8 @@ exports[`should display correctly 1`] = `
<SystemUpgradeIntermediate
className="spacer-top"
upgrades={
- Array [
- Object {
+ [
+ {
"changeLogUrl": "http://changelog.url/",
"description": "Version 5.6.6 description",
"downloadDeveloperUrl": "http://download.url/developer",
@@ -66,7 +66,7 @@ exports[`should display correctly 1`] = `
"releaseDate": "2017-04-02",
"version": "5.6.6",
},
- Object {
+ {
"changeLogUrl": "http://changelog.url/",
"description": "Version 5.6.5 description",
"downloadDeveloperUrl": "http://download.url/developer",
@@ -123,7 +123,7 @@ exports[`should display correctly 2`] = `
defaultMessage="system.version_is_availble"
id="system.version_is_availble"
values={
- Object {
+ {
"version": <b>
SonarQube
5.6.7
@@ -157,8 +157,8 @@ exports[`should display correctly 2`] = `
<SystemUpgradeIntermediate
className="spacer-top"
upgrades={
- Array [
- Object {
+ [
+ {
"changeLogUrl": "http://changelog.url/",
"description": "Version 5.6.6 description",
"downloadDeveloperUrl": "http://download.url/developer",
@@ -166,7 +166,7 @@ exports[`should display correctly 2`] = `
"releaseDate": "2017-04-02",
"version": "5.6.6",
},
- Object {
+ {
"changeLogUrl": "http://changelog.url/",
"description": "Version 5.6.5 description",
"downloadDeveloperUrl": "http://download.url/developer",
@@ -216,7 +216,7 @@ exports[`should display correctly 3`] = `
defaultMessage="system.version_is_availble"
id="system.version_is_availble"
values={
- Object {
+ {
"version": <b>
SonarQube
5.6.7
@@ -250,8 +250,8 @@ exports[`should display correctly 3`] = `
<SystemUpgradeIntermediate
className="spacer-top"
upgrades={
- Array [
- Object {
+ [
+ {
"changeLogUrl": "http://changelog.url/",
"description": "Version 5.6.6 description",
"downloadDeveloperUrl": "http://download.url/developer",
@@ -259,7 +259,7 @@ exports[`should display correctly 3`] = `
"releaseDate": "2017-04-02",
"version": "5.6.6",
},
- Object {
+ {
"changeLogUrl": "http://changelog.url/",
"description": "Version 5.6.5 description",
"downloadDeveloperUrl": "http://download.url/developer",
@@ -316,7 +316,7 @@ exports[`should display correctly 4`] = `
defaultMessage="system.version_is_availble"
id="system.version_is_availble"
values={
- Object {
+ {
"version": <b>
SonarQube
5.6.7
@@ -350,8 +350,8 @@ exports[`should display correctly 4`] = `
<SystemUpgradeIntermediate
className="spacer-top"
upgrades={
- Array [
- Object {
+ [
+ {
"changeLogUrl": "http://changelog.url/",
"description": "Version 5.6.6 description",
"downloadDeveloperUrl": "http://download.url/developer",
@@ -359,7 +359,7 @@ exports[`should display correctly 4`] = `
"releaseDate": "2017-04-02",
"version": "5.6.6",
},
- Object {
+ {
"changeLogUrl": "http://changelog.url/",
"description": "Version 5.6.5 description",
"downloadDeveloperUrl": "http://download.url/developer",
@@ -416,7 +416,7 @@ exports[`should display correctly 5`] = `
defaultMessage="system.version_is_availble"
id="system.version_is_availble"
values={
- Object {
+ {
"version": <b>
SonarQube
5.6.7
@@ -450,8 +450,8 @@ exports[`should display correctly 5`] = `
<SystemUpgradeIntermediate
className="spacer-top"
upgrades={
- Array [
- Object {
+ [
+ {
"changeLogUrl": "http://changelog.url/",
"description": "Version 5.6.6 description",
"downloadDeveloperUrl": "http://download.url/developer",
@@ -459,7 +459,7 @@ exports[`should display correctly 5`] = `
"releaseDate": "2017-04-02",
"version": "5.6.6",
},
- Object {
+ {
"changeLogUrl": "http://changelog.url/",
"description": "Version 5.6.5 description",
"downloadDeveloperUrl": "http://download.url/developer",
@@ -516,7 +516,7 @@ exports[`should display correctly 6`] = `
defaultMessage="system.version_is_availble"
id="system.version_is_availble"
values={
- Object {
+ {
"version": <b>
SonarQube
5.6.7
@@ -550,8 +550,8 @@ exports[`should display correctly 6`] = `
<SystemUpgradeIntermediate
className="spacer-top"
upgrades={
- Array [
- Object {
+ [
+ {
"changeLogUrl": "http://changelog.url/",
"description": "Version 5.6.6 description",
"downloadDeveloperUrl": "http://download.url/developer",
@@ -559,7 +559,7 @@ exports[`should display correctly 6`] = `
"releaseDate": "2017-04-02",
"version": "5.6.6",
},
- Object {
+ {
"changeLogUrl": "http://changelog.url/",
"description": "Version 5.6.5 description",
"downloadDeveloperUrl": "http://download.url/developer",
@@ -616,7 +616,7 @@ exports[`should display correctly 7`] = `
defaultMessage="system.version_is_availble"
id="system.version_is_availble"
values={
- Object {
+ {
"version": <b>
SonarQube
5.6.7
@@ -649,7 +649,7 @@ exports[`should display correctly 7`] = `
</div>
<SystemUpgradeIntermediate
className="spacer-top"
- upgrades={Array []}
+ upgrades={[]}
/>
<div
className="big-spacer-top"
diff --git a/server/sonar-web/src/main/js/components/workspace/__tests__/__snapshots__/Workspace-test.tsx.snap b/server/sonar-web/src/main/js/components/workspace/__tests__/__snapshots__/Workspace-test.tsx.snap
index 95482d97039..c6fc77fe21b 100644
--- a/server/sonar-web/src/main/js/components/workspace/__tests__/__snapshots__/Workspace-test.tsx.snap
+++ b/server/sonar-web/src/main/js/components/workspace/__tests__/__snapshots__/Workspace-test.tsx.snap
@@ -1,12 +1,12 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
-exports[`should correctly store data locally 1`] = `"[{\\"branchLike\\":{\\"analysisDate\\":\\"2018-01-01\\",\\"excludedFromPurge\\":true,\\"isMain\\":false,\\"name\\":\\"branch-6.7\\"},\\"key\\":\\"foo\\",\\"__type__\\":\\"component\\"},{\\"key\\":\\"foo\\",\\"__type__\\":\\"rule\\"}]"`;
+exports[`should correctly store data locally 1`] = `"[{"branchLike":{"analysisDate":"2018-01-01","excludedFromPurge":true,"isMain":false,"name":"branch-6.7"},"key":"foo","__type__":"component"},{"key":"foo","__type__":"rule"}]"`;
exports[`should render correctly: default 1`] = `
<ContextProvider
value={
- Object {
- "externalRulesRepoNames": Object {},
+ {
+ "externalRulesRepoNames": {},
"openComponent": [Function],
"openRule": [Function],
}
@@ -22,8 +22,8 @@ exports[`should render correctly: default 1`] = `
exports[`should render correctly: open component 1`] = `
<ContextProvider
value={
- Object {
- "externalRulesRepoNames": Object {},
+ {
+ "externalRulesRepoNames": {},
"openComponent": [Function],
"openRule": [Function],
}
@@ -35,9 +35,9 @@ exports[`should render correctly: open component 1`] = `
<WorkspacePortal>
<WorkspaceNav
components={
- Array [
- Object {
- "branchLike": Object {
+ [
+ {
+ "branchLike": {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": false,
@@ -52,16 +52,16 @@ exports[`should render correctly: open component 1`] = `
onRuleClose={[Function]}
onRuleOpen={[Function]}
open={
- Object {
+ {
"component": "foo",
}
}
- rules={Array []}
+ rules={[]}
/>
<withBranchStatusActions(WorkspaceComponentViewer)
component={
- Object {
- "branchLike": Object {
+ {
+ "branchLike": {
"analysisDate": "2018-01-01",
"excludedFromPurge": true,
"isMain": false,
@@ -85,8 +85,8 @@ exports[`should render correctly: open component 1`] = `
exports[`should render correctly: open rule 1`] = `
<ContextProvider
value={
- Object {
- "externalRulesRepoNames": Object {},
+ {
+ "externalRulesRepoNames": {},
"openComponent": [Function],
"openRule": [Function],
}
@@ -97,19 +97,19 @@ exports[`should render correctly: open rule 1`] = `
/>
<WorkspacePortal>
<WorkspaceNav
- components={Array []}
+ components={[]}
onComponentClose={[Function]}
onComponentOpen={[Function]}
onRuleClose={[Function]}
onRuleOpen={[Function]}
open={
- Object {
+ {
"rule": "foo",
}
}
rules={
- Array [
- Object {
+ [
+ {
"key": "foo",
},
]
@@ -124,7 +124,7 @@ exports[`should render correctly: open rule 1`] = `
onMinimize={[Function]}
onResize={[Function]}
rule={
- Object {
+ {
"key": "foo",
}
}
diff --git a/server/sonar-web/src/main/js/components/workspace/__tests__/__snapshots__/WorkspaceComponentViewer-test.tsx.snap b/server/sonar-web/src/main/js/components/workspace/__tests__/__snapshots__/WorkspaceComponentViewer-test.tsx.snap
index 477fa047ae1..c1190c2ad02 100644
--- a/server/sonar-web/src/main/js/components/workspace/__tests__/__snapshots__/WorkspaceComponentViewer-test.tsx.snap
+++ b/server/sonar-web/src/main/js/components/workspace/__tests__/__snapshots__/WorkspaceComponentViewer-test.tsx.snap
@@ -13,7 +13,7 @@ exports[`should render 1`] = `
>
<WorkspaceComponentTitle
component={
- Object {
+ {
"branchLike": undefined,
"key": "foo",
}
@@ -23,7 +23,7 @@ exports[`should render 1`] = `
<div
className="workspace-viewer-container"
style={
- Object {
+ {
"height": 300,
}
}
diff --git a/server/sonar-web/src/main/js/components/workspace/__tests__/__snapshots__/WorkspaceNav-test.tsx.snap b/server/sonar-web/src/main/js/components/workspace/__tests__/__snapshots__/WorkspaceNav-test.tsx.snap
index be3c8da9dcf..2712037667d 100644
--- a/server/sonar-web/src/main/js/components/workspace/__tests__/__snapshots__/WorkspaceNav-test.tsx.snap
+++ b/server/sonar-web/src/main/js/components/workspace/__tests__/__snapshots__/WorkspaceNav-test.tsx.snap
@@ -9,7 +9,7 @@ exports[`should not render open component 1`] = `
>
<WorkspaceNavComponent
component={
- Object {
+ {
"branchLike": undefined,
"key": "foo",
}
@@ -23,7 +23,7 @@ exports[`should not render open component 1`] = `
onClose={[MockFunction]}
onOpen={[MockFunction]}
rule={
- Object {
+ {
"key": "qux",
}
}
@@ -41,7 +41,7 @@ exports[`should not render open rule 1`] = `
>
<WorkspaceNavComponent
component={
- Object {
+ {
"branchLike": undefined,
"key": "foo",
}
@@ -52,7 +52,7 @@ exports[`should not render open rule 1`] = `
/>
<WorkspaceNavComponent
component={
- Object {
+ {
"branchLike": undefined,
"key": "bar",
}
@@ -74,7 +74,7 @@ exports[`should render 1`] = `
>
<WorkspaceNavComponent
component={
- Object {
+ {
"branchLike": undefined,
"key": "foo",
}
@@ -85,7 +85,7 @@ exports[`should render 1`] = `
/>
<WorkspaceNavComponent
component={
- Object {
+ {
"branchLike": undefined,
"key": "bar",
}
@@ -99,7 +99,7 @@ exports[`should render 1`] = `
onClose={[MockFunction]}
onOpen={[MockFunction]}
rule={
- Object {
+ {
"key": "qux",
}
}
diff --git a/server/sonar-web/src/main/js/components/workspace/__tests__/__snapshots__/WorkspaceNavComponent-test.tsx.snap b/server/sonar-web/src/main/js/components/workspace/__tests__/__snapshots__/WorkspaceNavComponent-test.tsx.snap
index 0f6abcbcdb4..4fcd597956e 100644
--- a/server/sonar-web/src/main/js/components/workspace/__tests__/__snapshots__/WorkspaceNavComponent-test.tsx.snap
+++ b/server/sonar-web/src/main/js/components/workspace/__tests__/__snapshots__/WorkspaceNavComponent-test.tsx.snap
@@ -7,7 +7,7 @@ exports[`should render 1`] = `
>
<WorkspaceComponentTitle
component={
- Object {
+ {
"branchLike": undefined,
"key": "foo",
}
diff --git a/server/sonar-web/src/main/js/components/workspace/__tests__/__snapshots__/WorkspaceNavItem-test.tsx.snap b/server/sonar-web/src/main/js/components/workspace/__tests__/__snapshots__/WorkspaceNavItem-test.tsx.snap
index 92280457eef..72e61468cb0 100644
--- a/server/sonar-web/src/main/js/components/workspace/__tests__/__snapshots__/WorkspaceNavItem-test.tsx.snap
+++ b/server/sonar-web/src/main/js/components/workspace/__tests__/__snapshots__/WorkspaceNavItem-test.tsx.snap
@@ -17,7 +17,7 @@ exports[`should render 1`] = `
className="js-close workspace-nav-item-close workspace-header-icon button-small little-spacer-left"
color="#fff"
iconProps={
- Object {
+ {
"size": 12,
}
}
diff --git a/server/sonar-web/src/main/js/components/workspace/__tests__/__snapshots__/WorkspaceNavRule-test.tsx.snap b/server/sonar-web/src/main/js/components/workspace/__tests__/__snapshots__/WorkspaceNavRule-test.tsx.snap
index c5177633579..fcd9b535d8e 100644
--- a/server/sonar-web/src/main/js/components/workspace/__tests__/__snapshots__/WorkspaceNavRule-test.tsx.snap
+++ b/server/sonar-web/src/main/js/components/workspace/__tests__/__snapshots__/WorkspaceNavRule-test.tsx.snap
@@ -8,7 +8,7 @@ exports[`should render 1`] = `
<WorkspaceRuleTitle
limited={true}
rule={
- Object {
+ {
"key": "foo",
}
}
diff --git a/server/sonar-web/src/main/js/components/workspace/__tests__/__snapshots__/WorkspaceRuleDetails-test.tsx.snap b/server/sonar-web/src/main/js/components/workspace/__tests__/__snapshots__/WorkspaceRuleDetails-test.tsx.snap
index 2e907afcd8f..08866c568d3 100644
--- a/server/sonar-web/src/main/js/components/workspace/__tests__/__snapshots__/WorkspaceRuleDetails-test.tsx.snap
+++ b/server/sonar-web/src/main/js/components/workspace/__tests__/__snapshots__/WorkspaceRuleDetails-test.tsx.snap
@@ -16,8 +16,8 @@ exports[`should render 2`] = `
onFilterChange={[Function]}
onTagsChange={[Function]}
referencedRepositories={
- Object {
- "repo": Object {
+ {
+ "repo": {
"key": "repo",
"language": "xoo",
"name": "Xoo Repository",
@@ -25,7 +25,7 @@ exports[`should render 2`] = `
}
}
ruleDetails={
- Object {
+ {
"key": "foo",
"name": "Foo",
}
@@ -35,7 +35,7 @@ exports[`should render 2`] = `
canWrite={false}
onChange={[Function]}
ruleDetails={
- Object {
+ {
"key": "foo",
"name": "Foo",
}
diff --git a/server/sonar-web/src/main/js/components/workspace/__tests__/__snapshots__/WorkspaceRuleViewer-test.tsx.snap b/server/sonar-web/src/main/js/components/workspace/__tests__/__snapshots__/WorkspaceRuleViewer-test.tsx.snap
index 507b6979b9f..502f4d43243 100644
--- a/server/sonar-web/src/main/js/components/workspace/__tests__/__snapshots__/WorkspaceRuleViewer-test.tsx.snap
+++ b/server/sonar-web/src/main/js/components/workspace/__tests__/__snapshots__/WorkspaceRuleViewer-test.tsx.snap
@@ -13,7 +13,7 @@ exports[`should render 1`] = `
>
<WorkspaceRuleTitle
rule={
- Object {
+ {
"key": "foo",
"name": "Foo",
}
@@ -25,7 +25,7 @@ exports[`should render 1`] = `
aria-live="polite"
className="workspace-viewer-container"
style={
- Object {
+ {
"height": 300,
}
}
diff --git a/server/sonar-web/src/main/js/helpers/__tests__/__snapshots__/extensions-test.ts.snap b/server/sonar-web/src/main/js/helpers/__tests__/__snapshots__/extensions-test.ts.snap
index 009678f3d22..6ec1897850b 100644
--- a/server/sonar-web/src/main/js/helpers/__tests__/__snapshots__/extensions-test.ts.snap
+++ b/server/sonar-web/src/main/js/helpers/__tests__/__snapshots__/extensions-test.ts.snap
@@ -1,5 +1,5 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
-exports[`installScript should add the given script to the dom 1`] = `"<script src=\\"custom_script.js\\"></script>"`;
+exports[`installScript should add the given script to the dom 1`] = `"<script src="custom_script.js"></script>"`;
-exports[`installStyles should add the given stylesheet to the dom 1`] = `"<link href=\\"custom_styles.css\\" rel=\\"stylesheet\\">"`;
+exports[`installStyles should add the given stylesheet to the dom 1`] = `"<link href="custom_styles.css" rel="stylesheet">"`;
diff --git a/server/sonar-web/src/main/js/helpers/__tests__/__snapshots__/query-test.ts.snap b/server/sonar-web/src/main/js/helpers/__tests__/__snapshots__/query-test.ts.snap
index 4f0b5538ba8..e3c36aed9da 100644
--- a/server/sonar-web/src/main/js/helpers/__tests__/__snapshots__/query-test.ts.snap
+++ b/server/sonar-web/src/main/js/helpers/__tests__/__snapshots__/query-test.ts.snap
@@ -1,7 +1,7 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`cleanQuery should remove undefined and null query items 1`] = `
-Object {
+{
"a": "b",
"d": "",
"e": 0,
diff --git a/server/sonar-web/src/main/js/types/__tests__/__snapshots__/component-test.ts.snap b/server/sonar-web/src/main/js/types/__tests__/__snapshots__/component-test.ts.snap
index c940d2fd048..ab5a3b6fd8e 100644
--- a/server/sonar-web/src/main/js/types/__tests__/__snapshots__/component-test.ts.snap
+++ b/server/sonar-web/src/main/js/types/__tests__/__snapshots__/component-test.ts.snap
@@ -1,7 +1,7 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`[Function isApplication] should work properly 1`] = `
-Object {
+{
"APP": true,
"DEV": false,
"DIR": false,
@@ -14,7 +14,7 @@ Object {
`;
exports[`[Function isFile] should work properly 1`] = `
-Object {
+{
"APP": false,
"DEV": false,
"DIR": false,
@@ -27,7 +27,7 @@ Object {
`;
exports[`[Function isPortfolioLike] should work properly 1`] = `
-Object {
+{
"APP": false,
"DEV": false,
"DIR": false,
@@ -40,7 +40,7 @@ Object {
`;
exports[`[Function isProject] should work properly 1`] = `
-Object {
+{
"APP": false,
"DEV": false,
"DIR": false,
@@ -53,7 +53,7 @@ Object {
`;
exports[`[Function isView] should work properly 1`] = `
-Object {
+{
"APP": true,
"DEV": false,
"DIR": false,