michaelleeallen / mocha-junit-reporter

A JUnit XML reporter for mocha.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Times use 4 decimal places but only 3 are needed

gabegorelick opened this issue · comments

#97 added .toFixed(4) calls whenever a time value is output. But my understanding is durations are always measured in integer number of milliseconds. Thus, the last digit will always be 0. Should .toFixed(3) be used instead?

Happy to throw together a PR if there's consensus.

I'd prefer using toFixed(3) too as that would make the output conform the Maven Surefire schema