tests/testthat/test-nocite_references.R

test_that("nocite_references works", {
  citekeys <- cite_packages(output = "citekeys", out.dir = tempdir(), pkgs = "grateful")
  out <- nocite_references(citekeys)
  expect_equal(out,
               structure("---\nnocite: |\n\t @grateful \n...",
                         class = "knit_asis",
                         knit_cacheable = NA))
})
Pakillo/grateful documentation built on Feb. 14, 2025, 2:28 p.m.