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 June 24, 2024, 5:18 p.m.