summaryrefslogtreecommitdiff
path: root/tests.ts
diff options
context:
space:
mode:
Diffstat (limited to 'tests.ts')
-rw-r--r--tests.ts6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests.ts b/tests.ts
index 59aeafcf8..702f6406d 100644
--- a/tests.ts
+++ b/tests.ts
@@ -20,3 +20,9 @@ test(async function tests_readFileSync() {
const pkg = JSON.parse(json);
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");
+});