summaryrefslogtreecommitdiff
path: root/cli/tests
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2023-07-04 01:46:32 +0200
committerGitHub <noreply@github.com>2023-07-04 01:46:32 +0200
commit3c8bbc434d32ad75097647b0cdbc9ea1b0ad2645 (patch)
tree5743520be734337cca697175b3ea7bede8ac600d /cli/tests
parent7a7e0748e3ad6d178f5a351bbb5c8ed896f7f833 (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')
-rw-r--r--cli/tests/integration/lsp_tests.rs2
-rw-r--r--cli/tests/unit/serve_test.ts6
2 files changed, 4 insertions, 4 deletions
diff --git a/cli/tests/integration/lsp_tests.rs b/cli/tests/integration/lsp_tests.rs
index 9135698b2..5164975cf 100644
--- a/cli/tests/integration/lsp_tests.rs
+++ b/cli/tests/integration/lsp_tests.rs
@@ -4788,7 +4788,7 @@ fn lsp_completions_auto_import() {
"source": "./b.ts",
"data": {
"exportName": "foo",
- "exportMapKey": "foo|6768|file:///a/b",
+ "exportMapKey": "foo|6799|file:///a/b",
"moduleSpecifier": "./b.ts",
"fileName": "file:///a/b.ts"
},
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",