Skip to content

Commit a071280

Browse files
committed
singualr/plural fix
1 parent 30a4120 commit a071280

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/cli/reporters/pretty.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,9 @@ export function print_lines({ report, context }: Report, params: CliArguments, {
7676
if (min_file_line_coverage && min_file_line_coverage !== 0 && sheet.line_coverage_ratio < min_file_line_coverage) {
7777
let lines_to_cover = min_file_line_coverage * sheet.total_lines - sheet.covered_lines
7878
output.push(
79-
`Tip: cover ${Math.ceil(lines_to_cover)} more lines to meet the file threshold of ${percentage(min_file_line_coverage)}`,
79+
`Tip: cover ${Math.ceil(lines_to_cover)} more ${
80+
lines_to_cover === 1 ? 'line' : 'lines'
81+
} to meet the file threshold of ${percentage(min_file_line_coverage)}`,
8082
)
8183
}
8284
output.push(styleText('dim', '─'.repeat(print_width)))

0 commit comments

Comments
 (0)