diff options
Diffstat (limited to 'tests/testdata')
25 files changed, 30 insertions, 30 deletions
diff --git a/tests/testdata/bench/allow_all.ts b/tests/testdata/bench/allow_all.ts index 43e005b58..b31aaf397 100644 --- a/tests/testdata/bench/allow_all.ts +++ b/tests/testdata/bench/allow_all.ts @@ -1,4 +1,4 @@ -import { assertEquals } from "../../../test_util/std/assert/mod.ts"; +import { assertEquals } from "../../../tests/util/std/assert/mod.ts"; const permissions: Deno.PermissionName[] = [ "read", diff --git a/tests/testdata/bench/allow_none.ts b/tests/testdata/bench/allow_none.ts index 62eb9c4c6..0cf3c27ef 100644 --- a/tests/testdata/bench/allow_none.ts +++ b/tests/testdata/bench/allow_none.ts @@ -1,4 +1,4 @@ -import { unreachable } from "../../../test_util/std/assert/mod.ts"; +import { unreachable } from "../../../tests/util/std/assert/mod.ts"; const permissions: Deno.PermissionName[] = [ "read", diff --git a/tests/testdata/cat.ts b/tests/testdata/cat.ts index f0205451e..39745da89 100644 --- a/tests/testdata/cat.ts +++ b/tests/testdata/cat.ts @@ -1,4 +1,4 @@ -import { copy } from "../../test_util/std/streams/copy.ts"; +import { copy } from "../../tests/util/std/streams/copy.ts"; async function main() { for (let i = 1; i < Deno.args.length; i++) { const filename = Deno.args[i]; diff --git a/tests/testdata/cert/listen_tls_alpn_fail.ts b/tests/testdata/cert/listen_tls_alpn_fail.ts index f52316cbc..78fa39500 100644 --- a/tests/testdata/cert/listen_tls_alpn_fail.ts +++ b/tests/testdata/cert/listen_tls_alpn_fail.ts @@ -1,4 +1,4 @@ -import { assertRejects } from "../../../test_util/std/assert/mod.ts"; +import { assertRejects } from "../../../tests/util/std/assert/mod.ts"; const listener = Deno.listenTls({ port: Number(Deno.args[0]), diff --git a/tests/testdata/compile/dynamic_imports/main_unanalyzable.ts b/tests/testdata/compile/dynamic_imports/main_unanalyzable.ts index 7880fa4a6..d87d917c2 100644 --- a/tests/testdata/compile/dynamic_imports/main_unanalyzable.ts +++ b/tests/testdata/compile/dynamic_imports/main_unanalyzable.ts @@ -1,4 +1,4 @@ -import { join } from "../../../../test_util/std/path/mod.ts"; +import { join } from "../../../../tests/util/std/path/mod.ts"; console.log("Starting the main module"); diff --git a/tests/testdata/compile/standalone_follow_redirects_2.js b/tests/testdata/compile/standalone_follow_redirects_2.js index 765dda153..1d00679f3 100644 --- a/tests/testdata/compile/standalone_follow_redirects_2.js +++ b/tests/testdata/compile/standalone_follow_redirects_2.js @@ -2,4 +2,4 @@ import { assertNotEquals as _a, assertStrictEquals as _b, -} from "../../../test_util/std/assert/mod.ts"; +} from "../../../tests/util/std/assert/mod.ts"; diff --git a/tests/testdata/coverage/no_snaps_included/no_snaps_included_test.ts b/tests/testdata/coverage/no_snaps_included/no_snaps_included_test.ts index 6fb44fcc6..c9cc648ea 100644 --- a/tests/testdata/coverage/no_snaps_included/no_snaps_included_test.ts +++ b/tests/testdata/coverage/no_snaps_included/no_snaps_included_test.ts @@ -1,4 +1,4 @@ -import { assertSnapshot } from "../../../../test_util/std/testing/snapshot.ts"; +import { assertSnapshot } from "../../../../tests/util/std/testing/snapshot.ts"; import { truth } from "./no_snaps_included.ts"; Deno.test("the truth", () => { diff --git a/tests/testdata/coverage/no_tests_included/foo.test.js b/tests/testdata/coverage/no_tests_included/foo.test.js index 46dd037be..4c835026a 100644 --- a/tests/testdata/coverage/no_tests_included/foo.test.js +++ b/tests/testdata/coverage/no_tests_included/foo.test.js @@ -1,5 +1,5 @@ import { addNumbers } from "./foo.ts"; -import { assertEquals } from "../../../../test_util/std/assert/mod.ts"; +import { assertEquals } from "../../../../tests/util/std/assert/mod.ts"; Deno.test("addNumbers works", () => { assertEquals(addNumbers(1, 2), 3); diff --git a/tests/testdata/coverage/no_tests_included/foo.test.mts b/tests/testdata/coverage/no_tests_included/foo.test.mts index 46dd037be..4c835026a 100644 --- a/tests/testdata/coverage/no_tests_included/foo.test.mts +++ b/tests/testdata/coverage/no_tests_included/foo.test.mts @@ -1,5 +1,5 @@ import { addNumbers } from "./foo.ts"; -import { assertEquals } from "../../../../test_util/std/assert/mod.ts"; +import { assertEquals } from "../../../../tests/util/std/assert/mod.ts"; Deno.test("addNumbers works", () => { assertEquals(addNumbers(1, 2), 3); diff --git a/tests/testdata/coverage/no_tests_included/foo.test.ts b/tests/testdata/coverage/no_tests_included/foo.test.ts index 46dd037be..4c835026a 100644 --- a/tests/testdata/coverage/no_tests_included/foo.test.ts +++ b/tests/testdata/coverage/no_tests_included/foo.test.ts @@ -1,5 +1,5 @@ import { addNumbers } from "./foo.ts"; -import { assertEquals } from "../../../../test_util/std/assert/mod.ts"; +import { assertEquals } from "../../../../tests/util/std/assert/mod.ts"; Deno.test("addNumbers works", () => { assertEquals(addNumbers(1, 2), 3); diff --git a/tests/testdata/coverage/no_transpiled_lines/index.ts b/tests/testdata/coverage/no_transpiled_lines/index.ts index 8b87e7680..27b2dd758 100644 --- a/tests/testdata/coverage/no_transpiled_lines/index.ts +++ b/tests/testdata/coverage/no_transpiled_lines/index.ts @@ -1,3 +1,3 @@ -export { assertStrictEquals } from "../../../../test_util/std/assert/mod.ts"; +export { assertStrictEquals } from "../../../../tests/util/std/assert/mod.ts"; export * from "./interface.ts"; diff --git a/tests/testdata/echo_server.ts b/tests/testdata/echo_server.ts index e7622c7aa..cbf081c35 100644 --- a/tests/testdata/echo_server.ts +++ b/tests/testdata/echo_server.ts @@ -1,4 +1,4 @@ -import { copy } from "../../test_util/std/streams/copy.ts"; +import { copy } from "../../tests/util/std/streams/copy.ts"; const addr = Deno.args[0] || "0.0.0.0:4544"; const [hostname, port] = addr.split(":"); const listener = Deno.listen({ hostname, port: Number(port) }); diff --git a/tests/testdata/run/045_proxy_test.ts b/tests/testdata/run/045_proxy_test.ts index 1929ed6bc..fcb898c77 100644 --- a/tests/testdata/run/045_proxy_test.ts +++ b/tests/testdata/run/045_proxy_test.ts @@ -1,6 +1,6 @@ // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. -import { Server } from "../../../test_util/std/http/server.ts"; -import { assertEquals } from "../../../test_util/std/assert/mod.ts"; +import { Server } from "../../../tests/util/std/http/server.ts"; +import { assertEquals } from "../../../tests/util/std/assert/mod.ts"; const addr = Deno.args[1] || "localhost:4555"; diff --git a/tests/testdata/run/import_meta/main.ts b/tests/testdata/run/import_meta/main.ts index 61880e2c1..384a9232e 100644 --- a/tests/testdata/run/import_meta/main.ts +++ b/tests/testdata/run/import_meta/main.ts @@ -1,4 +1,4 @@ -import { assertThrows } from "../../../../test_util/std/assert/mod.ts"; +import { assertThrows } from "../../../../tests/util/std/assert/mod.ts"; import "http://localhost:4545/run/import_meta/other.ts"; import "./other.ts"; diff --git a/tests/testdata/run/onload/imported.ts b/tests/testdata/run/onload/imported.ts index d2a93c8d2..5c412bd43 100644 --- a/tests/testdata/run/onload/imported.ts +++ b/tests/testdata/run/onload/imported.ts @@ -1,5 +1,5 @@ // deno-lint-ignore-file no-window-prefix -import { assert } from "../../../../test_util/std/assert/mod.ts"; +import { assert } from "../../../../tests/util/std/assert/mod.ts"; import "./nest_imported.ts"; const handler = (e: Event) => { diff --git a/tests/testdata/run/onload/main.ts b/tests/testdata/run/onload/main.ts index 990a21131..e3eae99fa 100644 --- a/tests/testdata/run/onload/main.ts +++ b/tests/testdata/run/onload/main.ts @@ -1,5 +1,5 @@ // deno-lint-ignore-file no-window-prefix no-prototype-builtins -import { assert } from "../../../../test_util/std/assert/mod.ts"; +import { assert } from "../../../../tests/util/std/assert/mod.ts"; import "./imported.ts"; assert(window.hasOwnProperty("onload")); diff --git a/tests/testdata/run/onload/nest_imported.ts b/tests/testdata/run/onload/nest_imported.ts index 2151f4185..61af36e0a 100644 --- a/tests/testdata/run/onload/nest_imported.ts +++ b/tests/testdata/run/onload/nest_imported.ts @@ -1,5 +1,5 @@ // deno-lint-ignore-file no-window-prefix -import { assert } from "../../../../test_util/std/assert/mod.ts"; +import { assert } from "../../../../tests/util/std/assert/mod.ts"; const handler = (e: Event) => { assert(e.type === "beforeunload" ? e.cancelable : !e.cancelable); diff --git a/tests/testdata/run/textproto.ts b/tests/testdata/run/textproto.ts index cf9a4dce9..7297fc446 100644 --- a/tests/testdata/run/textproto.ts +++ b/tests/testdata/run/textproto.ts @@ -17,8 +17,8 @@ import type { BufReader, ReadLineResult, -} from "../../../test_util/std/io/buf_reader.ts"; -import { concat } from "../../../test_util/std/bytes/concat.ts"; +} from "../../../tests/util/std/io/buf_reader.ts"; +import { concat } from "../../../tests/util/std/bytes/concat.ts"; // Constants created for DRY const CHAR_SPACE: number = " ".charCodeAt(0); diff --git a/tests/testdata/run/tls_connecttls.js b/tests/testdata/run/tls_connecttls.js index f085d7a8f..b3cc3f339 100644 --- a/tests/testdata/run/tls_connecttls.js +++ b/tests/testdata/run/tls_connecttls.js @@ -1,5 +1,5 @@ -import { assert, assertEquals } from "../../../test_util/std/assert/mod.ts"; -import { BufReader, BufWriter } from "../../../test_util/std/io/mod.ts"; +import { assert, assertEquals } from "../../../tests/util/std/assert/mod.ts"; +import { BufReader, BufWriter } from "../../../tests/util/std/io/mod.ts"; import { TextProtoReader } from "./textproto.ts"; const encoder = new TextEncoder(); diff --git a/tests/testdata/run/tls_starttls.js b/tests/testdata/run/tls_starttls.js index 5f5428ecd..ebe0d0725 100644 --- a/tests/testdata/run/tls_starttls.js +++ b/tests/testdata/run/tls_starttls.js @@ -1,6 +1,6 @@ -import { assert, assertEquals } from "../../../test_util/std/assert/mod.ts"; -import { BufReader } from "../../../test_util/std/io/buf_reader.ts"; -import { BufWriter } from "../../../test_util/std/io/buf_writer.ts"; +import { assert, assertEquals } from "../../../tests/util/std/assert/mod.ts"; +import { BufReader } from "../../../tests/util/std/io/buf_reader.ts"; +import { BufWriter } from "../../../tests/util/std/io/buf_writer.ts"; import { TextProtoReader } from "./textproto.ts"; const encoder = new TextEncoder(); diff --git a/tests/testdata/run/websocket_server_idletimeout.ts b/tests/testdata/run/websocket_server_idletimeout.ts index f116c4556..85b031b8e 100644 --- a/tests/testdata/run/websocket_server_idletimeout.ts +++ b/tests/testdata/run/websocket_server_idletimeout.ts @@ -1,4 +1,4 @@ -import { assertEquals } from "../../../test_util/std/assert/mod.ts"; +import { assertEquals } from "../../../tests/util/std/assert/mod.ts"; const errorDeferred = Promise.withResolvers<void>(); const closeDeferred = Promise.withResolvers<void>(); diff --git a/tests/testdata/test/allow_all.ts b/tests/testdata/test/allow_all.ts index e533bc017..44d61d99b 100644 --- a/tests/testdata/test/allow_all.ts +++ b/tests/testdata/test/allow_all.ts @@ -1,4 +1,4 @@ -import { assertEquals } from "../../../test_util/std/assert/mod.ts"; +import { assertEquals } from "../../../tests/util/std/assert/mod.ts"; const permissions: Deno.PermissionName[] = [ "read", diff --git a/tests/testdata/test/allow_none.ts b/tests/testdata/test/allow_none.ts index 04c40a093..359f31700 100644 --- a/tests/testdata/test/allow_none.ts +++ b/tests/testdata/test/allow_none.ts @@ -1,4 +1,4 @@ -import { unreachable } from "../../../test_util/std/assert/mod.ts"; +import { unreachable } from "../../../tests/util/std/assert/mod.ts"; const permissions: Deno.PermissionName[] = [ "read", diff --git a/tests/testdata/test/ops_sanitizer_missing_details.ts b/tests/testdata/test/ops_sanitizer_missing_details.ts index a40240bfc..45fc89b42 100644 --- a/tests/testdata/test/ops_sanitizer_missing_details.ts +++ b/tests/testdata/test/ops_sanitizer_missing_details.ts @@ -1,6 +1,6 @@ // https://github.com/denoland/deno/issues/13729 // https://github.com/denoland/deno/issues/13938 -import { writeAll } from "../../../test_util/std/streams/write_all.ts"; +import { writeAll } from "../../../tests/util/std/streams/write_all.ts"; Deno.test("test 1", { permissions: { write: true, read: true } }, async () => { const tmpFile = await Deno.makeTempFile(); diff --git a/tests/testdata/workers/deno_worker.ts b/tests/testdata/workers/deno_worker.ts index cbebde94a..9928b378b 100644 --- a/tests/testdata/workers/deno_worker.ts +++ b/tests/testdata/workers/deno_worker.ts @@ -1,4 +1,4 @@ -import { assert } from "../../../test_util/std/assert/mod.ts"; +import { assert } from "../../../tests/util/std/assert/mod.ts"; onmessage = function (e) { if (typeof self.Deno === "undefined") { |
