diff options
author | Mike Greiling <mike@pixelcog.com> | 2018-06-06 11:02:47 +0000 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2018-06-06 11:02:47 +0000 |
commit | 56efb9ee92cb96c6a378ae5d2f6510c7a870d896 (patch) | |
tree | 97884471f6b8b361328ded706c744acee66a761e /spec/javascripts | |
parent | 45444c8e3007d2753349dca4d2c81f7ec90da278 (diff) | |
download | gitlab-ce-56efb9ee92cb96c6a378ae5d2f6510c7a870d896.tar.gz |
Adjust monitoring graphs to support widgets in EE
Diffstat (limited to 'spec/javascripts')
-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', () => { |