summaryrefslogtreecommitdiff
path: root/js/unit_tests.ts
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2018-08-15 20:57:36 -0400
committerRyan Dahl <ry@tinyclouds.org>2018-08-20 16:53:39 -0400
commit868e8d88662ad5691212afc733e83f5de1c0979d (patch)
treeb8edff8614255140f1b79f4f563457157a1271f7 /js/unit_tests.ts
parent7b0618c20b5348230304323efd75bc65361bbe1e (diff)
First pass at fetch()
With help from Thomas Ghysels <info@thomasg.be>
Diffstat (limited to 'js/unit_tests.ts')
-rw-r--r--js/unit_tests.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/unit_tests.ts b/js/unit_tests.ts
index 7caae5283..96341b4a2 100644
--- a/js/unit_tests.ts
+++ b/js/unit_tests.ts
@@ -92,13 +92,13 @@ test(async function tests_readFileSync() {
assertEqual(pkg.name, "deno");
});
-/*
test(async function tests_fetch() {
const response = await fetch("http://localhost:4545/package.json");
const json = await response.json();
assertEqual(json.name, "deno");
});
+/*
test(async function tests_writeFileSync() {
const enc = new TextEncoder();
const data = enc.encode("Hello");