Skip to content

Commit

Permalink
Use unit_tests for readFileSync testing.
Browse files Browse the repository at this point in the history
  • Loading branch information
ry committed Aug 11, 2018
1 parent 9be36ff commit 89eee51
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 27 deletions.
16 changes: 8 additions & 8 deletions js/unit_tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -79,13 +79,6 @@ test(function tests_console_stringify_circular() {
}
});

/*
test(async function tests_fetch() {
const response = await fetch("https://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) {
Expand All @@ -99,6 +92,13 @@ test(async function tests_readFileSync() {
assertEqual(pkg.name, "deno");
});

/*
test(async function tests_fetch() {
const response = await fetch("https://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");
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"name": "deno",
"devDependencies": {
"@types/base64-js": "^1.2.5",
"@types/flatbuffers": "^1.9.0",
Expand Down
18 changes: 0 additions & 18 deletions tests/read_file_sync.ts

This file was deleted.

1 change: 0 additions & 1 deletion tests/read_file_sync.ts.out

This file was deleted.

0 comments on commit 89eee51

Please sign in to comment.