diff options
author | Asher Gomez <ashersaupingomez@gmail.com> | 2024-07-25 15:30:28 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-25 15:30:28 +1000 |
commit | 5f44148e83bb0056b7a361dd6a1bf28d11f3116d (patch) | |
tree | e73ff318a69cabedf33a962be6fa6c73e6775f3e /tests/specs | |
parent | 84b7504d0fdccc07b9f7412408c954ae07765ccb (diff) |
chore: update to `std@2024.07.19` (#24715)
Diffstat (limited to 'tests/specs')
-rw-r--r-- | tests/specs/future/runtime_api/worker.js | 2 | ||||
-rw-r--r-- | tests/specs/future/unstable_flags/worker.js | 2 | ||||
-rw-r--r-- | tests/specs/run/045_proxy/proxy_test.ts | 8 | ||||
-rw-r--r-- | tests/specs/run/045_proxy/proxy_test.ts.out | 2 | ||||
-rw-r--r-- | tests/specs/test/clean_flag/main.js | 2 | ||||
-rw-r--r-- | tests/specs/test/clean_flag/sum_test.js | 2 |
6 files changed, 7 insertions, 11 deletions
diff --git a/tests/specs/future/runtime_api/worker.js b/tests/specs/future/runtime_api/worker.js index 36d35b7b2..eac42fe56 100644 --- a/tests/specs/future/runtime_api/worker.js +++ b/tests/specs/future/runtime_api/worker.js @@ -1,4 +1,4 @@ -import { delay } from "@std/async/delay.ts"; +import { delay } from "@std/async/delay"; const worker = new Worker(import.meta.resolve("./main.js"), { type: "module" }); await delay(1_000); diff --git a/tests/specs/future/unstable_flags/worker.js b/tests/specs/future/unstable_flags/worker.js index 36d35b7b2..eac42fe56 100644 --- a/tests/specs/future/unstable_flags/worker.js +++ b/tests/specs/future/unstable_flags/worker.js @@ -1,4 +1,4 @@ -import { delay } from "@std/async/delay.ts"; +import { delay } from "@std/async/delay"; const worker = new Worker(import.meta.resolve("./main.js"), { type: "module" }); await delay(1_000); diff --git a/tests/specs/run/045_proxy/proxy_test.ts b/tests/specs/run/045_proxy/proxy_test.ts index d04356930..70781f97d 100644 --- a/tests/specs/run/045_proxy/proxy_test.ts +++ b/tests/specs/run/045_proxy/proxy_test.ts @@ -1,14 +1,10 @@ // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. -import { Server } from "@std/http/server.ts"; - const addr = Deno.args[1] || "localhost:4555"; -async function proxyServer() { +function proxyServer() { const [hostname, p] = addr.split(":"); const port = parseInt(p ?? 4555); - const server = new Server({ hostname, port, handler }); - console.log(`Proxy server listening on http://${addr}/`); - await server.listenAndServe(); + Deno.serve({ hostname, port }, handler); } async function handler(req: Request): Promise<Response> { diff --git a/tests/specs/run/045_proxy/proxy_test.ts.out b/tests/specs/run/045_proxy/proxy_test.ts.out index a1e567a14..39cb8779a 100644 --- a/tests/specs/run/045_proxy/proxy_test.ts.out +++ b/tests/specs/run/045_proxy/proxy_test.ts.out @@ -1,4 +1,4 @@ -Proxy server listening on [WILDCARD] +Listening on [WILDCARD] Proxy request to: http://localhost:4545/run/045_mod.ts Proxy request to: http://localhost:4545/run/045_mod.ts Proxy request to: http://localhost:4545/run/045_output.ts diff --git a/tests/specs/test/clean_flag/main.js b/tests/specs/test/clean_flag/main.js index 9ccdea1ce..d00e56958 100644 --- a/tests/specs/test/clean_flag/main.js +++ b/tests/specs/test/clean_flag/main.js @@ -1,4 +1,4 @@ -import { emptyDir } from "@std/fs/empty_dir.ts"; +import { emptyDir } from "@std/fs/empty-dir"; const DIR = "./coverage"; const COMMAND = new Deno.Command(Deno.execPath(), { diff --git a/tests/specs/test/clean_flag/sum_test.js b/tests/specs/test/clean_flag/sum_test.js index eab3c53ad..e49b60d45 100644 --- a/tests/specs/test/clean_flag/sum_test.js +++ b/tests/specs/test/clean_flag/sum_test.js @@ -1,5 +1,5 @@ import { sum } from "./sum.js"; -import { assertEquals } from "@std/assert/assert_equals.ts"; +import { assertEquals } from "@std/assert/equals"; Deno.test("sum()", () => { assertEquals(sum(1, 2), 3); |