mirror of
https://github.com/dorny/test-reporter.git
synced 2025-12-16 14:27:10 +01:00
Update dist/index.js
This commit is contained in:
parent
c75a9dd8c8
commit
07a0223ee3
4 changed files with 117 additions and 75 deletions
|
|
@ -39,7 +39,7 @@ export function ellipsis(text: string, maxLength: number): string {
|
|||
return text.substr(0, maxLength - 3) + '...'
|
||||
}
|
||||
|
||||
export function formatTime(ms: number) {
|
||||
export function formatTime(ms: number): string {
|
||||
if (ms > 1000) {
|
||||
return `${(ms / 1000).toFixed(3)}s`
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue