mirror of
https://github.com/dorny/test-reporter.git
synced 2025-12-16 14:27:10 +01:00
Add table with reports results if there are more test runs
This commit is contained in:
parent
96e91aa726
commit
c75a9dd8c8
7 changed files with 329 additions and 308 deletions
|
|
@ -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`
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue