summaryrefslogtreecommitdiff
path: root/tests/integration/repl_tests.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/integration/repl_tests.rs')
-rw-r--r--tests/integration/repl_tests.rs13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/integration/repl_tests.rs b/tests/integration/repl_tests.rs
index 0e63f1589..7a09f904e 100644
--- a/tests/integration/repl_tests.rs
+++ b/tests/integration/repl_tests.rs
@@ -1119,3 +1119,16 @@ fn pty_promise_was_collected_regression_test() {
assert_contains!(out, "Uint8Array(67108864)");
assert!(err.is_empty());
}
+
+#[test]
+fn eval_file_promise_error() {
+ let (out, err) = util::run_and_collect_output_with_args(
+ true,
+ vec!["repl", "--eval-file=./repl/promise_rejection.ts"],
+ None,
+ None,
+ false,
+ );
+ assert_contains!(out, "Uncaught undefined");
+ assert!(err.is_empty());
+}