From 7930bdd5d81ec6f8ddd2baa909dcd7d25f7b6807 Mon Sep 17 00:00:00 2001 From: Gordon Woodhull Date: Fri, 4 Dec 2015 12:25:10 -0500 Subject: [PATCH] test manually applied composite domain failing test for #1056 --- spec/composite-chart-spec.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/spec/composite-chart-spec.js b/spec/composite-chart-spec.js index 721521019..a695c4cdf 100644 --- a/spec/composite-chart-spec.js +++ b/spec/composite-chart-spec.js @@ -341,6 +341,18 @@ describe('dc.compositeChart', function () { }); }); + describe('no elastic', function () { + beforeEach(function () { + chart.y(d3.scale.linear().domain([-200, 200])); + chart.render(); + }); + + it('should respect manually applied domain', function () { + expect(chart.y().domain()[0]).toBe(-200); + expect(chart.y().domain()[1]).toBe(200); + }); + }); + describe('elastic chart axes', function () { beforeEach(function () { data.dimension(function (d) {