Description Usage Arguments Value Examples
These functions are designed to be used inside the tests in your Shiny app package.
1 2 3 4 5 6 7 | expect_shinytag(object)
expect_shinytaglist(object)
expect_html_equal(ui, html)
expect_running(sleep)
|
object |
the object to test |
ui |
output of an UI function |
html |
html file to compare to ui |
sleep |
number of seconds |
A testthat result.
1 2 | expect_shinytag(shiny::tags$span("1"))
expect_shinytaglist(shiny::tagList(1))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.