diff options
author | Jose Ivan Vargas <jvargas@gitlab.com> | 2017-07-03 18:43:56 +0300 |
---|---|---|
committer | Jose Ivan Vargas <jvargas@gitlab.com> | 2017-07-03 18:43:56 +0300 |
commit | 2a829d0f530c1721271400c46cfc7f0387dc789a (patch) | |
tree | 07521f0802119dae6a9d4da81d7c629d2aa4a332 /spec/javascripts/monitoring/monitoring_column_spec.js | |
parent | c8eef2d2a62f6ac7304c8ab4d50282613e21ec8a (diff) |
Fixed the y_label not setting correctly for each graph on the monitoring dashboard
Diffstat (limited to 'spec/javascripts/monitoring/monitoring_column_spec.js')
-rw-r--r-- | spec/javascripts/monitoring/monitoring_column_spec.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/spec/javascripts/monitoring/monitoring_column_spec.js b/spec/javascripts/monitoring/monitoring_column_spec.js index c8787f9708c..b3bc97adc9f 100644 --- a/spec/javascripts/monitoring/monitoring_column_spec.js +++ b/spec/javascripts/monitoring/monitoring_column_spec.js @@ -94,4 +94,15 @@ describe('MonitoringColumn', () => { done(); }); }); + + it('has a title for the y-axis that comes from the backend', () => { + const component = createComponent({ + columnData: singleRowMetrics[0], + classType: 'col-md-6', + updateAspectRatio: false, + deploymentData, + }); + + expect(component.yAxisLabel).toEqual(component.columnData.y_label); + }); }); |