1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-23 15:16:54 -05:00
denoland-deno/js/fetch_test.ts

10 lines
363 B
TypeScript
Raw Normal View History

2018-08-30 13:49:24 -04:00
// Copyright 2018 the Deno authors. All rights reserved. MIT license.
2018-09-01 18:49:47 -04:00
import { testPerm, assertEqual } from "./test_util.ts";
2018-08-30 13:49:24 -04:00
import * as deno from "deno";
testPerm({ net: true }, async function fetchJsonSuccess() {
const response = await fetch("http://localhost:4545/package.json");
const json = await response.json();
assertEqual(json.name, "deno");
});