From 47c2a63d872886ae1d0576f3cbf630151c8ff129 Mon Sep 17 00:00:00 2001 From: Matt Mastracci Date: Tue, 27 Feb 2024 08:05:57 -0700 Subject: chore: bump deno_core (#22596) Migrations: - snapshot code updated - runtime stats API tweaks --- tests/integration/repl_tests.rs | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'tests/integration') 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()); +} -- cgit v1.2.3