summaryrefslogtreecommitdiff
path: root/cli/tests/integration/repl_tests.rs
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2021-08-06 09:37:24 -0400
committerGitHub <noreply@github.com>2021-08-06 09:37:24 -0400
commite9ddc7a41ad7ea02172d88e95c82d007d8d5df63 (patch)
tree206a35cfec47b85aa7ead532c3e1143900cecb06 /cli/tests/integration/repl_tests.rs
parent15b0e61de523c1a0157e754379f0ec7decf0c23e (diff)
feat(repl): support exports in the REPL (#11592)
Diffstat (limited to 'cli/tests/integration/repl_tests.rs')
-rw-r--r--cli/tests/integration/repl_tests.rs13
1 files changed, 13 insertions, 0 deletions
diff --git a/cli/tests/integration/repl_tests.rs b/cli/tests/integration/repl_tests.rs
index 955c27069..b96b398ae 100644
--- a/cli/tests/integration/repl_tests.rs
+++ b/cli/tests/integration/repl_tests.rs
@@ -423,6 +423,19 @@ fn import_declarations() {
}
#[test]
+fn exports_stripped() {
+ let (out, err) = util::run_and_collect_output(
+ true,
+ "repl",
+ Some(vec!["export default 5;", "export class Test {}"]),
+ Some(vec![("NO_COLOR".to_owned(), "1".to_owned())]),
+ false,
+ );
+ assert!(out.contains("5\n"));
+ assert!(err.is_empty());
+}
+
+#[test]
fn eval_unterminated() {
let (out, err) = util::run_and_collect_output(
true,