tests/testthat/test-formatting.R

test_that("formatting without {crayon}", {
  local_mock(
    requireNamespace = function(...) {
      FALSE
    }
  )

  expect_equal(code("code"), "`code`")
  expect_equal(cross_bullet(), paste0("\n", "x"))
  expect_equal(bullet(), paste0("\n", "*"))
})

Try the incase package in your browser

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

incase documentation built on Jan. 16, 2021, 5:21 p.m.