665 of 821 branches covered (81.0%)
Branch coverage included in aggregate %.
433 of 489 new or added lines in 13 files covered. (88.55%)
7 existing lines in 1 file now uncovered.7643 of 8212 relevant lines covered (93.07%)
14.66 hits per line
|
export const getStatusClass = (status: string) => { |
|
|
switch (status.toLowerCase()) {
|
4✔ |
|
case 'canceled': |
|
|
return 'text-red-500'; |
2✔ |
|
case 'delivered': |
|
|
return 'text-green-500'; |
2✔ |
|
case 'pending': |
|
|
default:
|
|
NEW
|
return 'text-black'; |
× |
|
} |
4✔ |
|
}; |
4✔ |