Skip to content

Commit 1bf54e2

Browse files
committed
use d3's .size() instead of diving into selection items
1 parent a859464 commit 1bf54e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/jasmine/tests/hover_pie_test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ describe('pie hovering', function() {
192192
function assertLabel(expected) {
193193
var labels = d3.selectAll('.hovertext .nums .line');
194194

195-
expect(labels[0].length).toBe(expected.length);
195+
expect(labels.size()).toBe(expected.length);
196196

197197
labels.each(function(_, i) {
198198
expect(d3.select(this).text()).toBe(expected[i]);

0 commit comments

Comments
 (0)