Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'spec/frontend/monitoring/components/charts/single_stat_spec.js')
-rw-r--r--spec/frontend/monitoring/components/charts/single_stat_spec.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/spec/frontend/monitoring/components/charts/single_stat_spec.js b/spec/frontend/monitoring/components/charts/single_stat_spec.js
index 1aa7ba867b4..fb0682d0338 100644
--- a/spec/frontend/monitoring/components/charts/single_stat_spec.js
+++ b/spec/frontend/monitoring/components/charts/single_stat_spec.js
@@ -20,25 +20,25 @@ describe('Single Stat Chart component', () => {
describe('computed', () => {
describe('statValue', () => {
it('should interpolate the value and unit props', () => {
- expect(singleStatChart.vm.statValue).toBe('91MB');
+ expect(singleStatChart.vm.statValue).toBe('91.00MB');
});
it('should change the value representation to a percentile one', () => {
singleStatChart.setProps({
graphData: {
...graphDataPrometheusQuery,
- max_value: 120,
+ maxValue: 120,
},
});
- expect(singleStatChart.vm.statValue).toContain('75.8');
+ expect(singleStatChart.vm.statValue).toContain('75.83%');
});
- it('should display NaN for non numeric max_value values', () => {
+ it('should display NaN for non numeric maxValue values', () => {
singleStatChart.setProps({
graphData: {
...graphDataPrometheusQuery,
- max_value: 'not a number',
+ maxValue: 'not a number',
},
});
@@ -60,7 +60,7 @@ describe('Single Stat Chart component', () => {
],
},
],
- max_value: 120,
+ maxValue: 120,
},
});