tests/testthat/test-label_hint.R

test_that("label hint workss", {
  label_check <- label_hint("hintID", "Upper", "Lower")

  expect_identical(
    label_check$children[[1]]$children[[1]],
    shiny::HTML("Upper")
  )

  expect_identical(
    label_check$children[[2]]$children[[1]],
    "Lower"
  )

})

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.