summaryrefslogtreecommitdiff
path: root/helix-term/tests/test/prompt.rs
blob: 2ab9604c6daecd3deddb371dffc88a2247c98f85 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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(())
}