Skip to content

Commit a98e0a4

Browse files
committed
add info to pie test assertions
1 parent 51358f2 commit a98e0a4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/jasmine/tests/pie_test.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -494,11 +494,11 @@ describe('Pie traces', function() {
494494
.then(function() {
495495
var expWidths = ['3', '0', '0'];
496496

497-
d3.selectAll(SLICES_SELECTOR).each(function(d) {
498-
expect(this.style.strokeWidth).toBe(expWidths[d.pointNumber]);
497+
d3.selectAll(SLICES_SELECTOR).each(function(d, i) {
498+
expect(this.style.strokeWidth).toBe(expWidths[d.pointNumber], 'sector #' + i);
499499
});
500-
d3.selectAll(LEGEND_ENTRIES_SELECTOR).each(function(d) {
501-
expect(this.style.strokeWidth).toBe(expWidths[d[0].i]);
500+
d3.selectAll(LEGEND_ENTRIES_SELECTOR).each(function(d, i) {
501+
expect(this.style.strokeWidth).toBe(expWidths[d[0].i], 'item #' + i);
502502
});
503503
})
504504
.catch(failTest)

0 commit comments

Comments
 (0)