From 23dc9c13db110d25df22fb9813910b8d9a278953 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Tue, 2 Jun 2020 16:37:52 -0400 Subject: Fix REPL BorrowMutError panic (#6055) --- cli/tests/integration_tests.rs | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'cli') 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 @@ -745,6 +745,18 @@ fn repl_test_console_log() { assert!(err.is_empty()); } +#[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( -- cgit v1.2.3