Skip to content

Commit

Permalink
add failing test for elasticY & evadeDomainFilter
Browse files Browse the repository at this point in the history
for #1367
  • Loading branch information
gordonwoodhull committed Apr 13, 2018
1 parent 018cd8c commit e9b7285
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions spec/bar-chart-spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -616,6 +616,15 @@ describe('dc.barChart', function () {
expect(chart.refocused()).toBeTruthy();
});

describe('with evadeDomainFilter', function () {
beforeEach(function () {
chart.evadeDomainFilter(true).redraw();
});
it('should still reset the y-axis domain based on the focus range', function () {
expect(chart.y().domain()).toEqual([0, 1]);
});
});

it('should reset the focus when focused to null', function () {
chart.focus(null);
itBehavesLikeItWasReset();
Expand Down

0 comments on commit e9b7285

Please sign in to comment.