summaryrefslogtreecommitdiff
path: root/cli/tests
diff options
context:
space:
mode:
authorNayeem Rahman <nayeemrmn99@gmail.com>2020-09-09 13:23:57 +0100
committerGitHub <noreply@github.com>2020-09-09 14:23:57 +0200
commitb17a5fbcfaaeb70f8876ce4ca09fdcc61f7e825c (patch)
treeb59175137a0c7db162895feb6fe35213ab326b20 /cli/tests
parentc14436a424449d845a769a70ca7bc3d313201482 (diff)
fix(op_crates/web): Use "deno:" URLs for internal script specifiers (#7383)
Diffstat (limited to 'cli/tests')
-rw-r--r--cli/tests/error_009_op_crates_error.js2
-rw-r--r--cli/tests/error_009_op_crates_error.js.out3
-rw-r--r--cli/tests/integration_tests.rs6
3 files changed, 11 insertions, 0 deletions
diff --git a/cli/tests/error_009_op_crates_error.js b/cli/tests/error_009_op_crates_error.js
new file mode 100644
index 000000000..01b97ea38
--- /dev/null
+++ b/cli/tests/error_009_op_crates_error.js
@@ -0,0 +1,2 @@
+// Missing arg.
+new Event();
diff --git a/cli/tests/error_009_op_crates_error.js.out b/cli/tests/error_009_op_crates_error.js.out
new file mode 100644
index 000000000..fd428b28e
--- /dev/null
+++ b/cli/tests/error_009_op_crates_error.js.out
@@ -0,0 +1,3 @@
+[WILDCARD]error: Uncaught TypeError: Event requires at least 1 argument, but only 0 present[WILDCARD]
+ at new Event (deno:op_crates/web/[WILDCARD])
+ at [WILDCARD]
diff --git a/cli/tests/integration_tests.rs b/cli/tests/integration_tests.rs
index 4b1b67f7f..2f70cf050 100644
--- a/cli/tests/integration_tests.rs
+++ b/cli/tests/integration_tests.rs
@@ -1811,6 +1811,12 @@ itest!(error_008_checkjs {
output: "error_008_checkjs.js.out",
});
+itest!(error_009_op_crates_error {
+ args: "run error_009_op_crates_error.js",
+ output: "error_009_op_crates_error.js.out",
+ exit_code: 1,
+});
+
itest!(error_011_bad_module_specifier {
args: "run --reload error_011_bad_module_specifier.ts",
exit_code: 1,