summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/pipelines/components
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2019-12-04 18:08:46 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2019-12-04 18:08:46 +0000
commitb41cd8cb92d53454b2b160ba922d33801933a9cf (patch)
tree3519da8856f8bf12ce9e75248e5ecb9ed4eacf14 /app/assets/javascripts/pipelines/components
parent8d3aee3636da5181ae94d23b47c6794b5610ab01 (diff)
downloadgitlab-ce-b41cd8cb92d53454b2b160ba922d33801933a9cf.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/assets/javascripts/pipelines/components')
-rw-r--r--app/assets/javascripts/pipelines/components/test_reports/test_summary.vue4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/assets/javascripts/pipelines/components/test_reports/test_summary.vue b/app/assets/javascripts/pipelines/components/test_reports/test_summary.vue
index dce8b020d6f..1bac7ce9ac5 100644
--- a/app/assets/javascripts/pipelines/components/test_reports/test_summary.vue
+++ b/app/assets/javascripts/pipelines/components/test_reports/test_summary.vue
@@ -28,7 +28,9 @@ export default {
return this.report.name || __('Summary');
},
successPercentage() {
- return Math.round((this.report.success_count / this.report.total_count) * 100) || 0;
+ // Returns a full number when the decimals equal .00.
+ // Otherwise returns a float to two decimal points
+ return Number(((this.report.success_count / this.report.total_count) * 100 || 0).toFixed(2));
},
formattedDuration() {
return formatTime(secondsToMilliseconds(this.report.total_time));