summaryrefslogtreecommitdiff
path: root/http/file_server_test.ts
diff options
context:
space:
mode:
Diffstat (limited to 'http/file_server_test.ts')
-rw-r--r--http/file_server_test.ts4
1 files changed, 2 insertions, 2 deletions
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<void> {
// `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(/<td class="mode">\([a-zA-Z-]{10}\)<\/td>/.test(page));
- Deno.platform.os === "win" &&
+ Deno.build.os === "win" &&
assert(/<td class="mode">\(unknown mode\)<\/td>/.test(page));
assert(
page.includes(