Skip to content

Commit 8939723

Browse files
debug
1 parent d85a59a commit 8939723

1 file changed

Lines changed: 16 additions & 10 deletions

File tree

packages/fresh/tests/head_test.tsx

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,7 @@ Deno.test({
172172

173173
await waitFor(async () => {
174174
const title = await page.evaluate(() => document.title);
175+
console.log({ title });
175176
return title === "Count: 1";
176177
});
177178
});
@@ -204,6 +205,9 @@ Deno.test({
204205
) => ({ name: el.name, content: el.content }));
205206
});
206207

208+
// deno-lint-ignore no-console
209+
console.log(metas);
210+
207211
expect(metas).toEqual([
208212
{ name: "foo", content: "ok" },
209213
{ name: "bar", content: "not ok" },
@@ -240,6 +244,9 @@ Deno.test({
240244
) => ({ id: el.id, text: el.textContent }));
241245
});
242246

247+
// deno-lint-ignore no-console
248+
console.log(styles);
249+
243250
expect(styles).toEqual([
244251
{ id: "", text: "not ok" },
245252
{ id: "style-id", text: "ok" },
@@ -279,16 +286,15 @@ Deno.test({
279286
}));
280287
});
281288

282-
try {
283-
expect(tpls).toEqual([
284-
{ key: "a", text: "ok" },
285-
{ key: "b", text: "not ok" },
286-
{ key: null, text: "not ok" },
287-
]);
288-
return true;
289-
} catch {
290-
return false;
291-
}
289+
// deno-lint-ignore no-console
290+
console.log(tpls);
291+
292+
expect(tpls).toEqual([
293+
{ key: "a", text: "ok" },
294+
{ key: "b", text: "not ok" },
295+
{ key: null, text: "not ok" },
296+
]);
297+
return true;
292298
});
293299
});
294300
},

0 commit comments

Comments
 (0)