summaryrefslogtreecommitdiff
path: root/std/http/file_server_test.ts
diff options
context:
space:
mode:
Diffstat (limited to 'std/http/file_server_test.ts')
-rw-r--r--std/http/file_server_test.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/std/http/file_server_test.ts b/std/http/file_server_test.ts
index c377f3bda..eff47c41b 100644
--- a/std/http/file_server_test.ts
+++ b/std/http/file_server_test.ts
@@ -62,9 +62,9 @@ test("serveDirectory", async function (): 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.build.os !== "win" &&
+ Deno.build.os !== "windows" &&
assert(/<td class="mode">(\s)*\([a-zA-Z-]{10}\)(\s)*<\/td>/.test(page));
- Deno.build.os === "win" &&
+ Deno.build.os === "windows" &&
assert(/<td class="mode">(\s)*\(unknown mode\)(\s)*<\/td>/.test(page));
assert(page.includes(`<a href="/README.md">README.md</a>`));
} finally {