@@ -168,7 +168,7 @@ describe('calculations', () => {
168168 expect ( result . isHealthy ) . toBe ( false ) ; // < 70%
169169 } ) ;
170170
171- it ( 'marks as healthy when progress >= 70%' , ( ) => {
171+ it ( 'returns progress information when progress >= 70%' , ( ) => {
172172 const items = Array . from ( { length : 10 } , ( _ , i ) => {
173173 const item = createManagedResourceItem ( `Pod${ i } ` ) ;
174174 if ( i < 8 ) {
@@ -183,11 +183,11 @@ describe('calculations', () => {
183183 const result = calculateGitOpsSegments ( items , false , undefined , true , mockT ) ;
184184
185185 expect ( result . segments [ 0 ] . percentage ) . toBe ( 80 ) ;
186- expect ( result . segments [ 0 ] . color ) . toBe ( HINT_COLORS . healthy ) ;
187- expect ( result . isHealthy ) . toBe ( true ) ;
186+ expect ( result . segments [ 0 ] . color ) . toBe ( HINT_COLORS . flux ) ;
187+ expect ( result . isHealthy ) . toBe ( false ) ;
188188 } ) ;
189189
190- it ( 'uses progress color when progress < 70%' , ( ) => {
190+ it ( 'returns progress information when progress < 70%' , ( ) => {
191191 const items = Array . from ( { length : 10 } , ( _ , i ) => {
192192 const item = createManagedResourceItem ( `Pod${ i } ` ) ;
193193 if ( i < 5 ) {
@@ -202,7 +202,7 @@ describe('calculations', () => {
202202 const result = calculateGitOpsSegments ( items , false , undefined , true , mockT ) ;
203203
204204 expect ( result . segments [ 0 ] . percentage ) . toBe ( 50 ) ;
205- expect ( result . segments [ 0 ] . color ) . toBe ( HINT_COLORS . progress ) ;
205+ expect ( result . segments [ 0 ] . color ) . toBe ( HINT_COLORS . flux ) ;
206206 expect ( result . isHealthy ) . toBe ( false ) ;
207207 } ) ;
208208 } ) ;
0 commit comments