summaryrefslogtreecommitdiff
path: root/cli/js/read_file_test.ts
diff options
context:
space:
mode:
authorRy Dahl <ry@tinyclouds.org>2019-10-31 22:33:27 -0400
committerBert Belder <bertbelder@gmail.com>2019-10-31 19:33:27 -0700
commitaf61dbed874863db308f3a421ad142a7f106687a (patch)
tree083946a0071ddf4ddde51df54064ce8b56d1e812 /cli/js/read_file_test.ts
parent9d6cbb73a8dcf63b24630129f47dc98d3cc735d5 (diff)
Upgrade node_modules, change tagline, clean up root directory (#3247)
* Upgrade node_modules * Simplify tagline * Move gclient_config.py out of root * Move package.json to tools * Remove yarn.lock * Remove CONTRIBUTING.md
Diffstat (limited to 'cli/js/read_file_test.ts')
-rw-r--r--cli/js/read_file_test.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/cli/js/read_file_test.ts b/cli/js/read_file_test.ts
index 7d4f4789c..a7ffec578 100644
--- a/cli/js/read_file_test.ts
+++ b/cli/js/read_file_test.ts
@@ -2,7 +2,7 @@
import { testPerm, assert, assertEquals } from "./test_util.ts";
testPerm({ read: true }, function readFileSyncSuccess(): void {
- const data = Deno.readFileSync("package.json");
+ const data = Deno.readFileSync("cli/tests/fixture.json");
assert(data.byteLength > 0);
const decoder = new TextDecoder("utf-8");
const json = decoder.decode(data);
@@ -13,7 +13,7 @@ testPerm({ read: true }, function readFileSyncSuccess(): void {
testPerm({ read: false }, function readFileSyncPerm(): void {
let caughtError = false;
try {
- Deno.readFileSync("package.json");
+ Deno.readFileSync("cli/tests/fixture.json");
} catch (e) {
caughtError = true;
assertEquals(e.kind, Deno.ErrorKind.PermissionDenied);
@@ -36,7 +36,7 @@ testPerm({ read: true }, function readFileSyncNotFound(): void {
});
testPerm({ read: true }, async function readFileSuccess(): Promise<void> {
- const data = await Deno.readFile("package.json");
+ const data = await Deno.readFile("cli/tests/fixture.json");
assert(data.byteLength > 0);
const decoder = new TextDecoder("utf-8");
const json = decoder.decode(data);
@@ -47,7 +47,7 @@ testPerm({ read: true }, async function readFileSuccess(): Promise<void> {
testPerm({ read: false }, async function readFilePerm(): Promise<void> {
let caughtError = false;
try {
- await Deno.readFile("package.json");
+ await Deno.readFile("cli/tests/fixture.json");
} catch (e) {
caughtError = true;
assertEquals(e.kind, Deno.ErrorKind.PermissionDenied);