diff options
author | Phil Hughes <me@iamphill.com> | 2019-06-12 13:25:13 +0000 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2019-06-12 13:25:13 +0000 |
commit | 6766a88adeee7c28b456eee47155a8a318ce1b0a (patch) | |
tree | 0690edb4363147b3bff09553e6e4c01942d87bba /spec | |
parent | d36b6a70829ab15e61da34cdb30b882c92caad32 (diff) | |
parent | fce7e7374f01a23566ca04ac36776cbf90def883 (diff) | |
download | gitlab-ce-6766a88adeee7c28b456eee47155a8a318ce1b0a.tar.gz |
Merge branch '59651-remove-unnecessary-decimal-places-on-chart-axes' into 'master'
Resolve "Remove unnecessary decimal places on chart axes"
Closes #59651
See merge request gitlab-org/gitlab-ce!29468
Diffstat (limited to 'spec')
-rw-r--r-- | spec/javascripts/monitoring/charts/area_spec.js | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/spec/javascripts/monitoring/charts/area_spec.js b/spec/javascripts/monitoring/charts/area_spec.js index 56609665b88..ac7e0bb12a1 100644 --- a/spec/javascripts/monitoring/charts/area_spec.js +++ b/spec/javascripts/monitoring/charts/area_spec.js @@ -214,6 +214,20 @@ describe('Area component', () => { }); }); + describe('chartOptions', () => { + describe('yAxis formatter', () => { + let format; + + beforeEach(() => { + format = areaChart.vm.chartOptions.yAxis.axisLabel.formatter; + }); + + it('rounds to 3 decimal places', () => { + expect(format(0.88888)).toBe('0.889'); + }); + }); + }); + describe('scatterSeries', () => { it('utilizes deployment data', () => { expect(areaChart.vm.scatterSeries.data).toEqual([ |