feat: support async app template (#1626)
Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
This commit is contained in:
co-authored by
Asher Gomez
parent
563b61d849
commit
ba67d895ce
@@ -1,5 +1,6 @@
|
||||
import { assertEquals } from "./deps.ts";
|
||||
import {
|
||||
assertSelector,
|
||||
assertTextMany,
|
||||
fetchHtml,
|
||||
withFresh,
|
||||
@@ -156,3 +157,17 @@ Deno.test({
|
||||
sanitizeOps: false,
|
||||
sanitizeResources: false,
|
||||
});
|
||||
|
||||
Deno.test({
|
||||
name: "renders async app template",
|
||||
|
||||
async fn() {
|
||||
await withFresh(
|
||||
"./tests/fixture_async_app/main.ts",
|
||||
async (address) => {
|
||||
const doc = await fetchHtml(`${address}`);
|
||||
assertSelector(doc, "html > body > .app > .layout > .page");
|
||||
},
|
||||
);
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user