Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 1bf54e2

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

File tree

1 file changed

+1
-1
lines changed
Filter options

1 file changed

+1
-1
lines changed

‎test/jasmine/tests/hover_pie_test.js

Copy file name to clipboardExpand all lines: test/jasmine/tests/hover_pie_test.js
+1-1Lines changed: 1 addition & 1 deletion
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.