From 89eee51f07f5b1689022c84a7d50d9158eaf9cd6 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Fri, 10 Aug 2018 15:00:11 -0400 Subject: Use unit_tests for readFileSync testing. --- js/unit_tests.ts | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'js') diff --git a/js/unit_tests.ts b/js/unit_tests.ts index 6989e22c4..7caae5283 100644 --- a/js/unit_tests.ts +++ b/js/unit_tests.ts @@ -4,7 +4,7 @@ // ./deno tests.ts import { test, assert, assertEqual } from "./testing/testing.ts"; -// import { readFileSync, writeFileSync } from "deno"; +import { readFileSync } from "deno"; test(async function tests_test() { assert(true); @@ -79,13 +79,6 @@ test(function tests_console_stringify_circular() { } }); -/* -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_readFileSync() { const data = readFileSync("package.json"); if (!data.byteLength) { @@ -99,6 +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