diff options
author | Ry Dahl <ry@tinyclouds.org> | 2020-01-07 14:14:33 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-07 14:14:33 -0500 |
commit | d4bf0670ce02a7561f224085bef6827132335cd5 (patch) | |
tree | b9b102775fc31e9c867ce4810efc63a9f9518748 /std/fs/ensure_symlink_test.ts | |
parent | ad9fd589d4131e847721323a730ba91161f1b95b (diff) |
fix: Deno.mkdir should conform to style guide (#3617)
Diffstat (limited to 'std/fs/ensure_symlink_test.ts')
-rw-r--r-- | std/fs/ensure_symlink_test.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/std/fs/ensure_symlink_test.ts b/std/fs/ensure_symlink_test.ts index ee32d4861..0470af57e 100644 --- a/std/fs/ensure_symlink_test.ts +++ b/std/fs/ensure_symlink_test.ts @@ -50,7 +50,7 @@ test(async function ensureSymlinkIfItExist(): Promise<void> { const testFile = path.join(testDir, "test.txt"); const linkFile = path.join(testDir, "link.txt"); - await Deno.mkdir(testDir, true); + await Deno.mkdir(testDir, { recursive: true }); await Deno.writeFile(testFile, new Uint8Array()); if (isWindows) { @@ -79,7 +79,7 @@ test(function ensureSymlinkSyncIfItExist(): void { const testFile = path.join(testDir, "test.txt"); const linkFile = path.join(testDir, "link.txt"); - Deno.mkdirSync(testDir, true); + Deno.mkdirSync(testDir, { recursive: true }); Deno.writeFileSync(testFile, new Uint8Array()); if (isWindows) { @@ -109,7 +109,7 @@ test(async function ensureSymlinkDirectoryIfItExist(): Promise<void> { const linkDir = path.join(testdataDir, "link_file_link_3"); const testFile = path.join(testDir, "test.txt"); - await Deno.mkdir(testDir, true); + await Deno.mkdir(testDir, { recursive: true }); await Deno.writeFile(testFile, new Uint8Array()); if (isWindows) { @@ -141,7 +141,7 @@ test(function ensureSymlinkSyncDirectoryIfItExist(): void { const linkDir = path.join(testdataDir, "link_file_link_3"); const testFile = path.join(testDir, "test.txt"); - Deno.mkdirSync(testDir, true); + Deno.mkdirSync(testDir, { recursive: true }); Deno.writeFileSync(testFile, new Uint8Array()); if (isWindows) { |