Skip to content

Commit

Permalink
tests: add test to ensure that default revset is not used when a path…
Browse files Browse the repository at this point in the history
… is specified
  • Loading branch information
noahmayr committed Apr 1, 2024
1 parent 9e59ca2 commit 0f09350
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions cli/tests/test_log_command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1001,6 +1001,15 @@ fn test_default_revset() {
.lines()
.count()
);

// The default revset is not used if a path is specified
insta::assert_snapshot!(
test_env.jj_cmd_success(&repo_path, &["log", "file1", "-T", "description"]),
@r###"
@ add a file
~
"###);
}

#[test]
Expand Down

0 comments on commit 0f09350

Please sign in to comment.