0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-03-03 17:34:47 -05:00

test: improve http_proxy test (#3185)

This commit is contained in:
Yoshiya Hinosawa 2019-10-22 22:52:41 +09:00 committed by Ry Dahl
parent ea8231af33
commit ec44b5b6af
4 changed files with 6 additions and 4 deletions

View file

@ -1,6 +1,6 @@
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. // Copyright 2018-2019 the Deno authors. All rights reserved. MIT license.
async function main(): Promise<void> { async function main(): Promise<void> {
const res = await fetch("http://deno.land/welcome.ts"); const res = await fetch("http://localhost:4545/std/examples/colors.ts");
console.log(`Response http: ${await res.text()}`); console.log(`Response http: ${await res.text()}`);
} }

View file

@ -49,7 +49,7 @@ async function testModuleDownload(): Promise<void> {
"--no-prompt", "--no-prompt",
"--reload", "--reload",
"fetch", "fetch",
"http://deno.land/welcome.ts" "http://localhost:4545/std/examples/colors.ts"
], ],
stdout: "piped", stdout: "piped",
env: { env: {

View file

@ -1,3 +1,4 @@
Proxy server listening on [WILDCARD] Proxy server listening on [WILDCARD]
Proxy request to: http://deno.land/welcome.ts Proxy request to: http://localhost:4545/std/examples/colors.ts
Proxy request to: http://deno.land/welcome.ts Proxy request to: http://localhost:4545/std/examples/colors.ts
Proxy request to: http://localhost:4545/std/fmt/colors.ts

View file

@ -314,6 +314,7 @@ itest!(_044_bad_resource {
itest!(_045_proxy { itest!(_045_proxy {
args: "run --allow-net --allow-env --allow-run --reload 045_proxy_test.ts", args: "run --allow-net --allow-env --allow-run --reload 045_proxy_test.ts",
output: "045_proxy_test.ts.out", output: "045_proxy_test.ts.out",
http_server: true,
}); });
itest!(_046_tsx { itest!(_046_tsx {