diff options
Diffstat (limited to 'cli/tests/unit/remove_test.ts')
-rw-r--r-- | cli/tests/unit/remove_test.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cli/tests/unit/remove_test.ts b/cli/tests/unit/remove_test.ts index ae439e305..0032459eb 100644 --- a/cli/tests/unit/remove_test.ts +++ b/cli/tests/unit/remove_test.ts @@ -260,10 +260,10 @@ if (Deno.build.os === "windows") { Deno.test( { permissions: { run: true, write: true, read: true } }, async function removeFileSymlink() { - const { success } = await Deno.spawn("cmd", { + const { success } = await new Deno.Command("cmd", { args: ["/c", "mklink", "file_link", "bar"], stdout: "null", - }); + }).output(); assert(success); await Deno.remove("file_link"); @@ -276,10 +276,10 @@ if (Deno.build.os === "windows") { Deno.test( { permissions: { run: true, write: true, read: true } }, async function removeDirSymlink() { - const { success } = await Deno.spawn("cmd", { + const { success } = await new Deno.Command("cmd", { args: ["/c", "mklink", "/d", "dir_link", "bar"], stdout: "null", - }); + }).output(); assert(success); await Deno.remove("dir_link"); |