tests/testthat/tests-embed.R

context("embed")

test_that("embed publishes", {
  oldwd <- getwd()
  tmpdir <- setup(TRUE)
  embed <- list(
    id = "test",
    publisher = "section",
    template = "brandcomment",
    embed = TRUE
  )
  publish(embed)
  expect_true(file.exists("target/embed/test.html"))
  cleanup(oldwd, tmpdir)
})
USGS-VIZLAB/vizlab documentation built on July 10, 2019, 12:08 a.m.