summaryrefslogtreecommitdiff
path: root/std/fs/empty_dir_test.ts
diff options
context:
space:
mode:
authorKitson Kelly <me@kitsonkelly.com>2020-03-29 04:03:49 +1100
committerGitHub <noreply@github.com>2020-03-28 13:03:49 -0400
commitbced52505f32d6cca4f944bb610a8a26767908a8 (patch)
treeda49a5df4b7bd6f8306248069228cd6bd0db1303 /std/fs/empty_dir_test.ts
parent1397b8e0e7c85762e19d88fde103342bfa563360 (diff)
Update to Prettier 2 and use ES Private Fields (#4498)
Diffstat (limited to 'std/fs/empty_dir_test.ts')
-rw-r--r--std/fs/empty_dir_test.ts24
1 files changed, 12 insertions, 12 deletions
diff --git a/std/fs/empty_dir_test.ts b/std/fs/empty_dir_test.ts
index 7015516ab..f30f434df 100644
--- a/std/fs/empty_dir_test.ts
+++ b/std/fs/empty_dir_test.ts
@@ -4,7 +4,7 @@ import {
assertEquals,
assertStrContains,
assertThrows,
- assertThrowsAsync
+ assertThrowsAsync,
} from "../testing/asserts.ts";
import * as path from "../path/mod.ts";
import { emptyDir, emptyDirSync } from "./empty_dir.ts";
@@ -137,59 +137,59 @@ const scenes: Scenes[] = [
read: false,
write: false,
async: true,
- output: "run again with the --allow-read flag"
+ output: "run again with the --allow-read flag",
},
{
read: false,
write: false,
async: false,
- output: "run again with the --allow-read flag"
+ output: "run again with the --allow-read flag",
},
// 2
{
read: true,
write: false,
async: true,
- output: "run again with the --allow-write flag"
+ output: "run again with the --allow-write flag",
},
{
read: true,
write: false,
async: false,
- output: "run again with the --allow-write flag"
+ output: "run again with the --allow-write flag",
},
// 3
{
read: false,
write: true,
async: true,
- output: "run again with the --allow-read flag"
+ output: "run again with the --allow-read flag",
},
{
read: false,
write: true,
async: false,
- output: "run again with the --allow-read flag"
+ output: "run again with the --allow-read flag",
},
// 4
{
read: true,
write: true,
async: true,
- output: "success"
+ output: "success",
},
{
read: true,
write: true,
async: false,
- output: "success"
- }
+ output: "success",
+ },
];
for (const s of scenes) {
let title = `test ${s.async ? "emptyDir" : "emptyDirSync"}`;
title += `("testdata/testfolder") ${s.read ? "with" : "without"}`;
title += ` --allow-read & ${s.write ? "with" : "without"} --allow-write`;
- Deno.test(`[fs] emptyDirPermission ${title}`, async function(): Promise<
+ Deno.test(`[fs] emptyDirPermission ${title}`, async function (): Promise<
void
> {
const testfolder = path.join(testdataDir, "testfolder");
@@ -221,7 +221,7 @@ for (const s of scenes) {
const p = Deno.run({
stdout: "piped",
cwd: testdataDir,
- cmd: args
+ cmd: args,
});
assert(p.stdout);