From 2910a909169ad16060de893e75410585b0aa6dfb Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Tue, 12 Feb 2013 14:48:16 -0800 Subject: [PATCH] Round spec time to 2 decimal points --- spec/atom-reporter.coffee | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/spec/atom-reporter.coffee b/spec/atom-reporter.coffee index 92030753e..2f307b163 100644 --- a/spec/atom-reporter.coffee +++ b/spec/atom-reporter.coffee @@ -92,7 +92,9 @@ class AtomReporter extends View rootSuite = rootSuite.parentSuite while rootSuite.parentSuite @message.text rootSuite.description - @time.text ((new Date().getTime() - @startedAt.getTime()) / 1000) + "s" + time = "#{Math.round((new Date().getTime() - @startedAt.getTime()) / 10)}" + time = "0#{time}" if time.length < 3 + @time.text "#{time[0...-2]}.#{time[-2..]}s" addSpecs: (specs) -> for spec in specs