aboutsummaryrefslogtreecommitdiff
path: root/helix-term/tests/test/auto_pairs.rs
diff options
context:
space:
mode:
authorSkyler Hawthorne2022-11-11 04:58:03 +0000
committerMichael Davis2023-03-20 23:34:40 +0000
commit4bdeb9927b5aa0fb71484faae8f3aa9c5ce67381 (patch)
tree6c348fd5ff2d937560df81ced6572cfa8b14050c /helix-term/tests/test/auto_pairs.rs
parentd3b051d28ea62c313fc72583d04f2a897e8d6f40 (diff)
migrate test_with_config to use AppBuilder
Diffstat (limited to 'helix-term/tests/test/auto_pairs.rs')
-rw-r--r--helix-term/tests/test/auto_pairs.rs14
1 files changed, 4 insertions, 10 deletions
diff --git a/helix-term/tests/test/auto_pairs.rs b/helix-term/tests/test/auto_pairs.rs
index e18c7119..e10e0840 100644
--- a/helix-term/tests/test/auto_pairs.rs
+++ b/helix-term/tests/test/auto_pairs.rs
@@ -41,9 +41,7 @@ async fn insert_configured_multi_byte_chars() -> anyhow::Result<()> {
for (open, close) in pairs.iter() {
test_with_config(
- Args::default(),
- config.clone(),
- helpers::test_syntax_conf(None),
+ AppBuilder::new().with_config(config.clone()),
(
format!("#[{}|]#", LINE_END),
format!("i{}", open),
@@ -53,9 +51,7 @@ async fn insert_configured_multi_byte_chars() -> anyhow::Result<()> {
.await?;
test_with_config(
- Args::default(),
- config.clone(),
- helpers::test_syntax_conf(None),
+ AppBuilder::new().with_config(config.clone()),
(
format!("{}#[{}|]#{}", open, close, LINE_END),
format!("i{}", close),
@@ -170,15 +166,13 @@ async fn insert_before_eol() -> anyhow::Result<()> {
async fn insert_auto_pairs_disabled() -> anyhow::Result<()> {
for pair in DEFAULT_PAIRS {
test_with_config(
- Args::default(),
- Config {
+ AppBuilder::new().with_config(Config {
editor: helix_view::editor::Config {
auto_pairs: AutoPairConfig::Enable(false),
..Default::default()
},
..Default::default()
- },
- helpers::test_syntax_conf(None),
+ }),
(
format!("#[{}|]#", LINE_END),
format!("i{}", pair.0),