diff options
author | Simon Knox <simon@gitlab.com> | 2018-09-07 09:05:10 +0300 |
---|---|---|
committer | Mike Greiling <mike@pixelcog.com> | 2018-09-07 09:05:10 +0300 |
commit | 4d2e9a1f32097682fd189c529f9418a684f0e94a (patch) | |
tree | 36f584dfe9f15f423177d10a7a1814a45386f6d2 /spec/javascripts | |
parent | c9116b6de56c5b21fea15de2be8b56fa811694aa (diff) |
multiseries
Diffstat (limited to 'spec/javascripts')
-rw-r--r-- | spec/javascripts/monitoring/graph/flag_spec.js | 2 | ||||
-rw-r--r-- | spec/javascripts/monitoring/graph_spec.js | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/spec/javascripts/monitoring/graph/flag_spec.js b/spec/javascripts/monitoring/graph/flag_spec.js index 19278312b6d..a837b71db0b 100644 --- a/spec/javascripts/monitoring/graph/flag_spec.js +++ b/spec/javascripts/monitoring/graph/flag_spec.js @@ -35,7 +35,7 @@ const defaultValuesComponent = { unitOfDisplay: 'ms', currentDataIndex: 0, legendTitle: 'Average', - currentCoordinates: [], + currentCoordinates: {}, }; const deploymentFlagData = { diff --git a/spec/javascripts/monitoring/graph_spec.js b/spec/javascripts/monitoring/graph_spec.js index a46a387a534..990619b4109 100644 --- a/spec/javascripts/monitoring/graph_spec.js +++ b/spec/javascripts/monitoring/graph_spec.js @@ -113,6 +113,9 @@ describe('Graph', () => { projectPath, }); + // simulate moving mouse over data series + component.seriesUnderMouse = component.timeSeries; + component.positionFlag(); expect(component.currentData).toBe(component.timeSeries[0].values[10]); }); |