From 3794bf1dd930c5b66d8830e8183fe8c3155f3418 Mon Sep 17 00:00:00 2001 From: Joe Fleming Date: Thu, 4 Jun 2015 17:29:08 -0700 Subject: [PATCH] undoing the test changes from c451224cc these failures are important, and verification that data is being mutated --- test/unit/specs/vislib/visualizations/column_chart.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/test/unit/specs/vislib/visualizations/column_chart.js b/test/unit/specs/vislib/visualizations/column_chart.js index 08ad563e61712..f2264071d0645 100644 --- a/test/unit/specs/vislib/visualizations/column_chart.js +++ b/test/unit/specs/vislib/visualizations/column_chart.js @@ -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);