From 868e8d88662ad5691212afc733e83f5de1c0979d Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Wed, 15 Aug 2018 20:57:36 -0400 Subject: First pass at fetch() With help from Thomas Ghysels --- js/unit_tests.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'js/unit_tests.ts') 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"); -- cgit v1.2.3