mirror of
https://github.com/dorny/test-reporter.git
synced 2026-02-03 03:35:22 -08:00
Add table with reports results if there are more test runs
This commit is contained in:
@@ -38,3 +38,11 @@ export function ellipsis(text: string, maxLength: number): string {
|
||||
|
||||
return text.substr(0, maxLength - 3) + '...'
|
||||
}
|
||||
|
||||
export function formatTime(ms: number) {
|
||||
if (ms > 1000) {
|
||||
return `${(ms / 1000).toFixed(3)}s`
|
||||
}
|
||||
|
||||
return `${Math.round(ms)}ms`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user