summaryrefslogtreecommitdiff
path: root/spec/javascripts/monitoring
diff options
context:
space:
mode:
authorJose Ivan Vargas <jvargas@gitlab.com>2017-09-07 09:45:30 -0500
committerJose Ivan Vargas <jvargas@gitlab.com>2017-09-07 09:45:30 -0500
commitb71eb1da5bd20c8c2ae53efe79af516da0aeeb03 (patch)
tree283c28f5acd8b0c2653670a15195dfa2a9aa182b /spec/javascripts/monitoring
parent93ba3fdd1e756168ba9ca12e60a53a98969ccdec (diff)
downloadgitlab-ce-b71eb1da5bd20c8c2ae53efe79af516da0aeeb03.tar.gz
Added minor details to specs
Diffstat (limited to 'spec/javascripts/monitoring')
-rw-r--r--spec/javascripts/monitoring/graph_path_spec.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/javascripts/monitoring/graph_path_spec.js b/spec/javascripts/monitoring/graph_path_spec.js
index 41b3014baac..e7348b03ba1 100644
--- a/spec/javascripts/monitoring/graph_path_spec.js
+++ b/spec/javascripts/monitoring/graph_path_spec.js
@@ -21,15 +21,15 @@ describe('Monitoring Paths', () => {
const component = createComponent({
generatedLinePath: firstTimeSeries.linePath,
generatedAreaPath: firstTimeSeries.areaPath,
- lineColor: '#ccc',
- areaColor: '#fff',
+ lineColor: firstTimeSeries.lineColor,
+ areaColor: firstTimeSeries.areaColor,
});
const metricArea = component.$el.querySelector('.metric-area');
const metricLine = component.$el.querySelector('.metric-line');
- expect(metricArea.getAttribute('fill')).toBe('#fff');
+ expect(metricArea.getAttribute('fill')).toBe('#8dd5aa');
expect(metricArea.getAttribute('d')).toBe(firstTimeSeries.areaPath);
- expect(metricLine.getAttribute('stroke')).toBe('#ccc');
+ expect(metricLine.getAttribute('stroke')).toBe('#1aaa55');
expect(metricLine.getAttribute('d')).toBe(firstTimeSeries.linePath);
});
});