test_that("alert", {
for (fun in list(
alert,
alertDanger,
alertInfo,
alertSuccess,
alertWarning
)) {
expect_message(
object = fun(c("XXX", "YYY")),
regexp = "XXX"
)
}
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.