context("forcing")
test_that("forcing yes works", {
expect_equal(yesno::yesno(force = "yes")$answer, "yes")
expect_equal(yesno::yesno(force = "yes")$forced, TRUE)
})
test_that("forcing no works", {
expect_equal(yesno::yesno(force = "no")$answer, "no")
expect_equal(yesno::yesno(force = "no")$forced, TRUE)
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.