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-pkgs/usethis documentation built on July 5, 2025, 3:34 a.m.