Add --allow-read test code
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license.
-import { args, listen, env, exit, makeTempDirSync, run } from "deno";
+import { args, listen, env, exit, makeTempDirSync, readFile, run} from "deno";
const name = args[1];
const test = {
+ needsRead: () => {
+ readFile("package.json")
+ },
needsWrite: () => {
makeTempDirSync();
},
