Skip to content

Commit 7930bdd

Browse files
test manually applied composite domain
failing test for #1056
1 parent 3d13e68 commit 7930bdd

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

spec/composite-chart-spec.js

+12
Original file line numberDiff line numberDiff line change
@@ -341,6 +341,18 @@ describe('dc.compositeChart', function () {
341341
});
342342
});
343343

344+
describe('no elastic', function () {
345+
beforeEach(function () {
346+
chart.y(d3.scale.linear().domain([-200, 200]));
347+
chart.render();
348+
});
349+
350+
it('should respect manually applied domain', function () {
351+
expect(chart.y().domain()[0]).toBe(-200);
352+
expect(chart.y().domain()[1]).toBe(200);
353+
});
354+
});
355+
344356
describe('elastic chart axes', function () {
345357
beforeEach(function () {
346358
data.dimension(function (d) {

0 commit comments

Comments
 (0)