summaryrefslogtreecommitdiff
path: root/cli/tests/testdata
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tests/testdata')
-rw-r--r--cli/tests/testdata/bench/allow_all.ts2
-rw-r--r--cli/tests/testdata/bench/allow_none.ts2
-rw-r--r--cli/tests/testdata/cert/listen_tls_alpn_fail.ts2
-rw-r--r--cli/tests/testdata/compile/standalone_follow_redirects_2.js2
-rw-r--r--cli/tests/testdata/coverage/no_tests_included/foo.test.js2
-rw-r--r--cli/tests/testdata/coverage/no_tests_included/foo.test.mts2
-rw-r--r--cli/tests/testdata/coverage/no_tests_included/foo.test.ts2
-rw-r--r--cli/tests/testdata/coverage/no_transpiled_lines/expected.lcov6
-rw-r--r--cli/tests/testdata/coverage/no_transpiled_lines/expected.out2
-rw-r--r--cli/tests/testdata/coverage/no_transpiled_lines/index.ts4
-rw-r--r--cli/tests/testdata/run/045_proxy_test.ts2
-rw-r--r--cli/tests/testdata/run/import_meta/main.ts2
-rw-r--r--cli/tests/testdata/run/onload/imported.ts2
-rw-r--r--cli/tests/testdata/run/onload/main.ts2
-rw-r--r--cli/tests/testdata/run/onload/nest_imported.ts2
-rw-r--r--cli/tests/testdata/run/tls_connecttls.js5
-rw-r--r--cli/tests/testdata/run/tls_starttls.js5
-rw-r--r--cli/tests/testdata/run/websocket_server_idletimeout.ts2
-rw-r--r--cli/tests/testdata/run/websocket_test.ts2
-rw-r--r--cli/tests/testdata/run/websocketstream_test.ts2
-rw-r--r--cli/tests/testdata/test/allow_all.ts2
-rw-r--r--cli/tests/testdata/test/allow_none.ts2
-rw-r--r--cli/tests/testdata/welcome.ts1
-rw-r--r--cli/tests/testdata/workers/deno_worker.ts2
-rw-r--r--cli/tests/testdata/workers/test.ts2
25 files changed, 35 insertions, 26 deletions
diff --git a/cli/tests/testdata/bench/allow_all.ts b/cli/tests/testdata/bench/allow_all.ts
index beb4a450e..d7dde3a85 100644
--- a/cli/tests/testdata/bench/allow_all.ts
+++ b/cli/tests/testdata/bench/allow_all.ts
@@ -1,4 +1,4 @@
-import { assertEquals } from "../../../../test_util/std/assert/mod.ts";
+import { assertEquals } from "../../../../test_util/std/testing/asserts.ts";
const permissions: Deno.PermissionName[] = [
"read",
diff --git a/cli/tests/testdata/bench/allow_none.ts b/cli/tests/testdata/bench/allow_none.ts
index e723ed868..778e98420 100644
--- a/cli/tests/testdata/bench/allow_none.ts
+++ b/cli/tests/testdata/bench/allow_none.ts
@@ -1,4 +1,4 @@
-import { unreachable } from "../../../../test_util/std/assert/mod.ts";
+import { unreachable } from "../../../../test_util/std/testing/asserts.ts";
const permissions: Deno.PermissionName[] = [
"read",
diff --git a/cli/tests/testdata/cert/listen_tls_alpn_fail.ts b/cli/tests/testdata/cert/listen_tls_alpn_fail.ts
index c1aa4b31d..da60383f0 100644
--- a/cli/tests/testdata/cert/listen_tls_alpn_fail.ts
+++ b/cli/tests/testdata/cert/listen_tls_alpn_fail.ts
@@ -1,4 +1,4 @@
-import { assertRejects } from "../../../../test_util/std/assert/mod.ts";
+import { assertRejects } from "../../../../test_util/std/testing/asserts.ts";
const listener = Deno.listenTls({
port: Number(Deno.args[0]),
diff --git a/cli/tests/testdata/compile/standalone_follow_redirects_2.js b/cli/tests/testdata/compile/standalone_follow_redirects_2.js
index 00ebc0f5c..a1bf83875 100644
--- a/cli/tests/testdata/compile/standalone_follow_redirects_2.js
+++ b/cli/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 "../../../../test_util/std/testing/asserts.ts";
diff --git a/cli/tests/testdata/coverage/no_tests_included/foo.test.js b/cli/tests/testdata/coverage/no_tests_included/foo.test.js
index f555c2d0a..12da76d02 100644
--- a/cli/tests/testdata/coverage/no_tests_included/foo.test.js
+++ b/cli/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 "../../../../../test_util/std/testing/asserts.ts";
Deno.test("addNumbers works", () => {
assertEquals(addNumbers(1, 2), 3);
diff --git a/cli/tests/testdata/coverage/no_tests_included/foo.test.mts b/cli/tests/testdata/coverage/no_tests_included/foo.test.mts
index f555c2d0a..12da76d02 100644
--- a/cli/tests/testdata/coverage/no_tests_included/foo.test.mts
+++ b/cli/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 "../../../../../test_util/std/testing/asserts.ts";
Deno.test("addNumbers works", () => {
assertEquals(addNumbers(1, 2), 3);
diff --git a/cli/tests/testdata/coverage/no_tests_included/foo.test.ts b/cli/tests/testdata/coverage/no_tests_included/foo.test.ts
index f555c2d0a..12da76d02 100644
--- a/cli/tests/testdata/coverage/no_tests_included/foo.test.ts
+++ b/cli/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 "../../../../../test_util/std/testing/asserts.ts";
Deno.test("addNumbers works", () => {
assertEquals(addNumbers(1, 2), 3);
diff --git a/cli/tests/testdata/coverage/no_transpiled_lines/expected.lcov b/cli/tests/testdata/coverage/no_transpiled_lines/expected.lcov
index 480945d14..fae96ed35 100644
--- a/cli/tests/testdata/coverage/no_transpiled_lines/expected.lcov
+++ b/cli/tests/testdata/coverage/no_transpiled_lines/expected.lcov
@@ -4,7 +4,9 @@ FNH:0
BRF:0
BRH:0
DA:1,1
+DA:2,1
DA:3,1
-LH:2
-LF:2
+DA:5,1
+LH:4
+LF:4
end_of_record
diff --git a/cli/tests/testdata/coverage/no_transpiled_lines/expected.out b/cli/tests/testdata/coverage/no_transpiled_lines/expected.out
index 3438a045c..792bd654f 100644
--- a/cli/tests/testdata/coverage/no_transpiled_lines/expected.out
+++ b/cli/tests/testdata/coverage/no_transpiled_lines/expected.out
@@ -1 +1 @@
-cover [WILDCARD]index.ts ... 100.000% (2/2)
+cover [WILDCARD]index.ts ... 100.000% (4/4)
diff --git a/cli/tests/testdata/coverage/no_transpiled_lines/index.ts b/cli/tests/testdata/coverage/no_transpiled_lines/index.ts
index 7e4f22163..df25283cd 100644
--- a/cli/tests/testdata/coverage/no_transpiled_lines/index.ts
+++ b/cli/tests/testdata/coverage/no_transpiled_lines/index.ts
@@ -1,3 +1,5 @@
-export { assertStrictEquals } from "../../../../../test_util/std/assert/mod.ts";
+export {
+ assertStrictEquals,
+} from "../../../../../test_util/std/testing/asserts.ts";
export * from "./interface.ts";
diff --git a/cli/tests/testdata/run/045_proxy_test.ts b/cli/tests/testdata/run/045_proxy_test.ts
index eacce1130..8ca733a94 100644
--- a/cli/tests/testdata/run/045_proxy_test.ts
+++ b/cli/tests/testdata/run/045_proxy_test.ts
@@ -1,6 +1,6 @@
// Copyright 2018-2023 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 { assertEquals } from "../../../../test_util/std/testing/asserts.ts";
const addr = Deno.args[1] || "localhost:4555";
diff --git a/cli/tests/testdata/run/import_meta/main.ts b/cli/tests/testdata/run/import_meta/main.ts
index b6d9c506e..0d7cb96da 100644
--- a/cli/tests/testdata/run/import_meta/main.ts
+++ b/cli/tests/testdata/run/import_meta/main.ts
@@ -1,4 +1,4 @@
-import { assertThrows } from "../../../../../test_util/std/assert/mod.ts";
+import { assertThrows } from "../../../../../test_util/std/testing/asserts.ts";
console.log("main", import.meta.url, import.meta.main);
diff --git a/cli/tests/testdata/run/onload/imported.ts b/cli/tests/testdata/run/onload/imported.ts
index 971ddaea3..f4157b86f 100644
--- a/cli/tests/testdata/run/onload/imported.ts
+++ b/cli/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 "../../../../../test_util/std/testing/asserts.ts";
import "./nest_imported.ts";
const handler = (e: Event) => {
diff --git a/cli/tests/testdata/run/onload/main.ts b/cli/tests/testdata/run/onload/main.ts
index 191c4d872..126627e34 100644
--- a/cli/tests/testdata/run/onload/main.ts
+++ b/cli/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 "../../../../../test_util/std/testing/asserts.ts";
import "./imported.ts";
assert(window.hasOwnProperty("onload"));
diff --git a/cli/tests/testdata/run/onload/nest_imported.ts b/cli/tests/testdata/run/onload/nest_imported.ts
index e89699854..a942d2729 100644
--- a/cli/tests/testdata/run/onload/nest_imported.ts
+++ b/cli/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 "../../../../../test_util/std/testing/asserts.ts";
const handler = (e: Event) => {
assert(e.type === "beforeunload" ? e.cancelable : !e.cancelable);
diff --git a/cli/tests/testdata/run/tls_connecttls.js b/cli/tests/testdata/run/tls_connecttls.js
index 1fcf6640a..7c03856cb 100644
--- a/cli/tests/testdata/run/tls_connecttls.js
+++ b/cli/tests/testdata/run/tls_connecttls.js
@@ -1,5 +1,8 @@
import { deferred } from "../../../../test_util/std/async/deferred.ts";
-import { assert, assertEquals } from "../../../../test_util/std/assert/mod.ts";
+import {
+ assert,
+ assertEquals,
+} from "../../../../test_util/std/testing/asserts.ts";
import { BufReader, BufWriter } from "../../../../test_util/std/io/mod.ts";
import { TextProtoReader } from "./textproto.ts";
diff --git a/cli/tests/testdata/run/tls_starttls.js b/cli/tests/testdata/run/tls_starttls.js
index 34b97a4cb..ecf344211 100644
--- a/cli/tests/testdata/run/tls_starttls.js
+++ b/cli/tests/testdata/run/tls_starttls.js
@@ -1,5 +1,8 @@
import { deferred } from "../../../../test_util/std/async/deferred.ts";
-import { assert, assertEquals } from "../../../../test_util/std/assert/mod.ts";
+import {
+ assert,
+ assertEquals,
+} from "../../../../test_util/std/testing/asserts.ts";
import { BufReader } from "../../../../test_util/std/io/buf_reader.ts";
import { BufWriter } from "../../../../test_util/std/io/buf_writer.ts";
import { TextProtoReader } from "./textproto.ts";
diff --git a/cli/tests/testdata/run/websocket_server_idletimeout.ts b/cli/tests/testdata/run/websocket_server_idletimeout.ts
index e7bfd7337..211b5f6ea 100644
--- a/cli/tests/testdata/run/websocket_server_idletimeout.ts
+++ b/cli/tests/testdata/run/websocket_server_idletimeout.ts
@@ -1,4 +1,4 @@
-import { assertEquals } from "../../../../test_util/std/assert/mod.ts";
+import { assertEquals } from "../../../../test_util/std/testing/asserts.ts";
import { deferred } from "../../../../test_util/std/async/deferred.ts";
const errorDeferred = deferred();
diff --git a/cli/tests/testdata/run/websocket_test.ts b/cli/tests/testdata/run/websocket_test.ts
index e87bcc495..74a369d55 100644
--- a/cli/tests/testdata/run/websocket_test.ts
+++ b/cli/tests/testdata/run/websocket_test.ts
@@ -4,7 +4,7 @@ import {
assertEquals,
assertThrows,
fail,
-} from "../../../../test_util/std/assert/mod.ts";
+} from "../../../../test_util/std/testing/asserts.ts";
import { deferred } from "../../../../test_util/std/async/deferred.ts";
Deno.test("invalid scheme", () => {
diff --git a/cli/tests/testdata/run/websocketstream_test.ts b/cli/tests/testdata/run/websocketstream_test.ts
index f34eaf0ab..82dd59a20 100644
--- a/cli/tests/testdata/run/websocketstream_test.ts
+++ b/cli/tests/testdata/run/websocketstream_test.ts
@@ -7,7 +7,7 @@ import {
assertRejects,
assertThrows,
unreachable,
-} from "../../../../test_util/std/assert/mod.ts";
+} from "../../../../test_util/std/testing/asserts.ts";
Deno.test("fragment", () => {
assertThrows(() => new WebSocketStream("ws://localhost:4242/#"));
diff --git a/cli/tests/testdata/test/allow_all.ts b/cli/tests/testdata/test/allow_all.ts
index 50cd407e4..c7a238130 100644
--- a/cli/tests/testdata/test/allow_all.ts
+++ b/cli/tests/testdata/test/allow_all.ts
@@ -1,4 +1,4 @@
-import { assertEquals } from "../../../../test_util/std/assert/mod.ts";
+import { assertEquals } from "../../../../test_util/std/testing/asserts.ts";
const permissions: Deno.PermissionName[] = [
"read",
diff --git a/cli/tests/testdata/test/allow_none.ts b/cli/tests/testdata/test/allow_none.ts
index eb760242a..3153b9755 100644
--- a/cli/tests/testdata/test/allow_none.ts
+++ b/cli/tests/testdata/test/allow_none.ts
@@ -1,4 +1,4 @@
-import { unreachable } from "../../../../test_util/std/assert/mod.ts";
+import { unreachable } from "../../../../test_util/std/testing/asserts.ts";
const permissions: Deno.PermissionName[] = [
"read",
diff --git a/cli/tests/testdata/welcome.ts b/cli/tests/testdata/welcome.ts
deleted file mode 100644
index f983ca89b..000000000
--- a/cli/tests/testdata/welcome.ts
+++ /dev/null
@@ -1 +0,0 @@
-console.log("Welcome to Deno!");
diff --git a/cli/tests/testdata/workers/deno_worker.ts b/cli/tests/testdata/workers/deno_worker.ts
index eccdab5b0..a4dca1506 100644
--- a/cli/tests/testdata/workers/deno_worker.ts
+++ b/cli/tests/testdata/workers/deno_worker.ts
@@ -1,4 +1,4 @@
-import { assert } from "../../../../test_util/std/assert/mod.ts";
+import { assert } from "../../../../test_util/std/testing/asserts.ts";
onmessage = function (e) {
if (typeof self.Deno === "undefined") {
diff --git a/cli/tests/testdata/workers/test.ts b/cli/tests/testdata/workers/test.ts
index 6892ed85a..0ea9a7477 100644
--- a/cli/tests/testdata/workers/test.ts
+++ b/cli/tests/testdata/workers/test.ts
@@ -7,7 +7,7 @@ import {
assertEquals,
assertMatch,
assertThrows,
-} from "../../../../test_util/std/assert/mod.ts";
+} from "../../../../test_util/std/testing/asserts.ts";
import { deferred } from "../../../../test_util/std/async/deferred.ts";
Deno.test({