(volume: Percentage)
| 55 | * @returns The new volume percentage after increasing, or `100` if already at maximum. |
| 56 | */ |
| 57 | export function increaseVolume(volume: Percentage): Percentage { |
| 58 | if (canIncreaseVolume(volume)) { |
| 59 | return (volume + VOLUME_STEP) as Percentage; |
| 60 | } |
| 61 | |
| 62 | return MAXIMUM_VOLUME_PERCENTAGE; |
| 63 | } |
no test coverage detected