powered by
These functions are designed to be used inside the tests in your Shiny app package.
expect_shinytag(object)expect_shinytaglist(object)expect_html_equal(ui, html)
expect_shinytaglist(object)
expect_html_equal(ui, html)
the object to test
output of an UI function
html file to compare to ui
A testthat result
# NOT RUN { expect_shinytag(shiny::tags$span("1")) expect_shinytaglist(shiny::tagList(1)) # }
Run the code above in your browser using DataLab