From 7b22dec0fa6c83e0bd8f6ebee38c05001b61e408 Mon Sep 17 00:00:00 2001 From: Yoshiya Hinosawa Date: Tue, 10 Sep 2019 02:58:36 +0900 Subject: fix: replace Deno.platform usages (denoland/deno_std#590) Original: https://github.com/denoland/deno_std/commit/0e6f163ac6a5a03f45a90960a6f1193ee2718fe3 --- fs/copy_test.ts | 2 +- fs/ensure_symlink_test.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'fs') diff --git a/fs/copy_test.ts b/fs/copy_test.ts index 09aae0ff6..a11838c4b 100644 --- a/fs/copy_test.ts +++ b/fs/copy_test.ts @@ -16,7 +16,7 @@ import { ensureSymlink, ensureSymlinkSync } from "./ensure_symlink.ts"; const testdataDir = path.resolve("fs", "testdata"); // TODO(axetroy): Add test for Windows once symlink is implemented for Windows. -const isWindows = Deno.platform.os === "win"; +const isWindows = Deno.build.os === "win"; async function testCopy( name: string, diff --git a/fs/ensure_symlink_test.ts b/fs/ensure_symlink_test.ts index d769615fb..4dee56788 100644 --- a/fs/ensure_symlink_test.ts +++ b/fs/ensure_symlink_test.ts @@ -10,7 +10,7 @@ import { ensureSymlink, ensureSymlinkSync } from "./ensure_symlink.ts"; import * as path from "./path/mod.ts"; const testdataDir = path.resolve("fs", "testdata"); -const isWindows = Deno.platform.os === "win"; +const isWindows = Deno.build.os === "win"; test(async function ensureSymlinkIfItNotExist(): Promise { const testDir = path.join(testdataDir, "link_file_1"); -- cgit v1.2.3