mirror of
https://github.com/denoland/deno.git
synced 2024-12-23 15:49:44 -05:00
10 lines
377 B
TypeScript
10 lines
377 B
TypeScript
|
// Copyright 2018 the Deno authors. All rights reserved. MIT license.
|
||
|
import { test, testPerm, assert, assertEqual } from "./test_util.ts";
|
||
|
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");
|
||
|
});
|