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 --- http/file_server_test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'http') diff --git a/http/file_server_test.ts b/http/file_server_test.ts index 6623406d0..b7148905b 100644 --- a/http/file_server_test.ts +++ b/http/file_server_test.ts @@ -61,9 +61,9 @@ test(async function serveDirectory(): Promise { // `Deno.FileInfo` is not completely compatible with Windows yet // TODO: `mode` should work correctly in the future. // Correct this test case accordingly. - Deno.platform.os !== "win" && + Deno.build.os !== "win" && assert(/\([a-zA-Z-]{10}\)<\/td>/.test(page)); - Deno.platform.os === "win" && + Deno.build.os === "win" && assert(/\(unknown mode\)<\/td>/.test(page)); assert( page.includes( -- cgit v1.2.3