diff options
Diffstat (limited to 'app/assets/javascripts/pipelines/stores/test_reports/utils.js')
-rw-r--r-- | app/assets/javascripts/pipelines/stores/test_reports/utils.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/assets/javascripts/pipelines/stores/test_reports/utils.js b/app/assets/javascripts/pipelines/stores/test_reports/utils.js index c426a5f0bb5..95466587d6b 100644 --- a/app/assets/javascripts/pipelines/stores/test_reports/utils.js +++ b/app/assets/javascripts/pipelines/stores/test_reports/utils.js @@ -1,5 +1,5 @@ import { TestStatus } from '~/pipelines/constants'; -import { formatTime } from '~/lib/utils/datetime_utility'; +import { formatTime, secondsToMilliseconds } from '~/lib/utils/datetime_utility'; function iconForTestStatus(status) { switch (status) { @@ -12,7 +12,7 @@ function iconForTestStatus(status) { } } -export const formattedTime = timeInSeconds => formatTime(timeInSeconds * 1000); +export const formattedTime = timeInSeconds => formatTime(secondsToMilliseconds(timeInSeconds)); export const addIconStatus = testCase => ({ ...testCase, |