From 88b509f8573e84824c0c851be2ee85c32092ee2c Mon Sep 17 00:00:00 2001 From: Yuya Nishihara Date: Sat, 26 Aug 2023 14:49:30 +0900 Subject: [PATCH] tests: do not use "author" template keyword to test string functions I'm going to change the default formatting of empty Signature type, and these tests should use a non-empty keyword. --- cli/tests/test_templater.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cli/tests/test_templater.rs b/cli/tests/test_templater.rs index 831715c43..490ebe371 100644 --- a/cli/tests/test_templater.rs +++ b/cli/tests/test_templater.rs @@ -717,7 +717,7 @@ fn test_templater_concat_function() { let render = |template| get_colored_template_output(&test_env, &repo_path, "@-", template); insta::assert_snapshot!(render(r#"concat()"#), @""); - insta::assert_snapshot!(render(r#"concat(author, empty)"#), @"(no name available) <(no email available)>true"); + insta::assert_snapshot!(render(r#"concat(hidden, empty)"#), @"falsetrue"); insta::assert_snapshot!( render(r#"concat(label("error", ""), label("warning", "a"), "b")"#), @"ab"); @@ -767,11 +767,11 @@ fn test_templater_separate_function() { // Separate keywords insta::assert_snapshot!( - render(r#"separate(" ", author, description, empty)"#), @"(no name available) <(no email available)> true"); + render(r#"separate(" ", hidden, description, empty)"#), @"false true"); // Keyword as separator insta::assert_snapshot!( - render(r#"separate(author, "X", "Y", "Z")"#), @"X(no name available) <(no email available)>Y(no name available) <(no email available)>Z"); + render(r#"separate(hidden, "X", "Y", "Z")"#), @"XfalseYfalseZ"); } #[test]