testhelpers: Test helpers

Description Usage Arguments Value Examples

Description

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

Usage

1
2
3
4
5
6
7

Arguments

object

the object to test

ui

output of an UI function

html

html file to compare to ui

sleep

number of seconds

Value

A testthat result.

Examples

1
2
expect_shinytag(shiny::tags$span("1"))
expect_shinytaglist(shiny::tagList(1))

golem documentation built on April 17, 2021, 9:06 a.m.