summaryrefslogtreecommitdiff
path: root/cli/tests/integration/repl_tests.rs
diff options
context:
space:
mode:
authorJason <m.jason.liu@outlook.com>2022-09-02 19:38:06 +0800
committerGitHub <noreply@github.com>2022-09-02 13:38:06 +0200
commit8178665bd1877a55a4e82b07d6ac4a749c8a9c1c (patch)
tree74ba2bf20abbe3ba44080b9177489ff117b097f7 /cli/tests/integration/repl_tests.rs
parenta74b2ecf379ddb1ff03c61d4e876153d7b4c45d2 (diff)
fix(cli/repl): await Promise.any([])... (#15623)
Diffstat (limited to 'cli/tests/integration/repl_tests.rs')
-rw-r--r--cli/tests/integration/repl_tests.rs14
1 files changed, 14 insertions, 0 deletions
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());
+}