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)
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.