Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'helix-term/tests/test/prompt.rs')
-rw-r--r--helix-term/tests/test/prompt.rs16
1 files changed, 16 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..4f3bf763
--- /dev/null
+++ b/helix-term/tests/test/prompt.rs
@@ -0,0 +1,16 @@
+use super::*;
+
+#[tokio::test(flavor = "multi_thread")]
+async fn test_history_completion() -> anyhow::Result<()> {
+ test_key_sequence(
+ &mut AppBuilder::new().build()?,
+ Some(":asdf<ret>:theme d<C-n><tab>"),
+ Some(&|app| {
+ assert!(!app.editor.is_err());
+ }),
+ false,
+ )
+ .await?;
+
+ Ok(())
+}