summaryrefslogtreecommitdiff
path: root/cli/tests/integration_tests.rs
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2021-06-24 09:00:46 -0400
committerGitHub <noreply@github.com>2021-06-24 09:00:46 -0400
commit4b3845b998ae2f7cd6e02625b4cfc3613878ceb2 (patch)
tree8b56e3e89cdf8977b5b5ceaa27e571ad157ce3c0 /cli/tests/integration_tests.rs
parent8ed83cba7e2eeabb3af1fd65579dacd782f50644 (diff)
feat(repl): support import declarations in the REPL (#11086)
Diffstat (limited to 'cli/tests/integration_tests.rs')
-rw-r--r--cli/tests/integration_tests.rs12
1 files changed, 12 insertions, 0 deletions
diff --git a/cli/tests/integration_tests.rs b/cli/tests/integration_tests.rs
index da436b5bd..393d41da4 100644
--- a/cli/tests/integration_tests.rs
+++ b/cli/tests/integration_tests.rs
@@ -2370,6 +2370,18 @@ mod integration {
}
#[test]
+ fn import_declarations() {
+ let (out, _) = util::run_and_collect_output(
+ true,
+ "repl",
+ Some(vec!["import './subdir/auto_print_hello.ts';"]),
+ Some(vec![("NO_COLOR".to_owned(), "1".to_owned())]),
+ false,
+ );
+ assert!(out.contains("hello!\n"));
+ }
+
+ #[test]
fn eval_unterminated() {
let (out, err) = util::run_and_collect_output(
true,