(diff: number)
| 74 | } |
| 75 | |
| 76 | export function getDiffMarker(diff: number): string { |
| 77 | if (diff > 0) { |
| 78 | return '↑'; |
| 79 | } |
| 80 | if (diff < 0) { |
| 81 | return '↓'; |
| 82 | } |
| 83 | return ''; |
| 84 | } |
| 85 | |
| 86 | export function colorByScoreDiff(text: string, diff: number): InlineText { |
| 87 | const color = diff > 0 ? 'green' : diff < 0 ? 'red' : 'gray'; |
no outgoing calls
no test coverage detected