diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2022-07-12 11:05:56 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-12 11:05:56 -0400 |
commit | 2ff3e8a6c523633fca9d5a44599ddf22dfa4e961 (patch) | |
tree | 58a891089516cdb4305eef362c95cfe198e06c37 | |
parent | 007e1b4bd595b99f5d7b8df08e91354d6e4f0bf2 (diff) |
chore: fix repl::pty_emoji test on linux (#15166)
-rw-r--r-- | cli/tests/integration/repl_tests.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cli/tests/integration/repl_tests.rs b/cli/tests/integration/repl_tests.rs index bea5efff4..9731aa0aa 100644 --- a/cli/tests/integration/repl_tests.rs +++ b/cli/tests/integration/repl_tests.rs @@ -217,13 +217,13 @@ fn pty_assign_global_this() { fn pty_emoji() { // windows was having issues displaying this util::with_pty(&["repl"], |mut console| { - console.write_line("console.log('🦕');"); + console.write_line(r#"console.log('\u{1F995}');"#); console.write_line("close();"); let output = console.read_all_output(); - // one for input, one for output + // only one for the output (since input is escaped) let emoji_count = output.chars().filter(|c| *c == '🦕').count(); - assert_eq!(emoji_count, 2); + assert_eq!(emoji_count, 1); }); } |