File tree Expand file tree Collapse file tree 1 file changed +1
-79
lines changed
Expand file tree Collapse file tree 1 file changed +1
-79
lines changed Original file line number Diff line number Diff line change 11import { NAN_STRING } from '@scality/core-ui/dist/components/constants' ;
2- import { STATUS_CRITICAL , STATUS_HEALTH , STATUS_WARNING } from '../constants' ;
2+ import { STATUS_CRITICAL , STATUS_WARNING } from '../constants' ;
33import {
44 allSizeUnitsToBytes ,
55 fromMilliSectoAge ,
@@ -255,84 +255,6 @@ describe('getSegments', () => {
255255 } ,
256256 ] ,
257257 } ,
258- {
259- name : 'Healthy and NaN overlapping' ,
260- pointsWatchdog : [
261- [ 1 , '1' ] ,
262- [ 2 , '1' ] ,
263- [ 3 , '1' ] ,
264- [ 4 , '1' ] ,
265- [ 5 , NAN_STRING ] ,
266- [ 6 , '1' ] ,
267- ] ,
268- pointsDegraded : [
269- [ 1 , NAN_STRING ] ,
270- [ 2 , NAN_STRING ] ,
271- [ 3 , NAN_STRING ] ,
272- [ 4 , NAN_STRING ] ,
273- [ 5 , NAN_STRING ] ,
274- [ 6 , NAN_STRING ] ,
275- ] ,
276- pointsAtRisk : [
277- [ 1 , NAN_STRING ] ,
278- [ 2 , NAN_STRING ] ,
279- [ 3 , NAN_STRING ] ,
280- [ 4 , NAN_STRING ] ,
281- [ 5 , NAN_STRING ] ,
282- [ 6 , NAN_STRING ] ,
283- ] ,
284- expected : [
285- {
286- startsAt : 1 ,
287- endsAt : 5 ,
288- type : STATUS_HEALTH ,
289- } ,
290- {
291- startsAt : 5 ,
292- endsAt : 6 ,
293- type : NAN_STRING ,
294- } ,
295- {
296- startsAt : 6 ,
297- endsAt : null ,
298- type : STATUS_HEALTH ,
299- } ,
300- ] ,
301- } ,
302- {
303- name : 'Healthy' ,
304- pointsWatchdog : [
305- [ 1 , '1' ] ,
306- [ 2 , '1' ] ,
307- [ 3 , '1' ] ,
308- [ 4 , '1' ] ,
309- [ 5 , '1' ] ,
310- [ 6 , '1' ] ,
311- ] ,
312- pointsDegraded : [
313- [ 1 , NAN_STRING ] ,
314- [ 2 , NAN_STRING ] ,
315- [ 3 , NAN_STRING ] ,
316- [ 4 , NAN_STRING ] ,
317- [ 5 , NAN_STRING ] ,
318- [ 6 , NAN_STRING ] ,
319- ] ,
320- pointsAtRisk : [
321- [ 1 , NAN_STRING ] ,
322- [ 2 , NAN_STRING ] ,
323- [ 3 , NAN_STRING ] ,
324- [ 4 , NAN_STRING ] ,
325- [ 5 , NAN_STRING ] ,
326- [ 6 , NAN_STRING ] ,
327- ] ,
328- expected : [
329- {
330- startsAt : 1 ,
331- endsAt : null ,
332- type : STATUS_HEALTH ,
333- } ,
334- ] ,
335- } ,
336258 {
337259 name : 'In danger' ,
338260 pointsWatchdog : [
You can’t perform that action at this time.
0 commit comments