( container: HTMLElement, info: DevelopmentInfo, )
| 24 | } |
| 25 | |
| 26 | export function renderDevelopmentInfo( |
| 27 | container: HTMLElement, |
| 28 | info: DevelopmentInfo, |
| 29 | ): void { |
| 30 | if (info.branch !== null) { |
| 31 | appendDevelopmentInfoRow(container, "Branch:", info.branch); |
| 32 | } |
| 33 | |
| 34 | if (info.commit !== null) { |
| 35 | appendDevelopmentInfoRow(container, "Commit:", info.commit); |
| 36 | } |
| 37 | |
| 38 | if (info.dirty !== null) { |
| 39 | const statusText = info.dirty ? "Yes (uncommitted changes)" : "No"; |
| 40 | const statusClass = info.dirty |
| 41 | ? "qa-dev-dirty-status" |
| 42 | : "qa-dev-clean-status"; |
| 43 | appendDevelopmentInfoRow( |
| 44 | container, |
| 45 | "Uncommitted changes:", |
| 46 | statusText, |
| 47 | { className: statusClass }, |
| 48 | ); |
| 49 | } |
| 50 | } |
no test coverage detected