719 of 883 branches covered (81.43%)
Branch coverage included in aggregate %.
484 of 506 new or added lines in 13 files covered. (95.65%)
1 existing line in 1 file now uncovered.8298 of 8846 relevant lines covered (93.81%)
16.56 hits per line
|
export const getStatusClass = (status: string) => { |
|
|
switch (status.toLowerCase()) {
|
5✔ |
|
case 'canceled': |
|
|
return 'text-red-500'; |
2✔ |
|
case 'delivered': |
|
|
return 'text-green-500'; |
3✔ |
|
case 'pending': |
|
|
default:
|
|
NEW
|
return 'text-black'; |
× |
|
} |
5✔ |
|
}; |
5✔ |