We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 51358f2 commit a98e0a4Copy full SHA for a98e0a4
test/jasmine/tests/pie_test.js
@@ -494,11 +494,11 @@ describe('Pie traces', function() {
494
.then(function() {
495
var expWidths = ['3', '0', '0'];
496
497
- d3.selectAll(SLICES_SELECTOR).each(function(d) {
498
- expect(this.style.strokeWidth).toBe(expWidths[d.pointNumber]);
+ d3.selectAll(SLICES_SELECTOR).each(function(d, i) {
+ expect(this.style.strokeWidth).toBe(expWidths[d.pointNumber], 'sector #' + i);
499
});
500
- d3.selectAll(LEGEND_ENTRIES_SELECTOR).each(function(d) {
501
- expect(this.style.strokeWidth).toBe(expWidths[d[0].i]);
+ d3.selectAll(LEGEND_ENTRIES_SELECTOR).each(function(d, i) {
+ expect(this.style.strokeWidth).toBe(expWidths[d[0].i], 'item #' + i);
502
503
})
504
.catch(failTest)
0 commit comments