Skip to content

Commit 19903e3

Browse files
committed
safer and self-contained
1 parent 806f1f5 commit 19903e3

2 files changed

Lines changed: 10 additions & 9 deletions

File tree

tests/testthat/_snaps/commit.md

Lines changed: 0 additions & 8 deletions
This file was deleted.

tests/testthat/test-commit.R

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,5 +307,14 @@ test_that("git_log shows commits from merged branches", {
307307
git_merge("feature", repo = repo)
308308

309309
log <- git_log(repo = repo)
310-
expect_snapshot(log$message)
310+
expect_equal(
311+
trimws(log$message),
312+
c(
313+
"Merged feature into main",
314+
"Third commit on main",
315+
"Second commit on main",
316+
"Initial commit on main"
317+
)
318+
)
319+
expect_equal(log$merge, c(TRUE, FALSE, FALSE, FALSE))
311320
})

0 commit comments

Comments
 (0)