summaryrefslogtreecommitdiff
path: root/std/http/file_server_test.ts
diff options
context:
space:
mode:
authorLuca Casonato <lucacasonato@yahoo.com>2020-04-30 17:23:40 +0200
committerGitHub <noreply@github.com>2020-04-30 11:23:40 -0400
commit80e22111416751ce34dbc5cb32ffa9f293517370 (patch)
tree5b3fe5d16ee07143e5dcb2c766a1f48c296ad9d6 /std/http/file_server_test.ts
parent4993a6504b4b447e0e02454094cffb02ee18c081 (diff)
Unstable methods should not appear in runtime or d.ts (#4957)
Co-authored-by: Kitson Kelly <me@kitsonkelly.com>
Diffstat (limited to 'std/http/file_server_test.ts')
-rw-r--r--std/http/file_server_test.ts19
1 files changed, 17 insertions, 2 deletions
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<void> {
cmd: [
Deno.execPath(),
"run",
+ "--unstable",
"--allow-read",
"--allow-net",
"http/file_server.ts",
@@ -105,7 +106,14 @@ test("serveWithUnorthodoxFilename", async function (): Promise<void> {
test("servePermissionDenied", async function (): Promise<void> {
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<void> {
test("printHelp", async function (): Promise<void> {
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);