aboutsummaryrefslogtreecommitdiff
path: root/helix-term/tests/test/prompt.rs
diff options
context:
space:
mode:
Diffstat (limited to 'helix-term/tests/test/prompt.rs')
-rw-r--r--helix-term/tests/test/prompt.rs18
1 files changed, 18 insertions, 0 deletions
diff --git a/helix-term/tests/test/prompt.rs b/helix-term/tests/test/prompt.rs
new file mode 100644
index 00000000..2ab9604c
--- /dev/null
+++ b/helix-term/tests/test/prompt.rs
@@ -0,0 +1,18 @@
+use super::*;
+
+use helix_term::application::Application;
+
+#[tokio::test]
+async fn test_history_completion() -> anyhow::Result<()> {
+ test_key_sequence(
+ &mut Application::new(Args::default(), Config::default())?,
+ Some(":asdf<ret>:theme d<C-n><tab>"),
+ Some(&|app| {
+ assert!(!app.editor.is_err());
+ }),
+ false,
+ )
+ .await?;
+
+ Ok(())
+}