diff options
Diffstat (limited to 'cli/tests')
-rw-r--r-- | cli/tests/error_009_op_crates_error.js | 2 | ||||
-rw-r--r-- | cli/tests/error_009_op_crates_error.js.out | 3 | ||||
-rw-r--r-- | cli/tests/integration_tests.rs | 6 |
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, |