@@ -17,12 +17,12 @@ if (process.argv.indexOf('--cheerio-only') >= 0) {
1717
1818suites . add ( 'Select all' , 'jquery.html' , {
1919 test : function ( $ ) {
20- $ ( '*' ) . length ;
20+ return $ ( '*' ) . length ;
2121 } ,
2222} ) ;
2323suites . add ( 'Select some' , 'jquery.html' , {
2424 test : function ( $ ) {
25- $ ( 'li' ) . length ;
25+ return $ ( 'li' ) . length ;
2626 } ,
2727} ) ;
2828
@@ -142,127 +142,127 @@ suites.add('traversing - Find', 'jquery.html', {
142142 return $ ( 'li' ) ;
143143 } ,
144144 test : function ( $ , $lis ) {
145- $lis . find ( 'li' ) . length ;
145+ return $lis . find ( 'li' ) . length ;
146146 } ,
147147} ) ;
148148suites . add ( 'traversing - Parent' , 'jquery.html' , {
149149 setup : function ( $ ) {
150150 return $ ( 'li' ) ;
151151 } ,
152152 test : function ( $ , $lis ) {
153- $lis . parent ( 'div' ) . length ;
153+ return $lis . parent ( 'div' ) . length ;
154154 } ,
155155} ) ;
156156suites . add ( 'traversing - Parents' , 'jquery.html' , {
157157 setup : function ( $ ) {
158158 return $ ( 'li' ) ;
159159 } ,
160160 test : function ( $ , $lis ) {
161- $lis . parents ( 'div' ) . length ;
161+ return $lis . parents ( 'div' ) . length ;
162162 } ,
163163} ) ;
164164suites . add ( 'traversing - Closest' , 'jquery.html' , {
165165 setup : function ( $ ) {
166166 return $ ( 'li' ) ;
167167 } ,
168168 test : function ( $ , $lis ) {
169- $lis . closest ( 'div' ) . length ;
169+ return $lis . closest ( 'div' ) . length ;
170170 } ,
171171} ) ;
172172suites . add ( 'traversing - next' , 'jquery.html' , {
173173 setup : function ( $ ) {
174174 return $ ( 'li' ) ;
175175 } ,
176176 test : function ( $ , $lis ) {
177- $lis . next ( ) . length ;
177+ return $lis . next ( ) . length ;
178178 } ,
179179} ) ;
180180suites . add ( 'traversing - nextAll' , 'jquery.html' , {
181181 setup : function ( $ ) {
182182 return $ ( 'li' ) ;
183183 } ,
184184 test : function ( $ , $lis ) {
185- $lis . nextAll ( 'li' ) . length ;
185+ return $lis . nextAll ( 'li' ) . length ;
186186 } ,
187187} ) ;
188188suites . add ( 'traversing - nextUntil' , 'jquery.html' , {
189189 setup : function ( $ ) {
190190 return $ ( 'li' ) ;
191191 } ,
192192 test : function ( $ , $lis ) {
193- $lis . nextUntil ( 'li' ) . length ;
193+ return $lis . nextUntil ( 'li' ) . length ;
194194 } ,
195195} ) ;
196196suites . add ( 'traversing - prev' , 'jquery.html' , {
197197 setup : function ( $ ) {
198198 return $ ( 'li' ) ;
199199 } ,
200200 test : function ( $ , $lis ) {
201- $lis . prev ( ) . length ;
201+ return $lis . prev ( ) . length ;
202202 } ,
203203} ) ;
204204suites . add ( 'traversing - prevAll' , 'jquery.html' , {
205205 setup : function ( $ ) {
206206 return $ ( 'li' ) ;
207207 } ,
208208 test : function ( $ , $lis ) {
209- $lis . prevAll ( 'li' ) . length ;
209+ return $lis . prevAll ( 'li' ) . length ;
210210 } ,
211211} ) ;
212212suites . add ( 'traversing - prevUntil' , 'jquery.html' , {
213213 setup : function ( $ ) {
214214 return $ ( 'li' ) ;
215215 } ,
216216 test : function ( $ , $lis ) {
217- $lis . prevUntil ( 'li' ) . length ;
217+ return $lis . prevUntil ( 'li' ) . length ;
218218 } ,
219219} ) ;
220220suites . add ( 'traversing - siblings' , 'jquery.html' , {
221221 setup : function ( $ ) {
222222 return $ ( 'li' ) ;
223223 } ,
224224 test : function ( $ , $lis ) {
225- $lis . siblings ( 'li' ) . length ;
225+ return $lis . siblings ( 'li' ) . length ;
226226 } ,
227227} ) ;
228228suites . add ( 'traversing - Children' , 'jquery.html' , {
229229 setup : function ( $ ) {
230230 return $ ( 'li' ) ;
231231 } ,
232232 test : function ( $ , $lis ) {
233- $lis . children ( 'a' ) . length ;
233+ return $lis . children ( 'a' ) . length ;
234234 } ,
235235} ) ;
236236suites . add ( 'traversing - Filter' , 'jquery.html' , {
237237 setup : function ( $ ) {
238238 return $ ( 'li' ) ;
239239 } ,
240240 test : function ( $ , $lis ) {
241- $lis . filter ( 'li' ) . length ;
241+ return $lis . filter ( 'li' ) . length ;
242242 } ,
243243} ) ;
244244suites . add ( 'traversing - First' , 'jquery.html' , {
245245 setup : function ( $ ) {
246246 return $ ( 'li' ) ;
247247 } ,
248248 test : function ( $ , $lis ) {
249- $lis . first ( ) . first ( ) . length ;
249+ return $lis . first ( ) . first ( ) . length ;
250250 } ,
251251} ) ;
252252suites . add ( 'traversing - Last' , 'jquery.html' , {
253253 setup : function ( $ ) {
254254 return $ ( 'li' ) ;
255255 } ,
256256 test : function ( $ , $lis ) {
257- $lis . last ( ) . last ( ) . length ;
257+ return $lis . last ( ) . last ( ) . length ;
258258 } ,
259259} ) ;
260260suites . add ( 'traversing - Eq' , 'jquery.html' , {
261261 setup : function ( $ ) {
262262 return $ ( 'li' ) ;
263263 } ,
264264 test : function ( $ , $lis ) {
265- $lis . eq ( 0 ) . eq ( 0 ) . length ;
265+ return $lis . eq ( 0 ) . eq ( 0 ) . length ;
266266 } ,
267267} ) ;
268268
0 commit comments