From 3a306e6a237aae2bbba267ec0fee8e0bd43729cc Mon Sep 17 00:00:00 2001 From: Martin von Zweigbergk Date: Mon, 7 Mar 2022 21:00:05 -0800 Subject: [PATCH] cleanup: fix formatting (missed in 572143655866) --- tests/smoke_test.rs | 15 +++------------ tests/test_global_opts.rs | 1 - 2 files changed, 3 insertions(+), 13 deletions(-) diff --git a/tests/smoke_test.rs b/tests/smoke_test.rs index 816267920..e6bdfea8a 100644 --- a/tests/smoke_test.rs +++ b/tests/smoke_test.rs @@ -24,10 +24,7 @@ fn smoke_test() { let repo_path = test_env.env_root().join("repo"); // Check the output of `jj status` right after initializing repo - let assert = test_env - .jj_cmd(&repo_path, &["status"]) - .assert() - .success(); + let assert = test_env.jj_cmd(&repo_path, &["status"]).assert().success(); insta::assert_snapshot!(get_stdout_string(&assert), @r###" Parent commit: 000000000000 Working copy : 1d1984a23811 @@ -40,10 +37,7 @@ fn smoke_test() { std::fs::write(repo_path.join("file3"), "file3").unwrap(); // The working copy's ID should have changed - let assert = test_env - .jj_cmd(&repo_path, &["status"]) - .assert() - .success(); + let assert = test_env.jj_cmd(&repo_path, &["status"]).assert().success(); let stdout_string = get_stdout_string(&assert); insta::assert_snapshot!(stdout_string, @r###" Parent commit: 000000000000 @@ -70,10 +64,7 @@ fn smoke_test() { "); // Close the commit - let assert = test_env - .jj_cmd(&repo_path, &["close"]) - .assert() - .success(); + let assert = test_env.jj_cmd(&repo_path, &["close"]).assert().success(); insta::assert_snapshot!(get_stdout_string(&assert), @"Working copy now at: 6ff8a22d8ce1 "); } diff --git a/tests/test_global_opts.rs b/tests/test_global_opts.rs index 0942320da..b5fd4f006 100644 --- a/tests/test_global_opts.rs +++ b/tests/test_global_opts.rs @@ -35,7 +35,6 @@ fn test_no_commit_working_copy() { o 0000000000000000000000000000000000000000 "###); - // Modify the file. With --no-commit-working-copy, we still get the same commit // ID. std::fs::write(repo_path.join("file"), "modified").unwrap();