tests/testthat/test-verbosity.R

context("verbosity")

test_that("verbosity option is validated", {
  opt <- with_options(lifecycle_verbosity = NULL, lifecycle_verbosity())
  expect_identical(opt, "default")

  expect_warning(
    with_options(lifecycle_verbosity = NA, lifecycle_verbosity()),
    "must be set to one of"
  )
})

Try the lifecycle package in your browser

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

lifecycle documentation built on March 26, 2020, 7:55 p.m.