summaryrefslogtreecommitdiff
path: root/cli/tests/045_proxy_test.ts
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tests/045_proxy_test.ts')
-rw-r--r--cli/tests/045_proxy_test.ts12
1 files changed, 6 insertions, 6 deletions
diff --git a/cli/tests/045_proxy_test.ts b/cli/tests/045_proxy_test.ts
index 98293c2a0..6f8b45fd1 100644
--- a/cli/tests/045_proxy_test.ts
+++ b/cli/tests/045_proxy_test.ts
@@ -17,7 +17,7 @@ async function proxyRequest(req: ServerRequest): Promise<void> {
console.log(`Proxy request to: ${req.url}`);
const resp = await fetch(req.url, {
method: req.method,
- headers: req.headers
+ headers: req.headers,
});
req.respond(resp);
}
@@ -27,8 +27,8 @@ async function testFetch(): Promise<void> {
cmd: [Deno.execPath(), "--reload", "--allow-net", "045_proxy_client.ts"],
stdout: "piped",
env: {
- HTTP_PROXY: `http://${addr}`
- }
+ HTTP_PROXY: `http://${addr}`,
+ },
});
const status = await c.status();
@@ -42,12 +42,12 @@ async function testModuleDownload(): Promise<void> {
Deno.execPath(),
"--reload",
"fetch",
- "http://localhost:4545/std/examples/colors.ts"
+ "http://localhost:4545/std/examples/colors.ts",
],
stdout: "piped",
env: {
- HTTP_PROXY: `http://${addr}`
- }
+ HTTP_PROXY: `http://${addr}`,
+ },
});
const httpStatus = await http.status();