mirror of
https://github.com/denoland/deno.git
synced 2025-03-04 01:44:26 -05:00
test: improve http_proxy test (#3185)
This commit is contained in:
parent
ea8231af33
commit
ec44b5b6af
4 changed files with 6 additions and 4 deletions
|
@ -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()}`);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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: {
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
Loading…
Add table
Reference in a new issue