aboutsummaryrefslogtreecommitdiff
path: root/helix-term/tests/integration.rs
blob: 54364e12fd56076afe0f1f8ce001937ab51893a1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#[cfg(feature = "integration")]
mod integration {
    mod helpers;

    use std::path::PathBuf;

    use helix_core::{syntax::AutoPairConfig, Position, Selection};
    use helix_term::{args::Args, config::Config};

    use indoc::indoc;

    use self::helpers::*;

    #[tokio::test]
    async fn hello_world() -> anyhow::Result<()> {
        test_key_sequence_text_result(
            Args::default(),
            Config::default(),
            ("#[\n|]#", "ihello world<esc>", "hello world#[|\n]#"),
            None,
        )
        .await?;

        Ok(())
    }

    mod auto_indent;
    mod auto_pairs;
    mod commands;
    mod movement;
    mod write;
}