mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
undoing the test changes from c451224cc
these failures are important, and verification that data is being mutated
This commit is contained in:
parent
d84bd86191
commit
3794bf1dd9
1 changed files with 2 additions and 6 deletions
|
@ -36,9 +36,6 @@ define(function (require) {
|
|||
'stacked'
|
||||
];
|
||||
|
||||
var min;
|
||||
var max;
|
||||
|
||||
angular.module('ColumnChartFactory', ['kibana']);
|
||||
|
||||
dataArray.forEach(function (data, i) {
|
||||
|
@ -62,9 +59,6 @@ define(function (require) {
|
|||
|
||||
vis.on('brush', _.noop);
|
||||
vis.render(data);
|
||||
|
||||
min = vis.handler.data.getYMin();
|
||||
max = vis.handler.data.getYMax();
|
||||
});
|
||||
});
|
||||
|
||||
|
@ -212,6 +206,8 @@ define(function (require) {
|
|||
it('should return yAxis extents equal to data extents', function () {
|
||||
vis.handler.charts.forEach(function (chart) {
|
||||
var yAxis = chart.handler.yAxis;
|
||||
var min = vis.handler.data.getYMin();
|
||||
var max = vis.handler.data.getYMax();
|
||||
|
||||
expect(yAxis.domain[0]).to.equal(min);
|
||||
expect(yAxis.domain[1]).to.equal(max);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue