Skip to content

Commit 56b48d4

Browse files
authored
Merge pull request #2869 from harvesthq/fix-master-tests
Fix master tests: use .length instead of .size().
2 parents 66f7961 + 1815ba0 commit 56b48d4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: spec/jquery/searching.spec.coffee

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ describe "Searching", ->
1717

1818
# Both options should be active
1919
results = div.find(".active-result")
20-
expect(results.size()).toBe(2)
20+
expect(results.length).toBe(2)
2121

2222
# Search for the html entity by name
2323
search_field = div.find(".chosen-search input").first()
2424
search_field.val("mp")
2525
search_field.trigger("keyup")
2626

2727
results = div.find(".active-result")
28-
expect(results.size()).toBe(0)
28+
expect(results.length).toBe(0)

0 commit comments

Comments
 (0)