tests/testthat/test-read_site_yml.R

navbar_args <- list(
  title <- "my website",
  pages <- list(
    list(
      text = "Home",
      href = "index.htnml"
    ),
    list(
      text = "Page 2",
      href = "page2.htnml"
    )
  )
)

test_that("Function returns HTML string from list of arguments", {
  expect_type(build_navbar(navbar_args), "character")
})
best-practice-and-impact/CARS2 documentation built on Dec. 19, 2021, 8:47 a.m.