tests/testthat/test-style.R

test_that("style", {
  withr::local_options(cli.num_colors = 256)
  expect_snapshot(
    cat(style(
      ok = "OK", "\n",
      note = "NOTE", "\n",
      warn = "WARN", "\n",
      err = "ERROR", "\n",
      pale = "Not important", "\n",
      timing = "[1m]", "\n"
    ))
  )
})

Try the pkgbuild package in your browser

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

pkgbuild documentation built on Oct. 30, 2024, 9:08 a.m.