summaryrefslogtreecommitdiff
path: root/packages/integrations/deno/test/basics.test.ts
diff options
context:
space:
mode:
authorGravatar Kevin Whinnery <kevin.whinnery@gmail.com> 2023-07-24 10:58:05 -0400
committerGravatar GitHub <noreply@github.com> 2023-07-24 22:58:05 +0800
commit0a1b33349fc12d9927e6eef2b66588afedf517a1 (patch)
tree25f4dcfaad368b4daf4a57a5db5cc0854b406b5b /packages/integrations/deno/test/basics.test.ts
parente80896a67c08c1c7916417d2f385a185c773d97e (diff)
downloadastro-0a1b33349fc12d9927e6eef2b66588afedf517a1.tar.gz
astro-0a1b33349fc12d9927e6eef2b66588afedf517a1.tar.zst
astro-0a1b33349fc12d9927e6eef2b66588afedf517a1.zip
Update esbuild target for Deno (#7687)
Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com>
Diffstat (limited to 'packages/integrations/deno/test/basics.test.ts')
-rw-r--r--packages/integrations/deno/test/basics.test.ts9
1 files changed, 9 insertions, 0 deletions
diff --git a/packages/integrations/deno/test/basics.test.ts b/packages/integrations/deno/test/basics.test.ts
index 5d3f116dd..cdb0c616e 100644
--- a/packages/integrations/deno/test/basics.test.ts
+++ b/packages/integrations/deno/test/basics.test.ts
@@ -67,6 +67,15 @@ Deno.test({
assertEquals(p!.innerText, varContent);
});
+ await t.step('Can use a module with top-level await', async () => {
+ const resp = await fetch(app.url);
+ const html = await resp.text();
+
+ const doc = new DOMParser().parseFromString(html, `text/html`);
+ const p = doc!.querySelector('p#module-value');
+ assertEquals(p!.innerText, 'bar');
+ });
+
await t.step('Works with Markdown', async () => {
const resp = await fetch(new URL('markdown', app.url));
const html = await resp.text();