Skip to content

Commit fb24032

Browse files
logs
1 parent af1298f commit fb24032

1 file changed

Lines changed: 10 additions & 18 deletions

File tree

packages/fresh/tests/head_test.tsx

Lines changed: 10 additions & 18 deletions
Original file line numberDiff line numberDiff 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
},

0 commit comments

Comments
 (0)