diff options
author | Tristan Read <tread@gitlab.com> | 2019-03-29 11:33:10 +0300 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2019-03-29 11:33:10 +0300 |
commit | f4b8ec7ea1ecc517bd4a15e56cce6f7cd9eeb70c (patch) | |
tree | 4943e501a950c8ac4a0e5805c3411a3bd9d6e0a9 /spec/javascripts/monitoring | |
parent | 3a477fec8f1fe6cf1da70a8ae0a8473ab26235bc (diff) |
Add requested resources to cluster health - ce port
Diffstat (limited to 'spec/javascripts/monitoring')
-rw-r--r-- | spec/javascripts/monitoring/charts/area_spec.js | 4 | ||||
-rw-r--r-- | spec/javascripts/monitoring/mock_data.js | 5 |
2 files changed, 9 insertions, 0 deletions
diff --git a/spec/javascripts/monitoring/charts/area_spec.js b/spec/javascripts/monitoring/charts/area_spec.js index fb49290be19..549a7935c0f 100644 --- a/spec/javascripts/monitoring/charts/area_spec.js +++ b/spec/javascripts/monitoring/charts/area_spec.js @@ -203,6 +203,10 @@ describe('Area component', () => { .length, ).toBe(data.length); }); + + it('formats line width correctly', () => { + expect(chartData[0].lineStyle.width).toBe(2); + }); }); describe('scatterSeries', () => { diff --git a/spec/javascripts/monitoring/mock_data.js b/spec/javascripts/monitoring/mock_data.js index ffc7148fde2..6d4ef960c1a 100644 --- a/spec/javascripts/monitoring/mock_data.js +++ b/spec/javascripts/monitoring/mock_data.js @@ -330,6 +330,11 @@ export const metricsGroupsAPIResponse = { weight: 1, queries: [ { + appearance: { + line: { + width: 2, + }, + }, query_range: 'avg(rate(container_cpu_usage_seconds_total{%{environment_filter}}[2m])) * 100', label: 'Core Usage', |