diff options
author | Timmy Willison <timmywil@users.noreply.github.com> | 2025-01-14 05:15:49 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-01-14 11:15:49 +0100 |
commit | b6857536606d5d0dd1b07ada519f845cdac5c96e (patch) | |
tree | c12edf53f44ae773bb3b95d8e727da888e2188e9 /tests/runner/lib/prettyMs.js | |
parent | 44b0b0af50999a86c30fb9a48214bf5a333527af (diff) | |
download | jquery-ui-b6857536606d5d0dd1b07ada519f845cdac5c96e.tar.gz jquery-ui-b6857536606d5d0dd1b07ada519f845cdac5c96e.zip |
Tests: Migrate test runner to jquery-test-runner
Closes gh-2325
Diffstat (limited to 'tests/runner/lib/prettyMs.js')
-rw-r--r-- | tests/runner/lib/prettyMs.js | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/tests/runner/lib/prettyMs.js b/tests/runner/lib/prettyMs.js deleted file mode 100644 index 99bae2b35..000000000 --- a/tests/runner/lib/prettyMs.js +++ /dev/null @@ -1,18 +0,0 @@ -/** - * Pretty print a time in milliseconds. - */ -export function prettyMs( time ) { - const minutes = Math.floor( time / 60000 ); - const seconds = Math.floor( time / 1000 ); - const ms = Math.floor( time % 1000 ); - - let prettyTime = `${ ms }ms`; - if ( seconds > 0 ) { - prettyTime = `${ seconds }s ${ prettyTime }`; - } - if ( minutes > 0 ) { - prettyTime = `${ minutes }m ${ prettyTime }`; - } - - return prettyTime; -} |