aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/apps/issues/__tests__
diff options
context:
space:
mode:
author7PH <benjamin.raymond@sonarsource.com>2023-08-29 14:34:05 +0200
committersonartech <sonartech@sonarsource.com>2023-08-30 20:03:06 +0000
commita071713469d8ab358099b913a214aab0aa27cd4a (patch)
treedf920a3ca7b9f7836c2593adc98a696ae588a97e /server/sonar-web/src/main/js/apps/issues/__tests__
parent41ab6192d3d537d75f37994bf9c223d365366ce1 (diff)
downloadsonarqube-a071713469d8ab358099b913a214aab0aa27cd4a.tar.gz
sonarqube-a071713469d8ab358099b913a214aab0aa27cd4a.zip
SONAR-20023 Keep support for the old severity filter if provided in the URL
Diffstat (limited to 'server/sonar-web/src/main/js/apps/issues/__tests__')
-rw-r--r--server/sonar-web/src/main/js/apps/issues/__tests__/utils-test.ts9
1 files changed, 3 insertions, 6 deletions
diff --git a/server/sonar-web/src/main/js/apps/issues/__tests__/utils-test.ts b/server/sonar-web/src/main/js/apps/issues/__tests__/utils-test.ts
index 15c4260b27c..e366cd670d5 100644
--- a/server/sonar-web/src/main/js/apps/issues/__tests__/utils-test.ts
+++ b/server/sonar-web/src/main/js/apps/issues/__tests__/utils-test.ts
@@ -102,6 +102,7 @@ describe('serialize/deserialize', () => {
s: 'rules',
scopes: 'a,b',
inNewCodePeriod: 'true',
+ severities: 'a,b',
sonarsourceSecurity: 'a,b',
statuses: 'a,b',
tags: 'a,b',
@@ -133,11 +134,7 @@ describe('serialize/deserialize', () => {
cwe: [],
directories: [],
files: [],
- impactSeverities: [
- SoftwareImpactSeverity.Low,
- SoftwareImpactSeverity.High,
- SoftwareImpactSeverity.Medium,
- ],
+ impactSeverities: [SoftwareImpactSeverity.Low],
impactSoftwareQualities: [SoftwareQuality.Maintainability],
inNewCodePeriod: false,
issues: [],
@@ -153,7 +150,7 @@ describe('serialize/deserialize', () => {
resolved: true,
rules: [],
scopes: [],
- severities: [],
+ severities: ['CRITICAL', 'MAJOR'],
sonarsourceSecurity: [],
sort: '',
statuses: [],