Skip to content

Commit

Permalink
test manually applied composite domain
Browse files Browse the repository at this point in the history
failing test for #1056
  • Loading branch information
gordonwoodhull committed Dec 4, 2015
1 parent 3d13e68 commit 7930bdd
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions spec/composite-chart-spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 7930bdd

Please sign in to comment.