From 80e22111416751ce34dbc5cb32ffa9f293517370 Mon Sep 17 00:00:00 2001 From: Luca Casonato Date: Thu, 30 Apr 2020 17:23:40 +0200 Subject: Unstable methods should not appear in runtime or d.ts (#4957) Co-authored-by: Kitson Kelly --- std/http/file_server_test.ts | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) (limited to 'std/http/file_server_test.ts') diff --git a/std/http/file_server_test.ts b/std/http/file_server_test.ts index 8be35621c..d471c1519 100644 --- a/std/http/file_server_test.ts +++ b/std/http/file_server_test.ts @@ -12,6 +12,7 @@ async function startFileServer(): Promise { cmd: [ Deno.execPath(), "run", + "--unstable", "--allow-read", "--allow-net", "http/file_server.ts", @@ -105,7 +106,14 @@ test("serveWithUnorthodoxFilename", async function (): Promise { test("servePermissionDenied", async function (): Promise { const deniedServer = Deno.run({ - cmd: [Deno.execPath(), "run", "--allow-net", "http/file_server.ts"], + // TODO(lucacasonato): remove unstable when stabilized + cmd: [ + Deno.execPath(), + "run", + "--unstable", + "--allow-net", + "http/file_server.ts", + ], stdout: "piped", stderr: "piped", }); @@ -132,7 +140,14 @@ test("servePermissionDenied", async function (): Promise { test("printHelp", async function (): Promise { const helpProcess = Deno.run({ - cmd: [Deno.execPath(), "run", "http/file_server.ts", "--help"], + // TODO(lucacasonato): remove unstable when stabilized + cmd: [ + Deno.execPath(), + "run", + "--unstable", + "http/file_server.ts", + "--help", + ], stdout: "piped", }); assert(helpProcess.stdout != null); -- cgit v1.2.3