tests/testthat/test-use_ui.R

test_that("use_ui() requires a package", {
  scoped_temporary_project()
  expect_error(use_ui(),
    "designed to work with packages", class = "usethis_error"
  )
})

test_that("use_ui() works", {
  scoped_temporary_package()
  expect_true(use_ui())
})

Try the depigner package in your browser

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

depigner documentation built on April 24, 2023, 5:08 p.m.