diff options
| author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2023-07-04 01:46:32 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-07-04 01:46:32 +0200 |
| commit | 3c8bbc434d32ad75097647b0cdbc9ea1b0ad2645 (patch) | |
| tree | 5743520be734337cca697175b3ea7bede8ac600d /cli/tests/unit | |
| parent | 7a7e0748e3ad6d178f5a351bbb5c8ed896f7f833 (diff) | |
feat: Stabilize Deno.serve() API (#19141)
This commit stabilizes "Deno.serve()", which becomes the
preferred way to create HTTP servers in Deno.
Documentation was adjusted for each overload of "Deno.serve()"
API and the API always binds to "127.0.0.1:8000" by default.
Diffstat (limited to 'cli/tests/unit')
| -rw-r--r-- | cli/tests/unit/serve_test.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cli/tests/unit/serve_test.ts b/cli/tests/unit/serve_test.ts index 8ab5209df..fd7cc869a 100644 --- a/cli/tests/unit/serve_test.ts +++ b/cli/tests/unit/serve_test.ts @@ -3077,16 +3077,16 @@ Deno.test( assertEquals( "hello world!", - await curlRequest(["https://localhost:9000/path", "-k"]), + await curlRequest(["https://localhost:8000/path", "-k"]), ); assertEquals( "hello world!", - await curlRequest(["https://localhost:9000/path", "-k", "--http2"]), + await curlRequest(["https://localhost:8000/path", "-k", "--http2"]), ); assertEquals( "hello world!", await curlRequest([ - "https://localhost:9000/path", + "https://localhost:8000/path", "-k", "--http2", "--http2-prior-knowledge", |
