tests/testthat/test-sparkline_point_js.R

test_that("use snapshot for testing", {
  js_notxt <- sparkline_point_js(iris, "Sepal.Length")
  expect_snapshot_output(js_notxt)
})

Try the forestly package in your browser

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

forestly documentation built on April 3, 2025, 7:48 p.m.