diff options
author | Mike Greiling <mike@pixelcog.com> | 2018-06-01 15:12:30 -0500 |
---|---|---|
committer | Mike Greiling <mike@pixelcog.com> | 2018-06-01 15:12:30 -0500 |
commit | 4e92baeedd4163e144931f5867d398873924b47b (patch) | |
tree | 8d5bd2489f0845fa1fbdb333c7abec5af02e67cd | |
parent | feb4cbf028c5380d6176a2fedce5f801cf9ebe8d (diff) | |
download | gitlab-ce-add-monitoring-widgets.tar.gz |
fix broken karma specadd-monitoring-widgets
-rw-r--r-- | spec/javascripts/monitoring/graph_spec.js | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/spec/javascripts/monitoring/graph_spec.js b/spec/javascripts/monitoring/graph_spec.js index 220228e5c08..a46a387a534 100644 --- a/spec/javascripts/monitoring/graph_spec.js +++ b/spec/javascripts/monitoring/graph_spec.js @@ -18,9 +18,7 @@ const createComponent = propsData => { }).$mount(); }; -const convertedMetrics = convertDatesMultipleSeries( - singleRowMetricsMultipleSeries, -); +const convertedMetrics = convertDatesMultipleSeries(singleRowMetricsMultipleSeries); describe('Graph', () => { beforeEach(() => { @@ -36,7 +34,7 @@ describe('Graph', () => { projectPath, }); - expect(component.$el.querySelector('.text-center').innerText.trim()).toBe( + expect(component.$el.querySelector('.prometheus-graph-title').innerText.trim()).toBe( component.graphData.title, ); }); @@ -52,9 +50,7 @@ describe('Graph', () => { }); const transformedHeight = `${component.graphHeight - 100}`; - expect(component.axisTransform.indexOf(transformedHeight)).not.toEqual( - -1, - ); + expect(component.axisTransform.indexOf(transformedHeight)).not.toEqual(-1); }); it('outerViewBox gets a width and height property based on the DOM size of the element', () => { |