@@ -17,17 +17,17 @@ describe "Output", ->
17
17
18
18
it " can get the parent of each element in the current instance" , ->
19
19
children = el .find " header"
20
- expect (children .parent ()) .toEqual el
20
+ expect (children .parent (). html ()) .toEqual el . html ()
21
21
22
22
23
23
it " can get the children of each element in the current instance" , ->
24
24
children = el .children ()
25
25
header = $$ " section > header"
26
- expect (children) .toEqual header
26
+ expect (children . html ()) .toEqual header . html ()
27
27
28
28
el .append " <footer></footer>"
29
29
children = el .children (" header" )
30
- expect (children) .toEqual header
30
+ expect (children . html ()) .toEqual header . html ()
31
31
32
32
33
33
it " can retrieve the DOM elements matched by the QuoJS object." , ->
@@ -53,18 +53,18 @@ describe "Output", ->
53
53
it " can get the first element that matches the selector by testing the element itself and traversing up through its ancestors" , ->
54
54
header = $$ " section header"
55
55
dom = header .closest " section"
56
- expect (dom) .toEqual el
56
+ expect (dom . html ()) .toEqual el . html ()
57
57
58
58
59
59
it " can get the immediately following sibling of each element in the instance" , ->
60
60
el .append " <footer></footer>"
61
61
header = $$ " section header"
62
62
footer = $$ " section footer"
63
- expect (header .next ()) .toEqual footer
63
+ expect (header .next (). html ()) .toEqual footer . html ()
64
64
65
65
66
66
it " can get the immediately preceding sibling of each element in the instance" , ->
67
67
el .append " <footer></footer>"
68
68
header = $$ " section header"
69
69
footer = $$ " section footer"
70
- expect (footer .prev ()) .toEqual header
70
+ expect (footer .prev (). html ()) .toEqual header . html ()
0 commit comments