diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2020-06-02 16:37:52 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-02 16:37:52 -0400 |
commit | 23dc9c13db110d25df22fb9813910b8d9a278953 (patch) | |
tree | 43f881a68616ca7f9ad75bf32efde67c0932dc22 /cli/tests/integration_tests.rs | |
parent | b7b6e0674f5bd6fed3e9b7ae5f32f95f1784753b (diff) |
Fix REPL BorrowMutError panic (#6055)
Diffstat (limited to 'cli/tests/integration_tests.rs')
-rw-r--r-- | cli/tests/integration_tests.rs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/cli/tests/integration_tests.rs b/cli/tests/integration_tests.rs index 5f4b37744..ff94d2f50 100644 --- a/cli/tests/integration_tests.rs +++ b/cli/tests/integration_tests.rs @@ -746,6 +746,18 @@ fn repl_test_console_log() { } #[test] +fn repl_cwd() { + let (_out, err) = util::run_and_collect_output( + true, + "repl", + Some(vec!["Deno.cwd()"]), + Some(vec![("NO_COLOR".to_owned(), "1".to_owned())]), + false, + ); + assert!(err.is_empty()); +} + +#[test] fn repl_test_eof() { let (out, err) = util::run_and_collect_output( true, |