File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -208,15 +208,11 @@ Deno.test({
208208 ) => ( { name : el . name , content : el . content } ) ) ;
209209 } ) ;
210210
211- try {
212- expect ( metas ) . toEqual ( [
213- { name : "foo" , content : "ok" } ,
214- { name : "bar" , content : "not ok" } ,
215- ] ) ;
216- return true ;
217- } catch {
218- return false ;
219- }
211+ expect ( metas ) . toEqual ( [
212+ { name : "foo" , content : "ok" } ,
213+ { name : "bar" , content : "not ok" } ,
214+ ] ) ;
215+ return true ;
220216 } ) ;
221217 } ) ;
222218 } ,
@@ -252,15 +248,11 @@ Deno.test({
252248 ) => ( { id : el . id , text : el . textContent } ) ) ;
253249 } ) ;
254250
255- try {
256- expect ( styles ) . toEqual ( [
257- { id : "" , text : "not ok" } ,
258- { id : "style-id" , text : "ok" } ,
259- ] ) ;
260- return true ;
261- } catch {
262- return false ;
263- }
251+ expect ( styles ) . toEqual ( [
252+ { id : "" , text : "not ok" } ,
253+ { id : "style-id" , text : "ok" } ,
254+ ] ) ;
255+ return true ;
264256 } ) ;
265257 } ) ;
266258 } ,
You can’t perform that action at this time.
0 commit comments