summaryrefslogtreecommitdiff
path: root/tests/specs
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2024-11-15 17:09:19 +0000
committerGitHub <noreply@github.com>2024-11-15 17:09:19 +0000
commitdee94473c435b38b2d7829731804ac96e6856d9c (patch)
tree9091efd15222fa8e58ee4b703fd347d989026317 /tests/specs
parentb8cf2599242a9d85d03b57d3649ccdf8bce1530e (diff)
fix: update message for unsupported schemes with npm and jsr (#26884)
Closes https://github.com/denoland/deno/issues/26596
Diffstat (limited to 'tests/specs')
-rw-r--r--tests/specs/npm/typo_in_npm/__test__.jsonc5
-rw-r--r--tests/specs/npm/typo_in_npm/main.out8
-rw-r--r--tests/specs/run/unsupported_dynamic_import_scheme/unsupported_dynamic_import_scheme.out15
3 files changed, 21 insertions, 7 deletions
diff --git a/tests/specs/npm/typo_in_npm/__test__.jsonc b/tests/specs/npm/typo_in_npm/__test__.jsonc
new file mode 100644
index 000000000..03023c9e7
--- /dev/null
+++ b/tests/specs/npm/typo_in_npm/__test__.jsonc
@@ -0,0 +1,5 @@
+{
+ "args": "run np:cowsay",
+ "output": "main.out",
+ "exitCode": 1
+}
diff --git a/tests/specs/npm/typo_in_npm/main.out b/tests/specs/npm/typo_in_npm/main.out
new file mode 100644
index 000000000..19f17b1d0
--- /dev/null
+++ b/tests/specs/npm/typo_in_npm/main.out
@@ -0,0 +1,8 @@
+error: Unsupported scheme "np" for module "np:cowsay". Supported schemes:
+ - "blob"
+ - "data"
+ - "file"
+ - "http"
+ - "https"
+ - "jsr"
+ - "npm"
diff --git a/tests/specs/run/unsupported_dynamic_import_scheme/unsupported_dynamic_import_scheme.out b/tests/specs/run/unsupported_dynamic_import_scheme/unsupported_dynamic_import_scheme.out
index c708fced4..3bff0201f 100644
--- a/tests/specs/run/unsupported_dynamic_import_scheme/unsupported_dynamic_import_scheme.out
+++ b/tests/specs/run/unsupported_dynamic_import_scheme/unsupported_dynamic_import_scheme.out
@@ -1,7 +1,8 @@
-error: Uncaught (in promise) TypeError: Unsupported scheme "xxx" for module "xxx:". Supported schemes: [
- "data",
- "blob",
- "file",
- "http",
- "https",
-]
+error: Uncaught (in promise) TypeError: Unsupported scheme "xxx" for module "xxx:". Supported schemes:
+ - "blob"
+ - "data"
+ - "file"
+ - "http"
+ - "https"
+ - "jsr"
+ - "npm"