aboutsummaryrefslogtreecommitdiff
path: root/helix-term/tests/test/auto_pairs.rs
blob: caf80bd452015c2895cb5a33df10b2a85e00870f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
use super::*;

#[tokio::test]
async fn auto_pairs_basic() -> anyhow::Result<()> {
    test(("#[\n|]#", "i(<esc>", "(#[|)]#\n")).await?;

    test_with_config(
        Args::default(),
        Config {
            editor: helix_view::editor::Config {
                auto_pairs: AutoPairConfig::Enable(false),
                ..Default::default()
            },
            ..Default::default()
        },
        helpers::test_syntax_conf(None),
        ("#[\n|]#", "i(<esc>", "(#[|\n]#"),
    )
    .await?;

    Ok(())
}