diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-04-01 18:07:56 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-04-01 18:07:56 +0000 |
commit | 33aa02e7a38d8dfc5e470dd5d776c8d4ce5b2dd5 (patch) | |
tree | 8cd2bc4711d3a017d839760c7fbea267e2ba4951 /spec/frontend/monitoring/store/utils_spec.js | |
parent | 1219a9dce91f4edbc135dfc08299b4122b4825a8 (diff) | |
download | gitlab-ce-33aa02e7a38d8dfc5e470dd5d776c8d4ce5b2dd5.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/frontend/monitoring/store/utils_spec.js')
-rw-r--r-- | spec/frontend/monitoring/store/utils_spec.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/spec/frontend/monitoring/store/utils_spec.js b/spec/frontend/monitoring/store/utils_spec.js index 4bbbe33647c..3e83ba2858e 100644 --- a/spec/frontend/monitoring/store/utils_spec.js +++ b/spec/frontend/monitoring/store/utils_spec.js @@ -220,6 +220,15 @@ describe('mapToDashboardViewModel', () => { expect(getMappedPanel().yAxis.format).toBe(SUPPORTED_FORMATS.number); }); + + // This property allows single_stat panels to render percentile values + it('group maxValue', () => { + setupWithPanel({ + max_value: 100, + }); + + expect(getMappedPanel().maxValue).toBe(100); + }); }); describe('metrics mapping', () => { |