From 9b45c90cc5da3fb9ec1f96d27565e2feb7ed122f Mon Sep 17 00:00:00 2001 From: Benjamin Tan Date: Fri, 10 Jan 2025 22:23:10 +0800 Subject: [PATCH] tests: remove unnecessary `format_time_range` template alias This is already set in the test configuration. --- cli/tests/test_operations.rs | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/cli/tests/test_operations.rs b/cli/tests/test_operations.rs index c528ff44c..3c48220df 100644 --- a/cli/tests/test_operations.rs +++ b/cli/tests/test_operations.rs @@ -28,14 +28,7 @@ fn test_op_log() { let repo_path = test_env.env_root().join("repo"); test_env.jj_cmd_ok(&repo_path, &["describe", "-m", "description 0"]); - let stdout = test_env.jj_cmd_success( - &repo_path, - &[ - "op", - "log", - "--config=template-aliases.'format_time_range(x)'=x", - ], - ); + let stdout = test_env.jj_cmd_success(&repo_path, &["op", "log"]); insta::assert_snapshot!(&stdout, @r#" @ d009cfc04993 test-username@host.example.com 2001-02-03 04:05:08.000 +07:00 - 2001-02-03 04:05:08.000 +07:00 │ describe commit 230dd059e1b059aefc0da06a2e5a7dbf22362f22 @@ -118,7 +111,6 @@ fn test_op_log_with_custom_symbols() { &[ "op", "log", - "--config=template-aliases.'format_time_range(x)'=x", "--config=templates.op_log_node='if(current_operation, \"$\", if(root, \"┴\", \"┝\"))'", ], );