tests/testthat/test_invert.R

testthat::test_that("darkmode_toggle creates a shiny.tag", {
  testthat::expect_s3_class(darkmode_toggle(), class = "shiny.tag")
})

testthat::test_that("darkmode_toggle can be set as toggled on start-up", {
  testthat::expect_error(darkmode_toggle(checked = TRUE), NA)
})
ashbaldry/fomantic.plus documentation built on Jan. 23, 2022, 2:45 p.m.