tests/testthat/test-git.R

test_that("git status works", {
  skip_on_cran()
  wd <- local_temp_git_repo()
  result <- git("status", wd = wd)
  expect_true(grepl("No commits yet", result, fixed = TRUE))
})

Try the cliff package in your browser

Any scripts or data that you put into this service are public.

cliff documentation built on Nov. 2, 2021, 9:09 a.m.