diff options
Diffstat (limited to 'spec/javascripts/monitoring/graph_spec.js')
-rw-r--r-- | spec/javascripts/monitoring/graph_spec.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/spec/javascripts/monitoring/graph_spec.js b/spec/javascripts/monitoring/graph_spec.js index 99180e4d303..4cc18afdf24 100644 --- a/spec/javascripts/monitoring/graph_spec.js +++ b/spec/javascripts/monitoring/graph_spec.js @@ -49,6 +49,7 @@ describe('Graph', () => { }); const transformedHeight = `${component.graphHeight - 100}`; + expect(component.axisTransform.indexOf(transformedHeight)).not.toEqual(-1); }); @@ -62,6 +63,7 @@ describe('Graph', () => { }); const viewBoxArray = component.outerViewBox.split(' '); + expect(typeof component.outerViewBox).toEqual('string'); expect(viewBoxArray[2]).toEqual(component.graphWidth.toString()); expect(viewBoxArray[3]).toEqual((component.graphHeight - 50).toString()); @@ -99,6 +101,7 @@ describe('Graph', () => { component.seriesUnderMouse = component.timeSeries; component.positionFlag(); + expect(component.currentData).toBe(component.timeSeries[0].values[10]); }); }); |