tests/testthat/test-panel_output.R

test_that("test panel", {
  check_panel <- panel_output("panelId", "Main", "Second")

  expect_identical(
    check_panel$children[[1]]$children[[1]],
    "Main"
  )

  expect_identical(
    check_panel$children[[2]]$children[[1]],
    shiny::HTML("Second")
  )
})

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.