tests/testthat/test-onload.R

test_that("pakret initialisation gives meaningful error messages", {
  skip_on_os("windows")
  expect_snapshot(
    local_files(make_template(meta = "title: no bibs"), bib = NULL),
    error = TRUE
  )

  expect_snapshot(
    local_files(make_template(meta = "bibliography: foo.md"), bib = NULL),
    error = TRUE
  )
})

Try the pakret package in your browser

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

pakret documentation built on Oct. 30, 2024, 9:26 a.m.