summaryrefslogtreecommitdiff
path: root/tests/testdata
diff options
context:
space:
mode:
Diffstat (limited to 'tests/testdata')
-rw-r--r--tests/testdata/import_attributes/dynamic_import.ts1
-rw-r--r--tests/testdata/import_attributes/json_with_shebang.ts1
-rw-r--r--tests/testdata/import_attributes/static_import.ts1
-rw-r--r--tests/testdata/import_attributes/type_check.out4
-rw-r--r--tests/testdata/import_attributes/type_check.ts1
-rw-r--r--tests/testdata/workers/http_worker.js3
6 files changed, 9 insertions, 2 deletions
diff --git a/tests/testdata/import_attributes/dynamic_import.ts b/tests/testdata/import_attributes/dynamic_import.ts
index 73f348697..afff52e1a 100644
--- a/tests/testdata/import_attributes/dynamic_import.ts
+++ b/tests/testdata/import_attributes/dynamic_import.ts
@@ -1,4 +1,5 @@
const data1 = await import("./data.json", { with: { type: "json" } });
+// deno-lint-ignore no-import-assertions
const data2 = await import("./data.json", { assert: { type: "json" } });
console.log(data1);
diff --git a/tests/testdata/import_attributes/json_with_shebang.ts b/tests/testdata/import_attributes/json_with_shebang.ts
index 523bf8772..0a785210f 100644
--- a/tests/testdata/import_attributes/json_with_shebang.ts
+++ b/tests/testdata/import_attributes/json_with_shebang.ts
@@ -1,3 +1,4 @@
+// deno-lint-ignore no-import-assertions
import json from "./json_with_shebang.json" assert { type: "json" };
console.log(json);
diff --git a/tests/testdata/import_attributes/static_import.ts b/tests/testdata/import_attributes/static_import.ts
index d46d93b4a..1538a4a2f 100644
--- a/tests/testdata/import_attributes/static_import.ts
+++ b/tests/testdata/import_attributes/static_import.ts
@@ -1,4 +1,5 @@
import data1 from "./data.json" with { type: "json" };
+// deno-lint-ignore no-import-assertions
import data2 from "./data.json" assert { type: "json" };
console.log(data1);
diff --git a/tests/testdata/import_attributes/type_check.out b/tests/testdata/import_attributes/type_check.out
index 5ecdec82d..2fc26dae3 100644
--- a/tests/testdata/import_attributes/type_check.out
+++ b/tests/testdata/import_attributes/type_check.out
@@ -2,11 +2,11 @@ Check file:///[WILDCARD]/type_check.ts
error: TS2339 [ERROR]: Property 'foo' does not exist on type '{ a: string; c: { d: number; }; }'.
console.log(data1.foo);
~~~
- at [WILDCARD]type_check.ts:4:19
+ at [WILDCARD]type_check.ts:5:19
TS2339 [ERROR]: Property 'foo' does not exist on type '{ a: string; c: { d: number; }; }'.
console.log(data2.foo);
~~~
- at [WILDCARD]type_check.ts:5:19
+ at [WILDCARD]type_check.ts:6:19
Found 2 errors.
diff --git a/tests/testdata/import_attributes/type_check.ts b/tests/testdata/import_attributes/type_check.ts
index ddf28e67a..36e47bd5b 100644
--- a/tests/testdata/import_attributes/type_check.ts
+++ b/tests/testdata/import_attributes/type_check.ts
@@ -1,4 +1,5 @@
import data1 from "./data.json" with { type: "json" };
+// deno-lint-ignore no-import-assertions
import data2 from "./data.json" assert { type: "json" };
console.log(data1.foo);
diff --git a/tests/testdata/workers/http_worker.js b/tests/testdata/workers/http_worker.js
index 3cd1625ab..c617e2e92 100644
--- a/tests/testdata/workers/http_worker.js
+++ b/tests/testdata/workers/http_worker.js
@@ -1,4 +1,7 @@
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
+
+// deno-lint-ignore-file no-deprecated-deno-api
+
const listener = Deno.listen({ hostname: "127.0.0.1", port: 4506 });
postMessage("ready");
for await (const conn of listener) {