tests/testthat/test-accordion.R

test_that("accordion works", {

  accordion_check <- accordion(
          "acc1",
          c("Writing well for the web",
            "Writing well for specialists",
            "Know your audience",
            "How people read"
           ),
          c("This is the content for Writing well for the web.",
            "This is the content for Writing well for specialists.",
            "This is the content for Know your audience.",
            "This is the content for How people read."
           ))

  expect_equal(length(accordion_check$children[[2]]), 4)

})

Try the shinyGovstyle package in your browser

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

shinyGovstyle documentation built on March 18, 2022, 7:24 p.m.