diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2023-01-04 18:54:54 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-04 18:54:54 -0500 |
commit | 0ee64ad84726f7c91842c6a2dab0cb6a96dead4b (patch) | |
tree | 50d42e65d1f1d1e6b1cffc4e9f38f3e2a5d1dd59 /cli/tests/repl_tests.rs | |
parent | 319f6074761421b797db71bf10f6171516e3d92a (diff) |
fix: upgrade deno_ast to 0.23 (#17269)
Closes #17172
Closes #15669
Closes #8529
Diffstat (limited to 'cli/tests/repl_tests.rs')
-rw-r--r-- | cli/tests/repl_tests.rs | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/cli/tests/repl_tests.rs b/cli/tests/repl_tests.rs index 418ff00d6..7a13f7553 100644 --- a/cli/tests/repl_tests.rs +++ b/cli/tests/repl_tests.rs @@ -52,17 +52,15 @@ mod repl { #[test] fn pty_unpaired_braces() { - util::with_pty(&["repl"], |mut console| { - console.write_line(")"); - console.write_line("]"); - console.write_line("}"); - console.write_line("close();"); + for right_brace in &[")", "]", "}"] { + util::with_pty(&["repl"], |mut console| { + console.write_line(right_brace); + console.write_line("close();"); - let output = console.read_all_output(); - assert_contains!(output, "Unexpected token `)`"); - assert_contains!(output, "Unexpected token `]`"); - assert_contains!(output, "Unexpected token `}`"); - }); + let output = console.read_all_output(); + assert_contains!(output, "Expression expected"); + }); + } } #[test] @@ -518,7 +516,7 @@ mod repl { None, false, ); - assert_contains!(out, "Unexpected token"); + assert_contains!(out, "Expression expected"); assert!(err.is_empty()); } } @@ -565,7 +563,7 @@ mod repl { Some(vec![("NO_COLOR".to_owned(), "1".to_owned())]), false, ); - assert_contains!(out, "Unexpected token `>`"); + assert_contains!(out, "Expression expected"); assert!(err.is_empty()); } |