summaryrefslogtreecommitdiff
path: root/packages/integrations/deno/test/basics.test.ts
diff options
context:
space:
mode:
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();