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")
})

Try the usethis package in your browser

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

usethis documentation built on July 9, 2023, 7:23 p.m.