context("Valid theme names")
library(ThemeSwitcher)
test_that("Invalid theme names throw error", {
expect_error(ThemeSwitcher::set_dark_theme("Monokau"))
expect_error(ThemeSwitcher::set_dark_theme(""))
expect_error(ThemeSwitcher::set_light_theme("TextMute"))
expect_error(ThemeSwitcher::set_light_theme(""))
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.