diff options
author | Jose Ivan Vargas <jvargas@gitlab.com> | 2017-11-13 17:03:11 -0600 |
---|---|---|
committer | Jose Ivan Vargas <jvargas@gitlab.com> | 2017-11-13 17:04:34 -0600 |
commit | b49fab4c2b7c5e28a92e449dc73b599a8ea17ac6 (patch) | |
tree | f30718d10ba2f51f269ee1af17e9bbc41cd3a485 /spec | |
parent | 6fa53d297fafbab163fa3e3dd86d10d8f141f2da (diff) | |
download | gitlab-ce-b49fab4c2b7c5e28a92e449dc73b599a8ea17ac6.tar.gz |
Add missing spec for computed prop strokeDashArray39861-follow-up-from-enable-multiple-queries-per-prometheus-graph
Diffstat (limited to 'spec')
-rw-r--r-- | spec/javascripts/monitoring/graph_path_spec.js | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/spec/javascripts/monitoring/graph_path_spec.js b/spec/javascripts/monitoring/graph_path_spec.js index 8ece913ada8..c83bd19345f 100644 --- a/spec/javascripts/monitoring/graph_path_spec.js +++ b/spec/javascripts/monitoring/graph_path_spec.js @@ -32,4 +32,21 @@ describe('Monitoring Paths', () => { expect(metricLine.getAttribute('stroke')).toBe('#1f78d1'); expect(metricLine.getAttribute('d')).toBe(firstTimeSeries.linePath); }); + + describe('Computed properties', () => { + it('strokeDashArray', () => { + const component = createComponent({ + generatedLinePath: firstTimeSeries.linePath, + generatedAreaPath: firstTimeSeries.areaPath, + lineColor: firstTimeSeries.lineColor, + areaColor: firstTimeSeries.areaColor, + }); + + component.lineStyle = 'dashed'; + expect(component.strokeDashArray).toBe('3, 1'); + + component.lineStyle = 'dotted'; + expect(component.strokeDashArray).toBe('1, 1'); + }); + }); }); |