From d4bf0670ce02a7561f224085bef6827132335cd5 Mon Sep 17 00:00:00 2001 From: Ry Dahl Date: Tue, 7 Jan 2020 14:14:33 -0500 Subject: fix: Deno.mkdir should conform to style guide (#3617) --- cli/js/mkdir_test.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'cli/js/mkdir_test.ts') diff --git a/cli/js/mkdir_test.ts b/cli/js/mkdir_test.ts index c6fa6326c..dad61c1a4 100644 --- a/cli/js/mkdir_test.ts +++ b/cli/js/mkdir_test.ts @@ -10,7 +10,7 @@ testPerm({ read: true, write: true }, function mkdirSyncSuccess(): void { testPerm({ read: true, write: true }, function mkdirSyncMode(): void { const path = Deno.makeTempDirSync() + "/dir"; - Deno.mkdirSync(path, false, 0o755); // no perm for x + Deno.mkdirSync(path, { mode: 0o755 }); // no perm for x const pathInfo = Deno.statSync(path); if (pathInfo.mode !== null) { // Skip windows @@ -51,7 +51,7 @@ testPerm({ write: true }, function mkdirErrIfExists(): void { testPerm({ read: true, write: true }, function mkdirSyncRecursive(): void { const path = Deno.makeTempDirSync() + "/nested/directory"; - Deno.mkdirSync(path, true); + Deno.mkdirSync(path, { recursive: true }); const pathInfo = Deno.statSync(path); assert(pathInfo.isDirectory()); }); @@ -60,7 +60,7 @@ testPerm({ read: true, write: true }, async function mkdirRecursive(): Promise< void > { const path = Deno.makeTempDirSync() + "/nested/directory"; - await Deno.mkdir(path, true); + await Deno.mkdir(path, { recursive: true }); const pathInfo = Deno.statSync(path); assert(pathInfo.isDirectory()); }); -- cgit v1.2.3