Skip to content

Commit

Permalink
fix: under 2 seconds use milliseconds
Browse files Browse the repository at this point in the history
  • Loading branch information
bahmutov committed Dec 2, 2022
1 parent 0dd839e commit c2dbcc7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Cypress.Commands.add(
)

function formatDurationMs(ms) {
if (ms < 1000) {
if (ms < 2000) {
return ms + 'ms'
} else {
return format(ms, { leading: true })
Expand Down

0 comments on commit c2dbcc7

Please sign in to comment.