Round test duration to whole seconds if it's more then 1s

Report will contain less accurate information but it will be easier to read.
This commit is contained in:
Michal Dorner 2021-03-31 21:33:21 +02:00
parent 3c4d3b3836
commit 96df6db61e
No known key found for this signature in database
GPG key ID: 9EEE04B48DA36786

View file

@ -41,7 +41,7 @@ export function ellipsis(text: string, maxLength: number): string {
export function formatTime(ms: number): string {
if (ms > 1000) {
return `${(ms / 1000).toFixed(3)}s`
return `${Math.round(ms / 1000)}s`
}
return `${Math.round(ms)}ms`