tests/testthat/test-details.R

test_that("details work", {
  check_details <- details("detailId", "Test Main", "Test Second")

  expect_identical(
    check_details$children[[1]]$children[[1]]$children[[1]],
    shiny::HTML("Test Main")
  )

  expect_identical(
    check_details$children[[2]]$children[[1]],
    "Test Second"
  )


})

Try the shinyGovstyle package in your browser

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

shinyGovstyle documentation built on Sept. 12, 2024, 5:07 p.m.