Learn R Programming

golem (version 0.1)

expect_shinytag: Test helpers

Description

These functions are designed to be used inside the tests in your Shiny app package.

Usage

expect_shinytag(object)

expect_shinytaglist(object)

expect_html_equal(ui, html)

Arguments

object

the object to test

ui

output of an UI function

html

html file to compare to ui

Value

A testthat result

Examples

Run this code
# NOT RUN {
expect_shinytag(shiny::tags$span("1"))
expect_shinytaglist(shiny::tagList(1))
# }

Run the code above in your browser using DataLab