Skip to content

Commit

Permalink
add test for #894
Browse files Browse the repository at this point in the history
  • Loading branch information
gordonwoodhull committed Jul 30, 2015
1 parent e1cf71d commit f67d288
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions spec/pie-chart-spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,19 @@ describe('dc.pieChart', function() {
expect(chart.select("svg g").attr("transform")).toMatchTranslate(newCenter.x, newCenter.y);
});
});
describe('with radius padding', function() {
beforeEach(function() {
chart.externalRadiusPadding(17)
.render();
return chart;
});
it('should not change center', function() {
expect(chart.select("svg g").attr("transform")).toMatchTranslate(defaultCenter.x, defaultCenter.y);
});
it('should decrease outer radius', function() {
expect(chart.select("svg g.pie-slice path").attr('d')).toMatch(/A83,83/);
});
});

describe('re-render', function() {
beforeEach(function() {
Expand Down

0 comments on commit f67d288

Please # to comment.