diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2021-08-06 09:37:24 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-06 09:37:24 -0400 |
commit | e9ddc7a41ad7ea02172d88e95c82d007d8d5df63 (patch) | |
tree | 206a35cfec47b85aa7ead532c3e1143900cecb06 /cli/tests/integration/repl_tests.rs | |
parent | 15b0e61de523c1a0157e754379f0ec7decf0c23e (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.rs | 13 |
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, |