tests/testthat/test-code-of-conduct.R

test_that("use_code_of_conduct() creates promised file", {
  create_local_project()
  use_code_of_conduct("test@example.com")
  expect_proj_file("CODE_OF_CONDUCT.md")
})
r-lib/usethis documentation built on March 20, 2024, 8:51 p.m.