summaryrefslogtreecommitdiff
path: root/packages/integrations/deno/test/basics.test.js
diff options
context:
space:
mode:
authorGravatar Matthew Phillips <matthew@skypack.dev> 2022-03-30 08:42:19 -0400
committerGravatar GitHub <noreply@github.com> 2022-03-30 08:42:19 -0400
commit13b271bc7d032f5f3749a9868532d12d442a09ef (patch)
tree4195d8472d0bb29b822054cf2b6184015f1e9eed /packages/integrations/deno/test/basics.test.js
parent364ece8776e2544a141c390a73faed325e0deb5b (diff)
downloadastro-13b271bc7d032f5f3749a9868532d12d442a09ef.tar.gz
astro-13b271bc7d032f5f3749a9868532d12d442a09ef.tar.zst
astro-13b271bc7d032f5f3749a9868532d12d442a09ef.zip
Deno adapter (#2934)
* Bundle everything, commit 1 * Get everything working * Remove dependency on readable-stream * Adds a changeset * Fix ts errors * Use the node logger in tests * Callback the logger when done writing * Fix test helper to await the callback * Use serialize-javascript again * Remove dead code * Rename hook * Oops
Diffstat (limited to 'packages/integrations/deno/test/basics.test.js')
-rw-r--r--packages/integrations/deno/test/basics.test.js14
1 files changed, 14 insertions, 0 deletions
diff --git a/packages/integrations/deno/test/basics.test.js b/packages/integrations/deno/test/basics.test.js
new file mode 100644
index 000000000..93e0d5625
--- /dev/null
+++ b/packages/integrations/deno/test/basics.test.js
@@ -0,0 +1,14 @@
+import { runBuildAndStartApp } from './helpers.js';
+import { assertEquals, assert } from './deps.js';
+
+Deno.test({
+ name: 'Basics',
+ async fn() {
+ await runBuildAndStartApp('./fixtures/basics/', async () => {
+ const resp = await fetch('http://127.0.0.1:8085/');
+ assertEquals(resp.status, 200);
+ const html = await resp.text();
+ assert(html);
+ });
+ }
+});