expect_invalid <- function(validator){
expect_error(is_valid(validator), regexp="Valdeece failed to validate your input:\n")
}
expect_valid <- function(validator){
expect_silent(is_valid(validator))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.