summaryrefslogtreecommitdiff
path: root/testdata
diff options
context:
space:
mode:
Diffstat (limited to 'testdata')
-rw-r--r--testdata/read_file_sync.ts14
-rw-r--r--testdata/read_file_sync.ts.out1
2 files changed, 0 insertions, 15 deletions
diff --git a/testdata/read_file_sync.ts b/testdata/read_file_sync.ts
deleted file mode 100644
index cb0904d35..000000000
--- a/testdata/read_file_sync.ts
+++ /dev/null
@@ -1,14 +0,0 @@
-import { readFileSync } from "deno";
-
-let data = readFileSync("package.json");
-if (!data.byteLength) {
- throw Error(`Expected positive value for data.byteLength ${data.byteLength}`);
-}
-
-const decoder = new TextDecoder("utf-8");
-const json = decoder.decode(data);
-const pkg = JSON.parse(json);
-if (pkg.name !== "deno") {
- throw Error(`Expected "deno" but got "${pkg.name}"`)
-}
-console.log("package.name ", pkg.name);
diff --git a/testdata/read_file_sync.ts.out b/testdata/read_file_sync.ts.out
deleted file mode 100644
index 53d818f44..000000000
--- a/testdata/read_file_sync.ts.out
+++ /dev/null
@@ -1 +0,0 @@
-package.name deno