diff options
| author | Ryan Dahl <ry@tinyclouds.org> | 2018-05-28 14:06:25 -0400 |
|---|---|---|
| committer | Ryan Dahl <ry@tinyclouds.org> | 2018-05-28 14:06:25 -0400 |
| commit | bce0ecbdb8af0d6f5c089c7f2139b58ff2f60624 (patch) | |
| tree | 080d0ddefe56d0d1e29bc7ce06da5809018aae8e /tests.ts | |
| parent | 33f488354cf28e326d53e51edb50036005882933 (diff) | |
Move testdata/fetch.ts to tests.ts
Diffstat (limited to 'tests.ts')
| -rw-r--r-- | tests.ts | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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"); +}); |
