tests/testthat/test-netlify.R

test_that("multiplication works", {
  path <- local_dir(test_path("config-hugodown"))
  suppressMessages(use_netlify_toml(path))

  expect_true(file_exists(path(path, "netlify.toml")))

  toml <- RcppTOML::parseTOML(path(path, "netlify.toml"))
  expect_equal(toml$build$environment$HUGO_VERSION, "0.66.0")
})
r-lib/hugodown documentation built on Nov. 24, 2022, 10:06 a.m.