tests/testthat/test-fgit_branch.R

test_that("fgit_branch-Wrong repository", {
  skip_if_offline(host = "fastgit.org")

  target_repo <-
    "r-lib/diffviewer_mistake"

  # Wrong branch name
  expect_error(fgit_branch(target_repo),
               "Repository may not exist")
})
womeimingzi11/fgitR documentation built on March 20, 2022, 10:51 p.m.