4
4
// SPDX-License-Identifier: Apache-2.0
5
5
import { Criticality } from '../../../../shared/shared-types' ;
6
6
import { faker } from '../../../../testing/Faker' ;
7
- import { criticalityColor , OpossumColors } from '../../../shared-styles' ;
7
+ import {
8
+ classificationUnknownColor ,
9
+ criticalityColor ,
10
+ OpossumColors ,
11
+ } from '../../../shared-styles' ;
8
12
import {
9
13
ClassificationStatistics ,
10
14
ProgressBarData ,
@@ -98,7 +102,7 @@ describe('ProgressBar helpers', () => {
98
102
99
103
const background = getClassificationBarBackground ( testProgressBarData ) ;
100
104
101
- const expectedBackground = `linear-gradient(to right, ${ classificationStatistics [ 3 ] . color } 0% 5% , ${ classificationStatistics [ 2 ] . color } 5% 25% , ${ classificationStatistics [ 1 ] . color } 25% 40% , ${ classificationStatistics [ 0 ] . color } 40% 65% , hsl(220, 41%, 92%) 65% 100% )` ;
105
+ const expectedBackground = `linear-gradient(to right, ${ classificationStatistics [ 3 ] . color } 0% 5% , ${ classificationStatistics [ 2 ] . color } 5% 25% , ${ classificationStatistics [ 1 ] . color } 25% 40% , ${ classificationStatistics [ 0 ] . color } 40% 65% , ${ classificationUnknownColor } 65% 100% )` ;
102
106
expect ( background ) . toEqual ( expectedBackground ) ;
103
107
} ) ;
104
108
@@ -125,7 +129,7 @@ describe('ProgressBar helpers', () => {
125
129
126
130
const background = getClassificationBarBackground ( testProgressBarData ) ;
127
131
128
- const expectedBackground = `linear-gradient(to right, ${ classificationStatistics [ 11 ] . color } 0% 5% , ${ classificationStatistics [ 2 ] . color } 5% 25% , ${ classificationStatistics [ 1 ] . color } 25% 40% , ${ classificationStatistics [ 0 ] . color } 40% 65% , hsl(220, 41%, 92%) 65% 100% )` ;
132
+ const expectedBackground = `linear-gradient(to right, ${ classificationStatistics [ 11 ] . color } 0% 5% , ${ classificationStatistics [ 2 ] . color } 5% 25% , ${ classificationStatistics [ 1 ] . color } 25% 40% , ${ classificationStatistics [ 0 ] . color } 40% 65% , ${ classificationUnknownColor } 65% 100% )` ;
129
133
expect ( background ) . toEqual ( expectedBackground ) ;
130
134
} ) ;
131
135
@@ -168,7 +172,7 @@ describe('ProgressBar helpers', () => {
168
172
169
173
const background = getClassificationBarBackground ( testProgressBarData ) ;
170
174
171
- const expectedBackground = `linear-gradient(to right, ${ classificationStatisticsEntry . color } 0% 25% , hsl(220, 41%, 92%) 25% 100% )` ;
175
+ const expectedBackground = `linear-gradient(to right, ${ classificationStatisticsEntry . color } 0% 25% , ${ classificationUnknownColor } 25% 100% )` ;
172
176
expect ( background ) . toBe ( expectedBackground ) ;
173
177
} ) ;
174
178
} ) ;
0 commit comments