mirror of
https://github.com/martinvonz/jj.git
synced 2025-02-10 22:39:32 +00:00
tests: remove unnecessary format_time_range
template alias
This is already set in the test configuration.
This commit is contained in:
parent
89e0a7021a
commit
9b45c90cc5
1 changed files with 1 additions and 9 deletions
|
@ -28,14 +28,7 @@ fn test_op_log() {
|
||||||
let repo_path = test_env.env_root().join("repo");
|
let repo_path = test_env.env_root().join("repo");
|
||||||
test_env.jj_cmd_ok(&repo_path, &["describe", "-m", "description 0"]);
|
test_env.jj_cmd_ok(&repo_path, &["describe", "-m", "description 0"]);
|
||||||
|
|
||||||
let stdout = test_env.jj_cmd_success(
|
let stdout = test_env.jj_cmd_success(&repo_path, &["op", "log"]);
|
||||||
&repo_path,
|
|
||||||
&[
|
|
||||||
"op",
|
|
||||||
"log",
|
|
||||||
"--config=template-aliases.'format_time_range(x)'=x",
|
|
||||||
],
|
|
||||||
);
|
|
||||||
insta::assert_snapshot!(&stdout, @r#"
|
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
|
@ 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
|
│ describe commit 230dd059e1b059aefc0da06a2e5a7dbf22362f22
|
||||||
|
@ -118,7 +111,6 @@ fn test_op_log_with_custom_symbols() {
|
||||||
&[
|
&[
|
||||||
"op",
|
"op",
|
||||||
"log",
|
"log",
|
||||||
"--config=template-aliases.'format_time_range(x)'=x",
|
|
||||||
"--config=templates.op_log_node='if(current_operation, \"$\", if(root, \"┴\", \"┝\"))'",
|
"--config=templates.op_log_node='if(current_operation, \"$\", if(root, \"┴\", \"┝\"))'",
|
||||||
],
|
],
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue