From 8178665bd1877a55a4e82b07d6ac4a749c8a9c1c Mon Sep 17 00:00:00 2001 From: Jason Date: Fri, 2 Sep 2022 19:38:06 +0800 Subject: fix(cli/repl): await Promise.any([])... (#15623) --- cli/tests/integration/repl_tests.rs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'cli/tests/integration/repl_tests.rs') diff --git a/cli/tests/integration/repl_tests.rs b/cli/tests/integration/repl_tests.rs index 07b7575a0..cdeb36c9c 100644 --- a/cli/tests/integration/repl_tests.rs +++ b/cli/tests/integration/repl_tests.rs @@ -861,3 +861,17 @@ fn repl_report_error() { assert_contains!(out, "1\n2\nundefined\n"); assert!(err.is_empty()); } + +#[test] +fn pty_aggregate_error() { + let (out, err) = util::run_and_collect_output( + true, + "repl", + Some(vec!["await Promise.any([])"]), + Some(vec![("NO_COLOR".to_owned(), "1".to_owned())]), + false, + ); + + assert_contains!(out, "AggregateError"); + assert!(err.is_empty()); +} -- cgit v1.2.3