tests/testthat/test-dygraph.R

context("test-dygraph")

test_that("dygraph creation works", {
  lapply(
    1:100, function(x){
      a <- random_dygraph()
      expect_is(a, "dygraphs")
      expect_is(a, "htmlwidget")
      expect_length(a, 8)
    }
  )
})

Try the shinipsum package in your browser

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

shinipsum documentation built on May 29, 2024, 2:30 a.m.